[SOLVED] how to use software update GUI as non root (sudo)
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
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.
You would need to (as root) edit the /etc/sudoers file. This is a dangerous job, so you don't use a direct edit command, you use visudo. This command will do automatic syntax checks before filing the edited version to prevent you making a mess of the file.
Most default sudoers files have a line (sometimes commented out) to give members of the wheel group, or of a special sudo group, rights to use sudo on all commands. Activate this line if necessary by removing the # at the beginning, then (still as root) add yourself to this group with the usermod command.
Some people here would recommend that you create a second "administrative" user to hold this power, and don't surf the web or open emails as that user.
thanks for your answer, but it seems I did not have explained the problem detailed enough.
there is a update applet, it will show you the availability of new software updates.
when you click on update, it wants the root password.
this I do not have, I have sudo rights,
this means, I have to go to an console, and run sudo yum update manual.
A lot of people do not do this, as a result, they have computers that are out of date for weeks.
What I want is, when the update applet shows the availability of new updates, users can install them via click on this.
users are sudoers, but not root
how can this be done that those users can install the updates via a click?
Graphical applets tend to use polkit for their permissions. There is a set of default authentications in /usr/share/polkit-1 and a set of override files in the /etc/polkit-1 tree. If you know the name of the update applet, you can use the pkaction command to find out what the authentication procedures currently are.
I think there's a file in /etc/polkit-1 that defines what counts as a "administrator" password. Here is a link to the polkit manual.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.