more permission issues - polkit this time

General support questions
Post Reply
lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

more permission issues - polkit this time

Post by lightman47 » 2018/02/16 17:39:08

Some time about, I messed up some of my permissions in some system folders. I posted here and ran the suggested command "for p in $(rpm -qa); do rpm --setperms $p; rpm --setugids $p; done". This fixed whole lots of issues I was having but created a few 'randoms' that, until now, I've been able to resolve myself with use of 'chown' and 'chgrp'.

The newest however is an attempt to run yumex. For the first time, it didn't even bother to ask for my user password before starting. I am a member of 'wheel' and it always asks, but not this time. Yumex started, and immediately popped up a 'Fatal Error : polkit-not-autherized' window that said:

Code: Select all

Could not get polkit autherisation to start backend 

Yum Extender will terminate


Behind it on the yumex screen were 3 lines:

Code: Select all

12:27:33 : Can't detect the network connection state
12:27:33 : Starting yum child process
12:27:33 : YUM: pkexec must be setuid root 
SO - I snooped 'pk' files in /usr/bin and all looked ok:

Code: Select all

-rwxr-xr-x.   1 root root       11576 Aug  2  2017 pk11install
-rwxr-xr-x.   1 root root       93168 Oct 19 15:24 pk12util
-rwxr-xr-x.   1 root root       15352 May 25  2017 pkaction
-rwxr-xr-x.   1 root root       23576 May 25  2017 pkcheck
-rwxr-xr-x.   1 root root       75208 Aug  6  2017 pkcon
-rwxr-xr-x.   1 root root       32720 Aug  3  2017 pkcs11_eventmgr
-rwxr-xr-x.   1 root root      104736 Aug  3  2017 pkcs11_inspect
-rwxr-xr-x.   1 root root       74888 Aug  3  2017 pkcs11_listcerts
-rwxr-xr-x.   1 root root       28568 Aug  3  2017 pkcs11_setup
-rwxr-xr-x.   1 root root       15896 Nov  5  2016 pkcs1-conv
-rwxr-xr-x.   1 root root       27680 May 25  2017 pkexec
-rwxr-xr-x.   1 root root       45448 Jun  9  2014 pkg-config
-rwxr-xr-x.   1 root root       28336 Aug  4  2017 pkill
-rwxr-xr-x.   1 root root       19688 Jun  9  2014 pkla-admin-identities
-rwxr-xr-x.   1 root root       27960 Jun  9  2014 pkla-check-authorization
-rwxr-xr-x.   1 root root      104752 Aug  3  2017 pklogin_finder
-rwxr-xr-x.   1 root root       20312 Aug  6  2017 pkmon
-rwxr-xr-x.   1 root root       15320 May 25  2017 pkttyagent
Now, upon typing this, my attention goes back to not being asked for my user password. I'm thinking something in my home/user directory perhaps?

Thank you.

- Googled but results very old and I am not sure what I am looking for (hence this post)

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: more permission issues - polkit this time

Post by avij » 2018/02/16 18:09:23

lightman47 wrote:

Code: Select all

12:27:33 : YUM: pkexec must be setuid root 
...
-rwxr-xr-x.   1 root root       27680 May 25  2017 pkexec
The permissions of pkexec should be -rwsr-xr-x.

rpm --setperms polkit should fix that, but I wonder why it didn't already do it when you ran that for all the packages on your system.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: more permission issues - polkit this time

Post by lightman47 » 2018/02/16 19:23:47

and THAT worked. Thank you!

I wonder as well - ran it 'sudo' I believe.

Post Reply