You are not logged in.
On updating accountsservice pacman warned a follows:
warning: directory permissions differ on /var/lib/AccountsService/users/
filesystem: 755 package: 700
It is my understanding the the package permissions were originally 755 and now changed to 700 while pacman doesn't change the directories' permission. Therefore the containing directory ( /var/lib/AccountsService/users/) is still 755 while the files it contains are 700.
Is this correct? and should I change the folders permission manually to fix this warning?
Thanks,
Ariel.
Last edited by rellieberman (2019-03-20 01:47:53)
Offline
It is my understanding the the package permissions were originally 755 and now changed to 700 while pacman doesn't change the directories' permission. Therefore the containing directory ( /var/lib/AccountsService/users/) is still 755 while the files it contains are 700.
Yes, this is correct.
In this particular case, the change was made upstream: https://gitlab.freedesktop.org/accounts … d9861f2e71
Offline
I would change the title of the topic to something containing the term "accountsservice" or the path /var/lib/AccountsService/users/, so that it's easier to find.
Can someone recommend a course of action?
Offline
I'd say the title is OK. I interpreted it as a more generic question in the sense of: "What to do if pacman gives permissions warnings? Is my assumption here correct?" + a concrete example (in this case AccountsService).
Also, the course of action is already given in OP's post: change the permissions to what the package indicates (unless you explicitly want to keep it the way it is, but then you'll be getting warnings on all subsequent upgrades again).
Offline
Thanks for the replies!
I was essentially asking both, as I wasn't sure if I correctly understood the problem, as well as not sure what the correct way to solve it was.
Found the answers very useful, so thanks again.
Offline
While in general I'm totally fine with manual intervention - I think this is a case where it should be able to be done using pacman. It will be less error prone. I.e. add a new option to pacman
-f, --fix-file-perms
Adjust any file permissions which differ between the filesystem and the package. See also -Qkk option to list packages for which a difference exists.
e.g.
# pacman -Sf accountsservice
directory permissions differ on /var/lib/AccountsService/users/
filesystem: 755 package: 700 - change to 700 (y/n?): y
/var/lib/AccountsService/users changed to 700.
#
Offline
Thanks!
That does seem to be the better way to address the permission mismatch.
Offline
I can't seem to find any official documentation of this option, can you point me in the right direction?
Offline
It's a suggestion/feature request.
# edit: waves at Slithery
Last edited by jasonwryan (2019-04-27 20:12:42)
Offline
Offline
Oh, I missed the "I.e. add a new option to pacman"
Thanks for the quick replies everyone.
Offline
pacrepairfile does exist though.
Offline