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.
Is there a way to run the "Users and Groups" without having the root password? I am in the sudoers file and can work with users from the command line. But, I would like to be able to use the GUI.
Is there a way to run the "Users and Groups" without having the root password? I am in the sudoers file and can work with users from the command line. But, I would like to be able to use the GUI.
You don't say what version/distro of Linux you're using, or what desktop environment, so it's hard to give a definitive answer. Under KDE, you can run "kdesu <command-name>", and it will run a GUI based program with elevated privileges. Gnome uses "gksu" for the same thing. You can also write a small 'shell script' with "sudo <whatever-program-name>", and add it into the launcher of your choice, and if you don't have to enter a SUDO password, the program will just come up.
However, I would strongly urge against doing this. GUI based programs as root are accidents waiting to happen, and using the CLI for admin purposes is the 'standard' way of doing things, and if you have to work on a server over the network or at a text-only console, and you rely too heavily on the GUI programs....things won't go easy.
Hmm. When I run "Users and Groups" on my CentOS 7 desktop, I have to enter my password (as for sudo) not the root password.
Which is not to disagree with TB0ne at all. Best is to do those things from the command line.
Users and groups is shortcut to the system-config-users utility which is a link to consolehelper. consolehelper is a wrapper that allows an ordinary user elevated privileges for specific programs and uses pam. I will confess that I run system utilities from the desktop.
I did not think that using your password even if you had sudo privileges would work. I just checked and CentOS 6 system-config-users uses consolehelper but CentOS 7 does not.
Isn't there this thing called keyring that basically stores a user's password so they don't have to enter it again and again?
If I understand OP to be a complaint about having to enter their password (too often), the keyring should help.
Isn't there this thing called keyring that basically stores a user's password so they don't have to enter it again and again?
If I understand OP to be a complaint about having to enter their password (too often), the keyring should help.
I don't mind entering a password, but as mentioned above, it is asking for the root password, not mine.
I don't mind entering a password, but as mentioned above, it is asking for the root password, not mine.
Well, the solution of a small script as mentioned is still valid. If you are in the sudoers file and set up to not be prompted for a password, that'll do what you're after. Again, though...NOT a good or secure thing to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.