How to give users the root permission.

Hello all,
i would like to assign the user with root permission. However, I have googled it but could not find any helpful resource. Please give me some hints. thanksk
Who is Participating?
joolsConnect With a Mentor Commented:
You want to give a user root access!!?

Tell them NO!

or ask what they specifically want access to and only allow access to that after their manager has approved the access. You will need to modify /etc/sudoers carefully amd do not allow blanket sudo access or they might just sudo /bin/bash.

You can assign users a list of commands to run, follow the examples in the link;
DustinKikuchiConnect With a Mentor Commented:
You can use:
useradd -ou 0 <accountName>

Open in new window

This will add a user with a non-unique UID which you are specifying as UID 0 (root).

As always, be careful as the root account isn't something that should be used often nor given out frequently due to its power.
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

XaelianConnect With a Mentor Commented:
I don't recommend treating a user as root. Just place him in the sudoers file, then he gets enough permission to do everything. Root permissions are to much power.
farzanjConnect With a Mentor Commented:
You should use sudo.  It is a bad idea to give root permissions to a user.  Theoretically, if you go on /etc/passwd  file and modify the UID to 0, it would make it act like root.
Duncan RoeConnect With a Mentor Software DeveloperCommented:
Having 2 entries with the same UID in /etc/passwd is an error. User 0 is root, end of story.
You need to tell those users who need to know, what is the root password. Alternatively give them access via sudo if that will be acceptable to your organisation.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.