Date: Wed, 04 Feb 2004 19:13:33 +0000 From: Peter Risdon <peter@circlesquared.com> To: freebsd-questions@freebsd.org Subject: Re: Cannot Add User Message-ID: <4021445D.4060507@circlesquared.com> In-Reply-To: <p05200f0abc46dbfcced9@[68.24.1.250]> References: <p05200f02bc464ca9375d@[68.24.1.250]> <44n07zvsay.fsf@be-well.ilk.org> <p05200f0abc46dbfcced9@[68.24.1.250]>
next in thread | previous in thread | raw e-mail | index | archive | help
** Sometime around 09:21 -0500 02/04/2004, Lowell Gilbert sent everyone: >> Vince Sabio <vince@vjs.org> writes: >> >> [...] >> > I'm now trying to install Postfix, and the problem I'm running into is >> >>> that I cannot create new user accounts. I created several user >>> accounts during installation, and they seem to be fine. But when I >>> [manually] create entries in /etc/passwd, master.passwd, and group, >>> the entries are 'ignored' -- e.g., a "chown [newuser] [filename]" >>> command fails, attempts to su from root into the user account fail, >>> etc. When I try to create the user via adduser (using the standard >>> defaults), the account creation step fails with the following error: >>> >> > pw: user '[newuser]' disappeared during update >> >> It sounds like you've messed up your user database. Try running >> pwd_mkdb(8) by hand to get it straightened out. In future, remember >> not to edit passwd and so forth by hand; stick with adduser(8) and/or >> vipw(8) to avoid shooting yourself in the foot like this. > I notice you don't recommend pw(8). I have some scripts that use pw(8) to add users with things like a /nonexistent shell - they do other stuff to do with quotas, smbpasswd and so on and allow it all to be managed in a single operation from a web interface. Am I storing up problems for myself like this? It has been fine so far. PWR.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4021445D.4060507>