supportpro
asked on
Command to add a user with root priviledge
what command to be used to add a normal user with root priviledge
1) I want to add a user and the user should have root priviledge . how can i add ?
2) is it possible via usermod to give root acces for existing user ?
1) I want to add a user and the user should have root priviledge . how can i add ?
2) is it possible via usermod to give root acces for existing user ?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
modify /etc/password and change the uid to 0 that will give root access to that user. I do agree though that you should run visudo and add the users to the sudo list instead. Much more secure
groupmems -a -g wheel
There were two equally valid approaches mentioned here, using su - to temporarily become root, and configuring sudo to be able to run specific commands with root privs
If it was up to me, I'd split the points between the first suggestion of each of the two types
If it was up to me, I'd split the points between the first suggestion of each of the two types