_dhcp user problems

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Tue Nov 29 13:46:15 GMT 2005


"Anthony M. Agelastos" <iqgrande at 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.


More information about the freebsd-questions mailing list