How to disable the su to root in Linux using PAM.

The default Linux behavior allows the user to gain root access by typing su and entering the root password to gain a root prompt. If you wish to disable this behavior, then open this file as root for editing. jason@jason-Virtual-Machine:~$ vim /etc/pam.d/sujason@jason-Virtual-Machine:~$ vim /etc/pam.d/su Then un-comment this line. auth required…

Read More