LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to give full admin rights to the new user (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-give-full-admin-rights-to-the-new-user-891810/)

chethankp 07-14-2011 11:03 PM

How to give full admin rights to the new user
 
Hi,
I have created a new user using sudo adduser "user1" from the root .
but this user does not have full admin rights ..?

How to give full access to this user1?

chrism01 07-14-2011 11:14 PM

Add to the sudoers file http://www.linuxhomenetworking.com/w...Users_and_Sudo

jefro 07-15-2011 04:15 PM

You should never let any user have full administrator rights or privileges by default. Users and I include administrators only need to have the lowest permissions needed to do that tasks which is a common user's set of permissions.

Whey they do need to run an administrator task they then would use the window's equivalent of runas which sudo in linux. The task is run as an admin while keeping the user a standard user.

See chrism01's link posted and any others for how to setup a user for sudo.

In some very rare cases one may be forces to run su to switch user to root.

TB0ne 07-15-2011 04:26 PM

Agree with both posts, and would also urge caution about doling out admin rights. Even experienced users make mistakes...someone new makes LOTS more of them. With admin rights, those mistakes can wipe out systems easily. Now ask yourself...if the system got erased/broken, who would be responsible for making it work? Do you really want to be there until the middle of the night, trying to make things work, because some new user did an "rm -fR" in the wrong place?


All times are GMT -5. The time now is 03:05 AM.