problem starting dhcpd
Trond Endrestøl
Trond.Endrestol at fagskolen.gjovik.no
Tue Nov 15 13:49:14 UTC 2016
On Tue, 15 Nov 2016 12:06+0100, Christoph P.U. Kukulies wrote:
> /usr/local/etc/rc.d # ./isc-dhcpd start
> chown: dhcpd: illegal user name
> ./isc-dhcpd: WARNING: unable to change permissions of /var/run/dhcpd
> ./isc-dhcpd: WARNING: safe_run: chown dhcpd:dhcpd /var/db/dhcpd
> ./isc-dhcpd: WARNING: unable to change permissions of /var/db/dhcpd
> chown: dhcpd: illegal user name
> ./isc-dhcpd: WARNING: unable to change permissions of
> /var/db/dhcpd/dhcpd.leases
> Starting dhcpd.
> ./isc-dhcpd: WARNING: failed to start dhcpd
>
>
>
> /etc/passwd:
>
> dhcpd:*:136:136::0:0:ISC DHCP daemon:/nonexistent:/usr/sbin/nologin
Does /etc/master.passwd contain the dhcpd user? Are the hash tables,
/etc/pwd.db and /etc/spwd.db up to date?
Here's one way of ensuring this using csh syntax, the default shell
for the root user:
setenv EDITOR ee # choose the ee editor over the vi editor
vipw
Make a small change, say entering a space on the first line, then
remove said space, save the file using esc, enter, enter in rapid
succession.
> /etc/group:
>
> dhcpd:*:136:
The group file seems correct, and it doesn't have a hash table
counterpart unlike the /etc/{master.,}passwd files.
Next, try running the chown command manually, e.g.:
chown dhcpd:dhcpd /var/db/dhcpd /var/run/dhcpd
--
+-------------------------------+------------------------------------+
| Vennlig hilsen, | Best regards, |
| Trond Endrestøl, | Trond Endrestøl, |
| IT-ansvarlig, | System administrator, |
| Fagskolen Innlandet, | Gjøvik Technical College, Norway, |
| tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, |
| sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. |
+-------------------------------+------------------------------------+
More information about the freebsd-questions
mailing list