LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 08-09-2017, 08:56 AM   #1
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
how to use software update GUI as non root (sudo)


Hi,

it seems the software update needs the root password, it asks for it.

is it possible to run this with sudo rights, so that the update applate does not ask for the root password but for the user one ?
 
Old 08-09-2017, 10:59 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
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.

Last edited by hazel; 08-09-2017 at 11:07 AM.
 
Old 08-10-2017, 12:39 AM   #3
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Original Poster
Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
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?
 
Old 08-10-2017, 01:14 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
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.

Last edited by hazel; 08-10-2017 at 01:31 AM.
 
1 members found this post helpful.
Old 08-10-2017, 04:00 AM   #5
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Original Poster
Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
excellent, thanks!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo apt-get update/upgrade vs System> Administration>Software&Updates eco_bach Linux - Newbie 12 07-22-2017 07:07 PM
[SOLVED] How do gui programs get root privilege without sudo? ahc_fan Programming 5 06-11-2016 06:40 AM
Why I don't have update with zypper but I do have with software management GUI? yzT! SUSE / openSUSE 2 02-18-2014 11:26 AM
Question about the sudo command, specifically how to have sudo act as if user is root slacker_ Linux - Newbie 17 09-22-2013 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 12:11 AM.

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