network-manager no longer restarts dnsmasq
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
restarting Network Manager does not have any effect on it's child dnsmasq (nor does stopping and starting)
ubuntu@ubuntu:~$ pidof dnsmasq
2355
ubuntu@ubuntu:~$ sudo systemctl restart NetworkManager
ubuntu@ubuntu:~$ pidof dnsmasq
2355
This problem started in 15.10 and still exists in 16.04 beta2 - it works as expected in 14.04.
The upshot is you cannot load any extra dnsmasq configuration set in the conf dir /etc/NetworkMan
(As a related issue dnsmasq is also running as 'nobody' and I don't think it should, Bug #1105493)
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: network-manager 1.0.4-0ubuntu10
ProcVersionSign
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Mar 25 18:13:33 2016
IfupdownConfig:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
IpRoute:
default via 192.168.0.1 dev wlp4s0 proto static metric 600
169.254.0.0/16 dev wlp4s0 scope link metric 1000
192.168.0.0/24 dev wlp4s0 proto kernel scope link src 192.168.0.107 metric 600
NetworkManager.
[main]
NetworkingEnab
WirelessEnable
WWANEnabled=true
WimaxEnabled=true
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
nmcli-con:
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-
Wired connection 1 53d8bcbd-
Mosquito a88863fb-
nmcli-dev:
DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
wlp4s0 wifi connected /org/freedeskto
enp0s25 ethernet unavailable /org/freedeskto
lo loopback unmanaged /org/freedeskto
nmcli-nm: Error: command ['nmcli', '-f', 'all', 'nm'] failed with exit code 2: Error: Object 'nm' is unknown, try 'nmcli help'.
Changed in network-manager (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Fix Released |
DNSMASQ runs as user nobody per design of dnsmasq devs.
from the manpage:
-u, --user=<username>
Specify the userid to which dnsmasq will change after startup. Dnsmasq must normally be started as root, but it will drop root privileges after startup by changing id to another user. Normally this user is "nobody" but that can be over-ridden with this switch.