[Bug 1736965] Re: "netplan apply" does not set file mode, umask 077 causes systemd-networkd to be unable to start
Steve Langasek
steve.langasek at canonical.com
Thu Nov 8 17:05:07 UTC 2018
** Changed in: netplan.io (Ubuntu Bionic)
Status: Fix Released => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nplan in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1736965
Title:
"netplan apply" does not set file mode, umask 077 causes systemd-
networkd to be unable to start
Status in netplan.io package in Ubuntu:
Fix Released
Status in nplan package in Ubuntu:
Confirmed
Status in netplan.io source package in Bionic:
Fix Committed
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-networkd[2826]: Could not load configuration files: Permission denied
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
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1736965/+subscriptions
More information about the foundations-bugs
mailing list