LinuxQuestions.org
Review your favorite Linux distribution.
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 03-27-2017, 08:30 AM   #1
auttis
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
Giving an account admin rights


I have created a normal user, not I want to give it admin rights but when I test it by logging with it still shows it is a normal user, how do I make it an admin?
 
Old 03-27-2017, 08:35 AM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch
Posts: 1,253

Rep: Reputation: 467Reputation: 467Reputation: 467Reputation: 467Reputation: 467
Quote:
Originally Posted by auttis View Post
I have created a normal user, not I want to give it admin rights but when I test it by logging with it still shows it is a normal user, how do I make it an admin?
The only account that should have what you are referring to as "admin rights" (which is more Windows terminology) is the root account. In linux, to temporarily elevate privileges to root access while logged in as a regular user, one usually uses either the su (to temporarily "become" root) or sudo (to execute a specific command "as" root) command (refer to your distro's documentation concerning sudo configuration).

Cheers,

Last edited by Rickkkk; 03-27-2017 at 08:37 AM.
 
1 members found this post helpful.
Old 03-27-2017, 08:36 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,667
Blog Entries: 3

Rep: Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904Reputation: 2904
Welcome. This intro might help a bit: http://www.linuxquestions.org/linux/...Ask_a_Question

Moving forward from that, which distro, including version, are you using?

Then what level of "admin" privileges do you want to grant to the new account? Specifically which programs do you want them to run and with (or without) which options? The solution will likely involve adding some choices to sudoers using visudo, but those choices will be based on what you want to allow.
 
1 members found this post helpful.
Old 03-27-2017, 04:39 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,973

Rep: Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403Reputation: 3403
Hello and welcome to LQ.

Linux is not immune to the problems of attacks. Over the years linux users have had to change the way they use the OS to be more secure. Many distro's won't easily let you make an admin (correctly stated above root) user.

You want to run linux at the lowest level of permission possible. When needed you can use a limited uplevel of permissions to accomplish tasks.
 
Old 03-28-2017, 08:06 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,233
Blog Entries: 4

Rep: Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260
When a user is a member of the so-called wheel group (as in, "he's a 'big wheel' around here"), he is customarily able to gain root privileges – using his own password – by entering the command: sudo su.

This is specified in the default version of the /etc/sudoers file.

All of the accounts that I use, save one, are not members of this group and thus do not have the power to become root. Although I own the systems in question, "I'm just an ordinary Joe" to them. If I go into a phone booth, I can only make a phone call – not put on red-and-blue tights. This is by design.

Last edited by sundialsvcs; 03-28-2017 at 08:09 AM.
 
  


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
Users in Domain Admin group (512) don't have admin rights on windows machine nandon Linux - Networking 2 01-21-2013 07:24 AM
[SOLVED] Copying files in an admin account from an account with insufficient permissions? nobuntu Linux - General 14 07-14-2012 02:14 AM
giving AD user local admin rights in Ubuntu zepphead5 Linux - Server 2 07-18-2009 02:22 PM
Erased old account for new one; forgot to give admin priv to new account. RHLinuxGUY Ubuntu 3 08-10-2008 07:56 PM
Giving users more rights (Admin) FatSteve Linux - Security 7 11-19-2003 06:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:28 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
Open Source Consulting | Domain Registration