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 |
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. |
Quote:
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 |
#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. |
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. |