You are not logged in.

#1 2019-03-16 23:07:40

rellieberman
Member
Registered: 2018-11-19
Posts: 10

[SOLVED] pacman warning of permission mismatch

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

#2 2019-03-16 23:38:31

ayekat
Member
Registered: 2011-01-17
Posts: 1,375
Website

Re: [SOLVED] pacman warning of permission mismatch

rellieberman wrote:

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


{,META,RE}PKGBUILDSpacman-hacks (includes makemetapkg and remakepkg) │ dotfiles

Offline

#3 2019-03-18 10:56:25

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,135
Website

Re: [SOLVED] pacman warning of permission mismatch

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

#4 2019-03-18 13:01:58

ayekat
Member
Registered: 2011-01-17
Posts: 1,375
Website

Re: [SOLVED] pacman warning of permission mismatch

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).


{,META,RE}PKGBUILDSpacman-hacks (includes makemetapkg and remakepkg) │ dotfiles

Offline

#5 2019-03-20 01:43:49

rellieberman
Member
Registered: 2018-11-19
Posts: 10

Re: [SOLVED] pacman warning of permission mismatch

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

#6 2019-04-26 16:36:12

GeneArch
Member
Registered: 2013-07-28
Posts: 12

Re: [SOLVED] pacman warning of permission mismatch

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

#7 2019-04-27 20:01:29

rellieberman
Member
Registered: 2018-11-19
Posts: 10

Re: [SOLVED] pacman warning of permission mismatch

Thanks!
That does seem to be the better way to address the permission mismatch.

Offline

#8 2019-04-27 20:09:51

rellieberman
Member
Registered: 2018-11-19
Posts: 10

Re: [SOLVED] pacman warning of permission mismatch

I can't seem to find any official documentation of this option, can you point me in the right direction?

Offline

#9 2019-04-27 20:11:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,501
Website

Re: [SOLVED] pacman warning of permission mismatch

It's a suggestion/feature request.

# edit: waves at Slithery smile

Last edited by jasonwryan (2019-04-27 20:12:42)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2019-04-27 20:12:10

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,728

Re: [SOLVED] pacman warning of permission mismatch

That option doesn't exist, it was a suggestion for a new feature.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Online

#11 2019-04-27 20:21:39

rellieberman
Member
Registered: 2018-11-19
Posts: 10

Re: [SOLVED] pacman warning of permission mismatch

Oh, I missed the "I.e. add a new option to pacman"
Thanks for the quick replies everyone.

Offline

#12 2019-04-27 20:22:43

apg
Developer
Registered: 2012-11-10
Posts: 193

Re: [SOLVED] pacman warning of permission mismatch

pacrepairfile does exist though.

Offline

Board footer

Powered by FluxBB