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 ?
Edit: I suppose this is expected ?
Check the permissions for /etc/credstore.
drwx------. 2 root root 4096 Jul 28 02:00 credstore
So it looks there is nothing to change/fix.
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
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.
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.
09:03AM - 27 Jan 23 UTC
This adds a tmpfiles.d/ snippet for LoadCredential= style credentials
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
# See tmpfiles.d(5) for details
d /etc/credstore 0700 root root
d /etc/credstore.encrypted 0700 root root
z /run/credstore 0700 root root
z /run/credstore.encrypted 0700 root root
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:
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…
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.