sheeplog

su: pam_start: System error (FreeBSD 14)

After upgrading a FreeBSD system or jail to version 14-RELEASE it may happen that any command involving PAM will fail with the following error:

1
su: pam_start: System error

It will even fail silently when using ezjail-admin console <jail-name> and just not open a jail console.

Problem

The reason probably is that your system or jail has the OPIE plugin configured in its PAM config in /etc/pam.d/system (or any other file in /etc/pam.d):

1
2
3
4
# ...
auth          sufficient      pam_opie.so             no_warn no_fake_prompts
auth          requisite       pam_opieaccess.so       no_warn allow_local
# ...

OPIE means One Password In Everything and implements an OTP mechanism. In FreeBSD 14 this PAM plugin was deprecated and eventually has been removed.

Solution

Dependending on your requirements you can do the following:

Tagged with freebsd, pam, jail

Creative Commons License