i've got a regular user i want to turn into admin group so he can have same privileges as a root.
should i just change the GID in /etc/passwd and /etc/group or should i use usermod/groupmod?
|
feedback
|
|
You do not want to make this user EXACTLY the same as root. Don't change uid and gid. You have a few options:
| |||||||
feedback
|
|
Your best bet under ubuntu is to add the person to the sudoers file. You should use visudo to edit this file. If you hate vi, you can set the EDITOR shell variable to use your preferred editor. You have many choices when adding a peson as a sudoer. You don't have to give them blanket root access if you don't want to. In general the lines in /etc/sudoers looks like:
There are some general guidelines when editing this file:
You can use /etc/sudoers to grant specific access to specifc people for any or all applications. This site includes some decent examples. | |||
|
feedback
|
|
In a default Ubuntu installation, you can simply add the user to the "admin" group: | |||
|
feedback
|