2

How do I create a new account (CentOS) and allow it root equivalent privileges?

I can add the user using the following command:

/usr/sbin/useradd test

I can change password using the following command:

passwd test

2 Answers 2

4

You should use sudo for that. You can add the user to the sudoers file using visudo. Then the user can issue commands such as:

sudo some-command

which will allow them to have root privileges for the command.

2

You can change the UID in /etc/passwd to 0. But do realize you are defeating the purpose of having a root(superuser) account by doing this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .