In some of my servers there is this strange line at the end of /etc/passwd/
consisting of just:
+::::::
Does anyone knows what it means?
I searched the net but only found the same, unanswered question by one Jim from 2012:
Anyone know what this means in Linux SLES 11 and can it be removed
(see https://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/).
Servers in question run SLES 12
, the other Ubuntu bionic
.
As Lukas Räpple pointed out in the comments, that line is a legacy entry for using NIS with ancient libc5.
If you want to keep using NIS but remove that line, change the
passwd: compat
line in/etc/nsswitch.conf
topasswd: files nis
first. You should also check theshadow:
andgroup:
lines (and/etc/group
and/etc/shadow
files) for similar legacy settings.I'm reposting the below from the following Unix stackexchange answer:
https://unix.stackexchange.com/questions/106215/whta-does-bin-bash-in-etc-passwd-mean
The answer lies in the nsswitch.conf(5) man page: