Verification-done on bionic using netplan.io 0.40.1~18.04.2:
Verified that with umask set, netplan correctly generates the files for systemd with 644 permissions, and they are succesfully read by systemd-networkd.
root@working-guinea:~# umask
0077
root@working-guinea:~# cd /run/systemd/system/
root@working-guinea:/run/systemd/system# ls
root@working-guinea:/run/systemd/system# cd ../network/
root@working-guinea:/run/systemd/network# ls
10-netplan-eth0.network 10-netplan-veth0.network
root@working-guinea:/run/systemd/network# ls -altr
total 8
-rw-r--r-- 1 root root 78 Oct 29 20:53 10-netplan-veth0.network
-rw-r--r-- 1 root root 100 Oct 29 20:53 10-netplan-eth0.network
drwxr-xr-x 2 root root 80 Oct 29 20:53 .
drwxr-xr-x 20 root root 480 Oct 29 20:53 ..
root@working-guinea:/run/systemd/network# touch toto
root@working-guinea:/run/systemd/network# ls -altr
total 8
-rw-r--r-- 1 root root 78 Oct 29 20:53 10-netplan-veth0.network
-rw-r--r-- 1 root root 100 Oct 29 20:53 10-netplan-eth0.network
drwxr-xr-x 20 root root 480 Oct 29 20:53 ..
-rw------- 1 root root 0 Oct 29 20:54 toto
drwxr-xr-x 2 root root 100 Oct 29 20:54 .
root@working-guinea:/run/systemd/network# netplan apply
root@working-guinea:/run/systemd/network# ls -latr
total 8
-rw------- 1 root root 0 Oct 29 20:54 toto
-rw-r--r-- 1 root root 78 Oct 29 20:54 10-netplan-veth0.network
-rw-r--r-- 1 root root 100 Oct 29 20:54 10-netplan-eth0.network
drwxr-xr-x 2 root root 100 Oct 29 20:54 .
drwxr-xr-x 21 root root 500 Oct 29 20:54 ..
root@working-guinea:/run/systemd/network# netplan generate
root@working-guinea:/run/systemd/network# ls -latr
total 8
-rw------- 1 root root 0 Oct 29 20:54 toto
drwxr-xr-x 21 root root 500 Oct 29 20:54 ..
-rw-r--r-- 1 root root 78 Oct 29 20:54 10-netplan-veth0.network
-rw-r--r-- 1 root root 100 Oct 29 20:54 10-netplan-eth0.network
drwxr-xr-x 2 root root 100 Oct 29 20:54 .
Verification-done on bionic using netplan.io 0.40.1~18.04.2:
Verified that with umask set, netplan correctly generates the files for systemd with 644 permissions, and they are succesfully read by systemd-networkd.
root@working- guinea: ~# umask guinea: ~# cd /run/systemd/ system/ guinea: /run/systemd/ system# ls guinea: /run/systemd/ system# cd ../network/ guinea: /run/systemd/ network# ls eth0.network 10-netplan- veth0.network guinea: /run/systemd/ network# ls -altr veth0.network eth0.network guinea: /run/systemd/ network# touch toto guinea: /run/systemd/ network# ls -altr veth0.network eth0.network guinea: /run/systemd/ network# netplan apply guinea: /run/systemd/ network# ls -latr veth0.network eth0.network guinea: /run/systemd/ network# netplan generate guinea: /run/systemd/ network# ls -latr veth0.network eth0.network
0077
root@working-
root@working-
root@working-
root@working-
10-netplan-
root@working-
total 8
-rw-r--r-- 1 root root 78 Oct 29 20:53 10-netplan-
-rw-r--r-- 1 root root 100 Oct 29 20:53 10-netplan-
drwxr-xr-x 2 root root 80 Oct 29 20:53 .
drwxr-xr-x 20 root root 480 Oct 29 20:53 ..
root@working-
root@working-
total 8
-rw-r--r-- 1 root root 78 Oct 29 20:53 10-netplan-
-rw-r--r-- 1 root root 100 Oct 29 20:53 10-netplan-
drwxr-xr-x 20 root root 480 Oct 29 20:53 ..
-rw------- 1 root root 0 Oct 29 20:54 toto
drwxr-xr-x 2 root root 100 Oct 29 20:54 .
root@working-
root@working-
total 8
-rw------- 1 root root 0 Oct 29 20:54 toto
-rw-r--r-- 1 root root 78 Oct 29 20:54 10-netplan-
-rw-r--r-- 1 root root 100 Oct 29 20:54 10-netplan-
drwxr-xr-x 2 root root 100 Oct 29 20:54 .
drwxr-xr-x 21 root root 500 Oct 29 20:54 ..
root@working-
root@working-
total 8
-rw------- 1 root root 0 Oct 29 20:54 toto
drwxr-xr-x 21 root root 500 Oct 29 20:54 ..
-rw-r--r-- 1 root root 78 Oct 29 20:54 10-netplan-
-rw-r--r-- 1 root root 100 Oct 29 20:54 10-netplan-
drwxr-xr-x 2 root root 100 Oct 29 20:54 .