LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2011, 11:03 PM   #1
chethankp
LQ Newbie
 
Registered: Jul 2011
Posts: 13

Rep: Reputation: Disabled
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?
 
Old 07-14-2011, 11:14 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,356

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Add to the sudoers file http://www.linuxhomenetworking.com/w...Users_and_Sudo
 
1 members found this post helpful.
Old 07-15-2011, 04:15 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,356

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
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.
 
1 members found this post helpful.
Old 07-15-2011, 04:26 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
giving AD user local admin rights in Ubuntu zepphead5 Linux - Server 2 07-18-2009 02:22 PM
How do I give windows domain users local admin rights - WINBIND basilwt Linux - Networking 1 03-16-2007 11:53 PM
How to add user with admin rights or root previliges? tsarlz Fedora 1 10-24-2006 08:05 AM
How to give user administration rights? final60 SUSE / openSUSE 1 04-20-2006 07:40 PM
Linux PDC - How Do I give the Samba User Local Admin Rights on XP machine? Vince0000 Linux - Networking 4 12-18-2003 02:54 AM


All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration