pw groupadd/useradd fail when the nscd cache is used for name/group
resolution
Vlad Galu
dudu at dudu.ro
Thu Jul 9 13:13:46 UTC 2009
I've stumbled upon this while installing postgres. In
/etc/nsswitch.conf I had "group: cache files compat" and "passwd:
cache files compat". Once I commented them out things started working
again. Before the change, this is how it looked like:
-- cut here --
[root at vgalu /usr/ports/databases/postgresql84-server]# pw group add pgsql -g 70
pw: group disappeared during update
[root at vgalu /usr/ports/databases/postgresql84-server]# pw group add pgsql -g 70
pw: group 'pgsql' already exists
[root at vgalu /usr/ports/databases/postgresql84-server]#
-- and here --
Shouldn't 'files' be used upon a cache miss? If this is a PEBKAC,
sorry for the noise.
More information about the freebsd-stable
mailing list