Verified on 0.107.1-3ubuntu0.22.04.4, with umask 027 netplan directories
are created with rwxr-xr-x access:

0.107.1-3ubuntu0.22.04.3
root@rmalz:/home/rmalz# umask 022
root@rmalz:/home/rmalz# umask
0022
root@rmalz:/home/rmalz# rm -rf  /run/systemd/network
root@rmalz:/home/rmalz# netplan generate
root@rmalz:/home/rmalz# stat /run/systemd/network/
  File: /run/systemd/network/
  Size: 60              Blocks: 0          IO Block: 4096   directory
Device: 1ah/26d Inode: 1984        Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2026-05-07 11:23:23.403931212 +0000
Modify: 2026-05-07 11:23:23.403931212 +0000
Change: 2026-05-07 11:23:23.403931212 +0000
 Birth: -
root@rmalz:/home/rmalz# umask 027
root@rmalz:/home/rmalz# umask
0027
root@rmalz:/home/rmalz# rm -rf  /run/systemd/network
root@rmalz:/home/rmalz# netplan generate
root@rmalz:/home/rmalz# stat /run/systemd/network/
  File: /run/systemd/network/
  Size: 60              Blocks: 0          IO Block: 4096   directory
Device: 1ah/26d Inode: 1989        Links: 2
Access: (0750/drwxr-x---)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2026-05-07 11:24:05.643645681 +0000
Modify: 2026-05-07 11:24:05.643645681 +0000
Change: 2026-05-07 11:24:05.643645681 +0000
 Birth: -


0.107.1-3ubuntu0.22.04.4
root@rmalz:/home/rmalz# umask 022
root@rmalz:/home/rmalz# umask
0022
root@rmalz:/home/rmalz# rm -rf  /run/systemd/network
root@rmalz:/home/rmalz# netplan generate
root@rmalz:/home/rmalz# stat /run/systemd/network/
  File: /run/systemd/network/
  Size: 60              Blocks: 0          IO Block: 4096   directory
Device: 1ah/26d Inode: 2001        Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2026-05-07 11:25:23.447088021 +0000
Modify: 2026-05-07 11:25:23.447088021 +0000
Change: 2026-05-07 11:25:23.447088021 +0000
 Birth: -
root@rmalz:/home/rmalz# umask 027
root@rmalz:/home/rmalz# umask
0027
root@rmalz:/home/rmalz# rm -rf  /run/systemd/network
root@rmalz:/home/rmalz# netplan generate
root@rmalz:/home/rmalz# stat /run/systemd/network/
  File: /run/systemd/network/
  Size: 60              Blocks: 0          IO Block: 4096   directory
Device: 1ah/26d Inode: 2006        Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2026-05-07 11:25:41.867960099 +0000
Modify: 2026-05-07 11:25:41.867960099 +0000
Change: 2026-05-07 11:25:41.867960099 +0000
 Birth: -


** Tags removed: verification-needed-jammy
** Tags added: verification-done-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2076319

Title:
  Netplan generate is creating directories with incorrect permission

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2076319/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to