Initial Settings : Add Common Users2019/01/14 |
[1] | If you'd like to add common user accounts on Fedora Server, Configure like follows. |
localhost:~ # useradd -m suse localhost:~ # passwd suse New password: # set password Retype new password: # confirm passwd: password updated successfully |
[2] | If you'd like to switch to root account from a user added above, use [su] command to do so. |
localhost login: suse # input user name password: # input passwordsuse@localhost:~> su - # switch to root Password: # root password localhost:~ # # just switched to root account |
[3] | Make a user (it's [suse] in this example) be only a user who can switch to root as an administration user. |
localhost:~ # usermod -G wheel root localhost:~ # usermod -G wheel suse
localhost:~ #
vi /etc/pam.d/su # line 2 : add auth required pam_wheel.so use_uid
localhost:~ #
vi /etc/pam.d/su-l # line 2 : add auth required pam_wheel.so use_uid |
[4] | If you'd like to remove a user accounts, Configure like follows. |
# remove a user [suse] (removed user account and his home directory) localhost:~ # userdel -r suse
|
Sponsored Link |