This content has been marked as final. Show 1 reply
The files /etc/pam.d/su and /etc/pam.d/sshd don't go bad by itself. I would not screw around with it unless you know exactly what you are doing. I suggest to leave the original files in place.
Please provide an example including the complete commands and screen output you are using to demonstrate the problem.
Are you running any background tasks that use the su command with incorrect or expired passwords that cause acounts to get locked?
Btw, to return to the previous user from a su command you can simply exit, logout or use Ctrl-d.