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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I suggest you abandon the (in my opinion) horrible way that Ubuntu and Mint handle permissions, and go back to the standard Linux way. No account should be a global "administrator" except for root. In my opinion, the best thing to do would be to enable the root account on your machine, and then strip sudo access for your current "administrator" account to turn it into a regular account.
You can enable the root account by running:
sudo passwd root
and giving it a password
You can strip sudo access for your current "administrator" account by editing the /etc/sudoers file.
A proper setup means having a root account with a strong password, and then having regular user accounts with [if necessary] limited sudo access to the few commands they need to run on a regular basis that require elevated permissions.
Long answer to a simple question, but it does give you the answer you're looking for. It adds an "administrator" account (root, which should be the only administrator account), and drops your current account to a regular user.
Last edited by suicidaleggroll; 07-18-2014 at 02:09 PM.
The primary user created during installation with Ubuntu/Mint is the administrator, has root privileges. It would seem to me that it would be simpler to create another regular user and use that. If you are using the GUI Users and Groups from the Control Center or System Settings, you should be prompted for a password when you click Add. If that isn't happening, I don't know what the problem is.
that seems to me to be an acceptable solution, but how do I edit sudoers?
After I switched on my brain and I typed in "sudo gedit sudoers" I could open the file.
Now I was completely at a loss, because:
# This file MUST be edited with the 'visudo' command as root.
# Please consider adding local content in /etc/sudoers.d/ instead of directly modifying this file.
# See the man page for details on how to write a sudoers file.
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
nothing to me ... sorry ... what am I supposed to change?
If I try it with "visudo sudoers" or "sudo visudo sudoers" appears "usage: visudo [-chqsV] [-f sudoers] [-x file]"
I feel so stupid ...
well, is already correct, but accepted my name is yancek and the primary userid is also yancek, I would like to keep this already and do not create another which is my working name then.
How can I solve that?
I use LinuxMint all the time for years now. I'm having a little trouble understanding what you mean that your account is strictly administrator. Since I am the only one that uses my computer, I have not investigated that much, but I do not usually work as "administrator" or "root".
I did download and install an OEM version of LinuxMint recently, and thought (from some peculiarities of the install procedure that it might have me as the administrator, but discovered that If I wanted to (for instance) install a program, that I still had to ask for root privileges ("sudo su", or "sudo password command"), so I was not working as administrator. But what I did discover is that the user number was some outlandish figure which I can't remember, so I went through the porcedure to get it ready to "ship to end user" or however it was worded on the icon on the desktop. The different end user number was interfering with me using the files made by myself on other distros for the past ten years.
By "administrator" I'm sure he means that his regular user account is allowed to do anything it wants by simply sticking a "sudo" in front of it and typing in his own password. That's not asking for root privileges, that's akin to the Windows security model where you just click "OK" on the popup and it goes on to destroy your system.
When a user is allowed to do anything he feels like by sticking a "sudo" in front of the command, that IS an administrator account.
Disabling the root user and granting this admin ability arbitrarily to the first configured user without any say in the matter is as Windows-like as it gets.
Last edited by suicidaleggroll; 07-18-2014 at 06:57 PM.