/etc/resolv.conf turns 0640 after closing connection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-strongswan (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
After I close the connection DNS resolving does not work any more as the file linked to from /etc/resolv.conf is not world-readable:
lrwxrwxrwx 1 root root 39 Mär 14 21:04 /etc/resolv.conf -> ../run/
root:/run/
insgesamt 12
drwxr-xr-x 3 systemd-resolve systemd-resolve 120 Aug 30 15:01 .
drwxr-xr-x 20 root root 460 Aug 30 14:44 ..
drwx------ 2 systemd-resolve systemd-resolve 60 Aug 30 15:01 netif
-rw-r--r-- 1 systemd-resolve systemd-resolve 640 Aug 30 15:01 resolv.conf
-rw------- 1 root root 715 Aug 30 14:55 stub-resolv.conf
-rw-r--r-- 1 root root 733 Aug 30 14:55 stub-resolv.
I have to run
sudo chmod 0640 /run/systemd/
to be able to use DNS again.
/etc/nsswitch.conf contains:
hosts: files dns
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: network-
ProcVersionSign
Uname: Linux 5.0.0-25-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Aug 30 15:10:21 2019
DistributionCha
# This is a distribution channel descriptor
# For more information see http://
canonical-
InstallationDate: Installed on 2016-06-01 (1184 days ago)
InstallationMedia: Ubuntu 14.04 "Trusty" - Build amd64 LIVE Binary 20150720-04:06
SourcePackage: network-
UpgradeStatus: Upgraded to bionic on 2018-08-22 (373 days ago)