01 Add new user to the Linux
[root@aaicdata ~]# useradd test
02 Set password that you created
user above step
[root@aaicdata ~]# passwd
test Then hit Enter and provide the
password for the test user
03 This command list
every groups in the Linux box
[root@aaicdata ~]#vi
/etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
mem:x:8:
kmem:x:9:
wheel:x:10:root
mail:x:12:mail
Then add username in front of the
root line that you suppose to give
root permission
root:x:0:test
Save and exit
04 open the password file and add as bellows
[root@aaicdata ~]#vi /etc/passwd
Change the group number to 0:0
test:x:725:725::/home/test:/bin/bash
(Original)
test:x:0:0::/home/test:/bin/bash
(after change)
Save
& exit
Done!
No comments:
Post a Comment