Re: NetReg: Host entry not added in dhcpd.conf

New Message Reply Date view Thread view Subject view Author view Attachment view

From: Jennifer Mehl (mehl@wi.mit.edu)
Date: Thu Jan 02 2003 - 10:02:55 CST


Thank you all for your sound (and prompt) advice on file permissions.
Creating the webuser user and group and changing ownership and
permissions on the files listed below, then restarting Apache, did the
trick. The host information is now being written properly to
dhcpd.conf.

Thanks again-- I''m sure I'll be writing back with more questions later!

Happy New Year,
Jennifer

On Tuesday, December 31, 2002, at 11:14 PM, Patrick Jaques wrote:

> Jennifer,
>
> It sounds like Apache doesn't have rights to modify dhcpd.conf.new.
>
> 1. Make sure you create a user/group for Apache. Create user & group
> called webuser with no logon abilities.
> 2. Edit Apache's httpd.conf file and change the following lines:
> From:
> User nobody
> Group nobody
> To:
> User webuser
> Group webuser
> 3. Change the owner and group of /usr/local/apache to:
> chown -R root:webuser
>
> 4. Change the ownership and access rights to directory and files in
> /etc/dhcpd
> chown -R root:webuser /etc/dhcpd
> chmod 664 /etc/dhcpd/*
>
> The above changes will run Apache as webuser and allow Apache to modify
> dhcpd.conf.new because webuser has read/write group access. This should
> take care of your problem. If it doesn't verify that the cron process
> for refresh-dhcpd is running every minute. Good luck!
>
> -- Patrick
>
> -----Original Message-----
>
>> Hi All,
>>
>> I'm just getting started with ISC DHCP and NetReg, and I've almost got
>
>> everything working (*phew*).
>>
>> I've got NetReg set up to authenticate to our LDAP server (Netscape
>> Dir Server 4.15). The authentication seems to be working properly--
>> if I put in a bogus password I get an error message back.
>>
>> However, if I enter my correct password, it appears to register my MAC
>
>> address and then tells me to restart my machine. After a restart, I
>> still have the same temporary lease I had before. Upon researching
>> the dhcpd.conf and dhcpd.conf.new file I noticed that there is no host
>
>> entry with my LDAP uid and MAC address as expected. The files have
>> not been modified at all by the script.
>>
>> Does anyone have any advice on where I can look for the cause of this
>> problem?
>>
>> thanks, and Happy New Year!
>> Jennifer
>>
>> ---
>> Jennifer Mehl
>> Network Engineer, IT - Network Services
>> Whitehead Institute for Biomedical Research (MIT)
>> 5 Cambridge Center
>> Cambridge MA 02142
>>
>> 617.258.8930 voice
>> 617.258.5121 fax
>>
>> mehl@wi.mit.edu
>>
>> **********************************************************************
>> To unsubscribe from this list, send an e-mail message to
>> majordomo@southwestern.edu containing a single line with the words:
>> unsubscribe netreg Send requests for assistance to:
>> owner-netreg@southwestern.edu
>> **********************************************************************
>
> **********************************************************************
> To unsubscribe from this list, send an e-mail message to
> majordomo@southwestern.edu containing a single line with the words:
> unsubscribe netreg
> Send requests for assistance to: owner-netreg@southwestern.edu
> **********************************************************************
>
>

**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************


New Message Reply Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:38 CDT