Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Polkit-Packagekit Authentication after chmod

  1. #1

    Default Polkit-Packagekit Authentication after chmod

    I've moved a lot of my files into a new user account (consolidating it to one account on one computer).

    Because I used Dolphin in Super User Mode that meant using chown to change the owner and group.

    To make it complete, I used chmod -R u=rwX,g=rX,o-rwx on the /home/username directory.

    Suddenly, packagekit or polkit starts throwing authentication errors whenever Software Updates in KDE's systray tries to do what it is designed to do.

    How can I fix this?

  2. #2
    Join Date
    Oct 2014
    Location
    Rotterdam
    Posts
    147

    Default Re: Polkit-Packagekit Authentication after chmod

    It will be very tricky to solve this, I think your best bet is to go back using a backup.

    One other approach is too look at the authentication errors, try to understand what is wrong and fix it. It could be that just moving the files and not the chmod is causing these problems.

  3. #3
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,131

    Default Re: Polkit-Packagekit Authentication after chmod

    PackageKit has always brought problems, which is why so many experienced openSUSE users routinely delete or never load it, and use the reliable YaST Online Update or update manually.

    If you want to use PK, my suggestion is to use YaST > Software Management to search for “packagekit” and uninstall everything found with the exception of the following three packages:
    libpackagekit-glib2-18
    libpackagekitqt5-0
    typelib-1_0-PackageKitGlib-1_0

    Afterwards restart YasT > Software Management, search for “packagekit”again and install
    pk-update-icon
    this should automatically select all the other required PackageKit packages for reinstallation. Hopefully that will rewrite the polkit configuration with sensible values.
    As a PK-phobic I have not tested this, but I do not think that it will do any harm. It might be necessary to restart polkit after deleting and reinstalling.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  4. #4

    Default Re: Polkit-Packagekit Authentication after chmod

    @marel

    I never moved dot files or dot folders. None of the files I moved could affect authentication.

    I did read that chmod could remove the uid, gid or acl settings. Maybe that's what happened to certain dot files and now polkit is complaining about it? Not that the error messages are useful. Nor is there any dot file that seems like it's part of some authentication process.

    @eng-int

    I already tried a more extreme solution: I reinstalled opensuse 42.3 (I was moving everything to a new hard drive and only the root partition was still on the older hard drive). This didn't work.

    I can understand why packagekit brings problems when even a reinstall doesn't fix the problem. This means that the authentication is somehow connected to \home\username (which just seems like an awful design decision). More specifically, it seems connected to owner, user group and permissions (as the problems occurred afterwards).

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,289
    Blog Entries
    1

    Default Re: Polkit-Packagekit Authentication after chmod

    What is reported if you run pkcon (PackageKit CLI) from a user terminal?
    Code:
    pkcon refresh
    Any errors?

  6. #6

    Default Re: Polkit-Packagekit Authentication after chmod

    Quote Originally Posted by deano_ferrari View Post
    What is reported if you run pkcon (PackageKit CLI) from a user terminal?
    Code:
    pkcon refresh
    Any errors?
    It gives:

    Code:
    Refreshing cache              [=========================]         
    Waiting for authentication
    and then an "Authentication Required" dialogue pops up. When you click for details, it just gives you pid numbers.

    After giving it the root password, I get this:

    Code:
    Refreshing cache                  [=========================]        
    Waiting for authentication        [=========================]        
    Starting                          [=========================]        
    Refreshing software list          [=========================]        
    Finished                          [=========================]

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,289
    Blog Entries
    1

    Default Re: Polkit-Packagekit Authentication after chmod

    Ok, and what does the following report?
    Code:
    loginctl list-sessions
    and
    Code:
    pkaction -av org.freedesktop.packagekit.system-update

  8. #8

    Default Re: Polkit-Packagekit Authentication after chmod

    Quote Originally Posted by deano_ferrari View Post
    Ok, and what does the following report?
    Code:
    loginctl list-sessions
    The following:
    Code:
    SESSION     UID     USER             SEAT            
        2       1000    myusername       seat0          
        1       481     sddm             seat0
    Quote Originally Posted by deano_ferrari View Post
    and
    Code:
    pkaction -av org.freedesktop.packagekit.system-update
    The following:
    Code:
    org.freedesktop.packagekit.system-update:
      description:       Update software
      message:           Authentication is required to update software
      vendor:            The PackageKit Project
      vendor_url:        http://www.packagekit.org/
      icon:              package-x-generic
      implicit any:      auth_admin
      implicit inactive: auth_admin
      implicit active:   yes

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,289
    Blog Entries
    1

    Default Re: Polkit-Packagekit Authentication after chmod

    The polkit privileges check out as expected ie active user should be able to run 'pkcon refresh' (or 'pkcon update') without authentication. I assume no overrides in /etc/polkit-default-privs.local?

    Quote Originally Posted by ae_lex View Post
    The following:
    Code:
    SESSION     UID     USER             SEAT            
        2       1000    myusername       seat0          
        1       481     sddm             seat0
    Ok, and this should also report user 1000 is active....
    Code:
    loginctl show-session $XDG_SESSION_ID
    I'm not sure what else could be wrong here....

  10. #10
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,289
    Blog Entries
    1

    Default Re: Polkit-Packagekit Authentication after chmod

    Perhaps this too...
    Code:
    env|grep XDG

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •