[Bug 1736965] [NEW] "netplan apply" does not set file mode, umask 077 causes systemd-networkd to be unable to start

Colin 1736965 at bugs.launchpad.net
Thu Dec 7 14:39:27 UTC 2017


Public bug reported:

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)

** Affects: nplan (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nplan in Ubuntu.
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 nplan package in Ubuntu:
  New

Bug description:
  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/nplan/+bug/1736965/+subscriptions



More information about the foundations-bugs mailing list