The root account is the most powerful account in Linux and Unix Platform. To create more than one root user with different name (that have the same powerful as a root), please see steps below
1. Login as root
2. Type "useradd -d /home/ROOTNAME -m -o -u0 ROOTNAME" (without quotes)
Notes :
- useradd means create a new user
- -d is home directory
- Replace "ROOTNAME" with the name for root user. For example, me
- -m means the user's home directory will be created if it does not exist
- -o means allow the creation of a user account with a duplicate (non-unique) UID
- -u is the numerical value of the user's ID, 0 means root
3. Enter
4. The root user named me is created.
5. Type "passwd me" (to give the password for me user) then Enter
6. Type the password and retype then Enter
7. Press Ctrl+D to logout as a root
8. Make sure the prefix is $ (dollar sign) not # (sharp sign)
9. Type "su - me" (to login as me) and then press Enter
10. Enter password for me user
11. Tra ra. Now you have login as me
12. Type "whoami" and Enter. And must be prints root userid (root) below.
Congratulations ! Now you have duplicate root user with different name.
No comments:
Post a Comment