Step1: The su command allows you to log into a new shell as another user.
puppy$ su jane
Password:
you can also use the su command to log in as the root user if you know the root password.
puppy$ su
Password:
Step2:PAM offers a way to easily secure access to this tool to only those users you want.
To configure for access restriction, review the contents of the su PAM service configuration
files inside your /etc/pam.d directory. On both Debian and Red Hat systems, you should find
the following line:
auth required /lib/security/pam_wheel.so use_uid
step3:The use_uid option tells PAM to check the UID of the current user trying to use su to log in.
You can also specify the group= option to indicate that a group other than wheel is allowed to
use su to log in. See the following line:
auth required /lib/security/pam_wheel.so use_uid group=allowsu
0 Comments