Date: Thu, 9 Jul 2009 16:13:25 +0300 From: Vlad Galu <dudu@dudu.ro> To: freebsd-stable@freebsd.org Subject: pw groupadd/useradd fail when the nscd cache is used for name/group resolution Message-ID: <ad79ad6b0907090613t78cf8540n5fcd3934cadde526@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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@vgalu /usr/ports/databases/postgresql84-server]# pw group add pgsql -g 70 pw: group disappeared during update [root@vgalu /usr/ports/databases/postgresql84-server]# pw group add pgsql -g 70 pw: group 'pgsql' already exists [root@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad79ad6b0907090613t78cf8540n5fcd3934cadde526>