Red Hat Bugzilla – Bug 1479534
Connection files with incorrect permission
Last modified: 2017-08-08 15:21:05 EDT
Description of problem:
When NetworkManager saves a plugin's connection file, it uses incorrect permissions and the file is rejected from this moment.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
[root@obelix ~]# cd /etc/NetworkManager/system-connections
[root@obelix system-connections]# nmcli conn add type vpn vpn-type openvpn con-name foo ifname '*'
Connection 'foo' (c6173ba8-878d-4667-8f34-af7b79515e7f) successfully added.
[root@obelix system-connections]# ls -l foo
-rw-r--r-- 1 root root 249 Aug 8 20:08 foo
The file has 0644 perms
The file must have 0600 perms
It happens with several plugins, not just openvpn
It seems that my directory /etc/NetworkManager and several subdirectories has a default ACL. I don't understand why, because I don't put this ACL.