You are not logged in.
Pages: 1
Hi, while updating the
networkmanagerpackage today I encountered a warning:
warning: directory permissions differ on /etc/NetworkManager/system-connections/
filesystem: 600 package: 700As far as i understand the directory
/etc/NetworkManager/system-connections/only contain the connection profiles for networkmanager thus no need for executed permission. Should i change it to 700 according to the warning ?
Last edited by L4yOn (2024-09-01 04:03:43)
Offline
You need x to enter the directory, that's what x means for directories. EDIT: See man chmod. the x flag means "search" for directories. r allows you to list the files, w to write and delete, but only x allows you to enter the directory and actually interact with the files.
Last edited by Awebb (2024-08-29 07:59:01)
Offline
You need x to enter the directory, that's what x means for directories. EDIT: See man chmod. the x flag means "search" for directories. r allows you to list the files, w to write and delete, but only x allows you to enter the directory and actually interact with the files.
So x flag allows to interact whith the files inside it. Then how on earth my networkmanager still run flawlessly despite it not be able to access the wifi password, config, etc... contain in those file ? This confuse me. I'm gonna change it to 700, tks for the help.
Last edited by L4yOn (2024-08-29 08:37:49)
Offline
From the looks of it, NetworkManager runs as root and it can do whatever it wants with the files and directories, because it's root and it's the owner. Beats me why the permissions went wrong, though, but setting them to the package default doesn't seem like a bad idea. Take a note and if anything weird breaks in a week or two, remember today.
Offline
I did "git log -S 'install -dm700' --source --all" to see when it was introduced into the PKGBUILD of the networkmanager package. That was in 2017: https://gitlab.archlinux.org/archlinux/ … ffd4390c05
The system-connections directory didn't seem to exist prior to that commit, so this is not some change that has been introduced by an update. I have no idea what altered it, but I have observed this with other packages, too, where items in /etc suddenly end up with different permissions than they should have.
Offline
the only thing that i can think cause of the altered is i copy the system-connections directory from other machine to this one because i lazy to retype all the wifi password. But that happen when i setup this machine way back last year and the warning should have pop up multiple time when i run sudo pacman -syu.
Offline
Did you copy it using some vfat formated drive?
Either way, fix the permissions - if there's a wider issue, you'll likely see them set back to 600
Online
Did you copy it using some vfat formated drive?
Either way, fix the permissions - if there's a wider issue, you'll likely see them set back to 600
Now i think about it the original directory is on ext4 but i copy it to other ntfs drive then copy from that ntfs drive to this ext4 drive. So maybe the permission change happen when i copy the original directory to ntfs ?
Last edited by L4yOn (2024-08-29 21:57:37)
Offline
So maybe the permission change happen when i copy the original directory to ntfs ?
Yes.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
(You'll probably have to shorten the title for that)
Online
Pages: 1