Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363
Rep:
Quote:
Originally Posted by auttis
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).
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.