Pages

Wednesday, September 24, 2014

Create USER with ROOT Privileges in Linux

Create USER with ROOT Privileges in Linux

I found the following link very much useful.


http://www.shellhacks.com/en/HowTo-Create-USER-with-ROOT-Privileges-in-Linux

It's about creating normal user with root privileges.

useradd -ou 0 -g 0user1
passwd user1


To delete that user, some tweak is required to be done.

open /etc/passwd file and change user1 UID.

Change ,

user1:x:0:0::/home/user1:/bin/sh

To 

user1:x:1111:0::/home/user1:/bin/sh 

No comments:

Post a Comment