You are not logged in.
On the recent update to filesystem (2015.09-1 -> 2016.12-2) there was a warning "warning: /etc/nsswitch.conf installed as /etc/nsswitch.conf.pacnew" - and in my system the old and new config files were:
$ cat /etc/nsswitch.conf
# Begin /etc/nsswitch.conf
passwd: files
group: files
shadow: files
publickey: files
#hosts: files dns myhostname
hosts: files mdns4_minimal dns mdns4 myhostname
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files
# End /etc/nsswitch.confand
$ cat /etc/nsswitch.conf.pacnew
# Begin /etc/nsswitch.conf
passwd: compat mymachines systemd
group: compat mymachines systemd
shadow: compat
publickey: files
hosts: files mymachines resolve [!UNAVAIL=return] dns myhostname
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files
# End /etc/nsswitch.confThe lines for passwd, group and shadow as well as the hosts: line are different in my case but I was not sure whether leaving the existing file in place or to include the new parameters was the appropriate way forward. I had thought that the use of "resolve" for the hosts: line was specific to using systemd-networkd, which I don't use. But should I include "resolve" as well even though I don't use systemd-networkd? I also presume that "mymachines" was a token meaning to add in specific machine names for the LAN? I could not find a clear description of this when I searched.
For the passwd, group and shadow lines my understanding was that replacing "files" by "compat" would be fine since this seems to include the behaviour of "files" but with additional control over inclusion and exclusion of specific users? Is it now important to include "systemd" in those lines, and does it matter if I don't? Or is that parameter only needed if you are using systemd-resolved? Does anyone have a link to a clear description of whether leaving one's existing nsswitch.conf file in place would not be a good way forward?
Hopefully this can be easily clarified - or maybe I just missed a thread on this being discussed elsewhere?
Last edited by mcloaked (2016-12-10 15:20:54)
Mike C
Offline
"resolve" refers to systemd-resolved yes, "mymachines" & "myhostname" are also systemd-related actions. I won't comment as to what you should or shouldn't do - though obviously the "official" way under Arch would be to have them enabled - but you can read about what those do in their respective man pages: nss-systemd(8), nss-myhostname(8), nss-mymachines(8) & nss-resolve(8)
Offline
Also related to this update, can someone clarify if this part of the wiki needs to be changed? I have marked it as out of date for now.
https://wiki.archlinux.org/index.php/Av … resolution
9c9
< hosts: files mhdns_minimal [NOTFOUND=return] dns myhostname
---
> hosts: files mymachines resolve [!UNAVAIL=return] dns myhostnameEDIT: Wiki was updated.
Last edited by teateawhy (2016-12-11 11:12:09)
Offline