You are not logged in.

#1 2024-01-18 22:18:28

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

[SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

Hello, I've upgraded my system today and ran into this issue: https://pastebin.com/VjF9rVLA
(Polkit and Filesystem have different permissions for some specific packages)

From what another person has told me in a semi-related post (https://bbs.archlinux.org/viewtopic.php … 2#p2144552), I should leave these alone and let the packages update their permissions.

However, I'm not sure if this is the case here, even if the permissions change is due to Polkit itself altering permissions from 770 to 775.
https://gitlab.archlinux.org/archlinux/ … 9cde94e686




For other possible sources of this issue, I have repaired this system from a partially upgraded state twice, by checking sudo pacman -Qkk and overwriting any erroneous packages. I've attempted to overwrite the packages that are currently outputting these errors, but nothing has changed; leading me to believe that this is likely not the result of a damaged package. Though, I could be wrong about this and overwriting a package might not replace all possible damaged components of a package. This is why I'm asking here.


Should I be worried about these warnings? If so, how should I fix them?


For what it's worth, my system currently functions and boots normally, as far as I know.

Last edited by Iron Squid (2024-01-18 22:54:08)


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#2 2024-01-18 22:41:17

mpan
Member
Registered: 2012-08-01
Posts: 1,221
Website

Re: [SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

Hello. My response in the other topic has been invalidated by the systemd package changing the permissions to 755 (as noted by tekstryder).

Therefore you may change the permissions to 755:

sudo chmod 755 /usr/share/polkit-1/rules.d/

I emphasized the ‘5’, as in the post you said 775.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2024-01-18 22:43:53

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

Looking at some other commits, it seems that this might just be a result of these packages having been installed on this machine before the removal of the "750" lines of code in various packages in order to comply with polkit-124.
Examples:
https://gitlab.archlinux.org/archlinux/ … fd2231c5cb
https://gitlab.archlinux.org/archlinux/ … dff9ccd13a
https://gitlab.archlinux.org/archlinux/ … 819a6d943a

But.... the upgrade process should've fixed these discrepancies on their own, right?


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#4 2024-01-18 22:44:45

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

mpan wrote:

Hello. My response in the other topic has been invalidated by the systemd package changing the permissions to 755 (as noted by tekstryder).

Therefore you may change the permissions to 755:

sudo chmod 755 /usr/share/polkit-1/rules.d/

I emphasized the ‘5’, as in the post you said 775.


I see. So, I assume this is a perfectly safe operation to perform in order to repair the discrepancy?

Also, thank you for the correction, I must've mis-pressed numbers.

Last edited by Iron Squid (2024-01-18 22:46:54)


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#5 2024-01-18 22:53:10

Iron Squid
Member
From: earth
Registered: 2022-07-18
Posts: 19
Website

Re: [SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

I prepared my ArchIso for the case in which I'd need to go back and change the permission back to 750. This fix worked, thanks.

I'll link to this post in my other post as well, for anyone reading in the future.


"An idiot admires complexity, a genius admires simplicity."

-Terry A. Davis

Offline

#6 2024-01-19 16:08:37

leebickmtu
Member
Registered: 2016-06-07
Posts: 5

Re: [SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

The new permissions seem to stem from this change:
https://gitlab.archlinux.org/archlinux/ … 9cde94e686

Which also alters the Group ownership from 102 (polkitd) to root.
The pacman update doesn't perform the group change either and also doesn't warn about it like the permissions.
Should it be manually changed as well?

Offline

#7 2024-01-29 03:04:33

htfy96
Member
Registered: 2015-10-22
Posts: 11

Re: [SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

Sorry to plug into this thread, but I just found out that this is the exact cause of my Gnome failing to start Wayland with:

Jan 28 21:56:09 code01 gnome-shell[657]: Failed to start X Wayland: Directory "/tmp/.X11-unix" is not writable

Applying the polkit dir permission update fixed the issue.

Offline

#8 2024-01-31 02:51:47

mpan
Member
Registered: 2012-08-01
Posts: 1,221
Website

Re: [SOLVED] Pacman complains of mismatched Polkit/Filesystem permissions

I doubt it’s related. The error is about a completely different directory. It’s created by xorg and has 777 permissions. I don’t know of any dependency of these permissions on polkit, but — if such would exist — the change of polkit directory’s permissions isn’t affecting anything in current polkit’s behavior. So it seems like coincidental event with no causal relation.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB