LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How can i create user super in centos (https://www.linuxquestions.org/questions/linux-server-73/how-can-i-create-user-super-in-centos-901221/)

jsaravana87 09-05-2011 08:17 AM

How can i create user super in centos
 
Hi

i want to create a super user in centos .super user must have all priviledge has root

i added useradd user
but i could int able to get super priviledges as root for the user

how can i add super user in centos 5.5


Thanks
arun

wpeckham 09-05-2011 10:14 AM

My first reaction
 
At first read I would say "no".
There is a way, but you really do not want to do that.

After reflection, I would like to know WHY you would want to do that. I may have an answer (or two) for you, but which answer is likely to do what you want without untenable risk depends upon your purpose.

teckk 09-05-2011 03:25 PM

Quote:

i want to create a super user
Super user or Root is created when you install the OS. Root is the admin of the box.

If you want to give users root privileges to do certain actions then look at the sudoers file.
http://linux.die.net/man/5/sudoers

anirudha0012 09-07-2011 03:38 AM

#visudo
[...]
# User privilege specification
root ALL=(ALL) ALL
#Enter the below line for your superuser(s)
yourusername ALL=(ALL) ALL
[...]

Save it as normal vi editor

Now try login into the system and you would notice the # prompt for the new login.

vkplinux 09-07-2011 03:45 AM

change uid and gid to 0 (/etc/passwd file)for you user,but it is bit risky
It will work but prefer sudo methaod


All times are GMT -5. The time now is 07:48 PM.