Permissions differ

Anyone got this message during the today’s update ?

[2023-08-01T20:08:46-0300] [ALPM] warning: directory permissions differ on /etc/credstore/
filesystem: 0  package: 700
[2023-08-01T20:08:46-0300] [ALPM] warning: directory permissions differ on /etc/credstore.encrypted/
filesystem: 0  package: 700

Should I worry about it ?

Thanks.

Edit: I suppose this is expected ?

https://raw.githubusercontent.com/systemd/systemd/main/NEWS

3 Likes

Check the permissions for /etc/credstore.

Mine is:

drwx------. 2 root root 4096 Jul 28 02:00 credstore

So it looks there is nothing to change/fix.

1 Like

hmm, everything seems to be correct here then…

$ ls -lah /etc/ | grep cred
drwx------ 1 root root     0 abr  5 16:24 credstore
drwx------ 1 root root     0 abr  5 16:24 credstore.encrypted

Thanks pebcak :+1:

1 Like

So the right permissions are 700 ? Because mine are weird :

d---------   2 root root    4096  4 avril 22:50 credstore
d---------   2 root root    4096  4 avril 22:50 credstore.encrypted

and I didn’t find anything in the logs.

If I am not mistaken, d--------- is equivalent to permision 000 meaning that nobody but root has rwx permisions.

I guess that would be the same as 700 when the owner is root anyways. :thinking:

000 is not the kind of permission that is common.

Are we expected users to run the two following commands to correct the permissions?

sudo chmod 700 -R /etc/credstore/
sudo chmod 700 -R /etc/credstore.encrypted/    

I can’t tell you with certainty, but the warning about permissions makes sense and they are not without reason. I’ve changed my permissions as in your example.

if you look at the history of the code, recently the permissions was changed from 000 to 700.

image

image

4 Likes

Since in my system the permissions for those directories were reported as 700, I just left it at that.

I have come across this one thread on Arch’s forum regarding this permissions issue: https://bbs.archlinux.org/viewtopic.php?id=287675

4 Likes

Yeah I saw that too, and was going to post the link this morning, but all that’s worth reading is this: “There’s nothing to fix. Check the directory permissions, that upgrade changed them.” People on the Arch Reddit are a bit still unsure what to do at the moment tho. I’d post the Reddit link, but looks like Reddit is currently down at the moment so… :upside_down_face:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.