Try to switch to a user that was added above.
dlp login:
password:
[cent@dlp ~]$
Password:
[root@dlp ~]#
cent
# input user name
password:
# password
[cent@dlp ~]$
su -
# switch to root
Password:
# root password
[root@dlp ~]#
Make a user be only a user who can switch to root as an administration user. (it's 'cent' in this example)
[root@dlp ~]#
usermod -G wheel cent
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
# uncomment the following line
auth required pam_wheel.so use_uid
auth substack system-auth
auth include postlogin
account sufficient pam_succeed_if.so uid = 0 use_uid quiet
account include system-auth
password include system-auth
session include system-auth
session include postlogin
session optional pam_xauth.so
To forward to emails for root user to another user, set like follows. (it's 'cent' in this example)
# Person who should get root's mail[root@dlp ~]#
# last line: uncomment and change to a userroot:cent
0 comments:
Post a Comment