Fedora 11
Sponsored Link

Add a User2009/06/10

[1] Add a User for administrations.
[root@dlp ~]#
useradd fedora

[root@dlp ~]#
passwd fedora

Changing password for user fedora.
New UNIX password:
# input password you want to set

Retype new UNIX password:
# verify

passwd: all authentication tokens updated successfully.
[root@dlp ~]#
# logout

[2] Try to switch to a user that was added in section [1].
ns login:
# input user name

# input password

[fedora@dlp ~]$
su -
# switch to root

# input password for root

[root@dlp ~]#
# done to switching to root

[3] Set 'fedora' as a user that was added in section [1] be only a user who can switch to root.
[root@dlp ~]#
vi /etc/group

# line 11: add user


[root@dlp ~]#
vi /etc/pam.d/su

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.
# remove '#' that was on the head of line

auth required pam_wheel.so use_uid
auth include system-auth
account sufficient pam_succeed_if.so uid = 0 use_uid quiet
account include system-auth
password include system-auth
session include system-auth
session optional pam_xauth.so
Forward email for root to a user
[4] Set config to forward mails for root to a user who is a system administrator you set as.
[root@dlp ~]#
vi /etc/aliases

# Person who should get root's mail
# bottom: remove '#' and add user name


[root@dlp ~]#
# set new aliases

/etc/aliases: 77 aliases, longest 10 bytes, 776 bytes total
Matched Content