Date: 29 Nov 2005 08:46:05 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: "Anthony M. Agelastos" <iqgrande@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: _dhcp user problems Message-ID: <44r78zk1nm.fsf@be-well.ilk.org> In-Reply-To: <D35382E7-0B05-4C2A-A357-0A3FDAA5FBDE@gmail.com> References: <4E75A276-3D18-47D2-ADB4-96B85B182843@gmail.com> <44d5kklve0.fsf@be-well.ilk.org> <D35382E7-0B05-4C2A-A357-0A3FDAA5FBDE@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Anthony M. Agelastos" <iqgrande@gmail.com> writes: > Hello and thank you for your reply. I tried the following and here is > where it got me: > > ast# pwd_mkdb -u _dhcp /etc/master.passwd > ast# pwd_mkdb -u _dhcp /etc/passwd > pwd_mkdb: corrupted entry > pwd_mkdb: at line #3 > pwd_mkdb: /etc/passwd: Inappropriate file type or format > ast# pwd_mkdb -u -p _dhcp /etc/passwd > usage: pwd_mkdb [-BCiLNp] [-d directory] [-s cachesize] [-u username] > file > ast# pwd_mkdb -p -u _dhcp /etc/passwd > pwd_mkdb: corrupted entry > pwd_mkdb: at line #3 > pwd_mkdb: /etc/passwd: Inappropriate file type or format > ast# pw userdel _dhcp > pw: no such user `_dhcp' > ast# pw useradd _dhcp -u 65 -c "dhcp programs" -d /var/empty -s /usr/ > sbin/nologin > pw: user '_dhcp' already exists > > Should I be doing something else? How can I wipe the slate clean with > users, groups, and accounts? I tried going through sysinstall and > when I try to add _dhcp as a user, it gives me an error code (The > `pw' command exited with unexpected status 74) after it mentions that > the requested shell "/usr/sbin/nologin" is not a valid user shell. > Any help would be greatly appreciated. Just the normal "pwd_mkdb /etc/master.passwd" and see if _dhcp is in /etc/passwd afterwards.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44r78zk1nm.fsf>