"netplan apply" does not set file mode, umask 077 causes systemd-networkd to be unable to start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan.io (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
nplan (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Ubuntu users configuring a custom umask on their system
[Test case]
1) set UMASK in /etc/login.defs to 077
2) Configure netplan to use the networkd renderer, run 'sudo netplan apply'.
3) Verify that systemd-network applies the correct network configuration.
[Regression potential]
This enforces setting the umask for the netplan-gnerated configurations to a value that allows networkd to read the files for the configuration. If people rely on the umask, and have otherwise configured systemd-networkd to be able to get the configuration, this would defeat their umask change. The failure more for this is something that isn't supported.
---
If you set your UMASK in /etc/login.defs to 077 then after running "netplan apply" systemd-networkd won't be able to read its configuration files and start:
systemd-
Annoyingly to report such a thing as bug you need a proper network connection with working DNS before you submit in ubuntu-bug or it will just quit and lose the report. A workaround seems to be to run "ubuntu-bug nplan" then in another terminal run "umask 022" then "netplan apply" before submitting.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: nplan 0.30
ProcVersionSign
Uname: Linux 4.13.0-17-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.5
Architecture: amd64
Date: Thu Dec 7 10:20:37 2017
ProcEnviron:
LANGUAGE=en_CA:en
TERM=screen
PATH=(custom, no user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: nplan
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in netplan.io (Ubuntu): | |
status: | New → In Progress |
description: | updated |
Changed in netplan.io (Ubuntu Bionic): | |
status: | Fix Released → Fix Committed |
Changed in nplan (Ubuntu): | |
status: | Confirmed → Invalid |
Status changed to 'Confirmed' because the bug affects multiple users.