LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2005, 03:35 AM   #1
afterburner
LQ Newbie
 
Registered: Jan 2005
Location: Boksburg South Africa
Distribution: Redhat 9,8 Mandrake 10.0, Fedora Core 3, Ubuntu Linux (Warty Warthog)
Posts: 4

Rep: Reputation: 0
dhcp doesn't want to start


Hey all

I'm trying to add some extra boot (dhcp) servers to a diskless network.

We already have two machines that do the booting and root filesystems.

What happens is that the machines in the lab don't have hard drives and when turned on they shout out for dhcp and one of the boot servers reply sending the kernel to the machine assigns it a ip etc...

Standard etherboot setup.

Now I'm trying to add an extra 2 machines to speed up the boot up process. On the other boot servers we have redhat 8 and redhat 9 running in runlevel 3. These machines are fine everything works. The new machine has a Serial ATA hard drive so I had to install Fedora Core 3 on it. Now the problem is that I'm trying to get dhcp running on the machine. I've copied the dhcp.conf file from the redhat 8 machine and edited to contain only a few entries those that corresponds to a single row of machines that I'm testing the server on. Now the problem is that dhcpd wont start.

Here's the output

[root@boot2 ~]# service dhcpd restart
audit(1106900855.566:0): avc: denied { read } for pid=4221 exe=/usr/sbin/dhcp
d name=dhcpd.conf dev=sda1 ino=9257146 scontext=root:system_r:dhcpd_t tcontext=u
ser_ubject_r:user_home_t tclass=file

And if I check /var/log/messages i see:
Jan 28 10:27:04 boot2 dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Jan 28 10:27:04 boot2 dhcpd: Copyright 2004 Internet Systems Consortium.
Jan 28 10:27:04 boot2 dhcpd: All rights reserved.
Jan 28 10:27:04 boot2 dhcpd: For info, please visit ...
Jan 28 10:27:04 boot2 kernel: audit(1106900824.924:0): avc: denied { read } fo
r pid=4213 exe=/usr/sbin/dhcpd name=dhcpd.conf dev=sda1 ino=9257146 scontext=ro
ot:system_r:dhcpd_t tcontext=user_ubject_r:user_home_t tclass=file
Jan 28 10:27:04 boot2 dhcpd: Can't open /etc/dhcpd.conf: Permission denied
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: If you did not get this software from ...,
please
Jan 28 10:27:04 boot2 dhcpd: get the latest from ... and install that be
fore
Jan 28 10:27:04 boot2 dhcpd: requesting help.
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: If you did get this software from ftp.isc.org and h
ave not
Jan 28 10:27:04 boot2 dhcpd: yet read the README, please read it before requesti
ng help.
Jan 28 10:27:04 boot2 dhcpd: If you intend to request help from the dhcp-server@
isc.org
Jan 28 10:27:04 boot2 dhcpd: mailing list, please read the section on the README
about
Jan 28 10:27:04 boot2 dhcpd: submitting bug reports and requests for help.
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: Please do not under any circumstances send requests
for
Jan 28 10:27:04 boot2 dhcpd: help directly to the authors of this software - ple
ase
Jan 28 10:27:04 boot2 dhcpd: send them to the appropriate mailing list as descri
bed in
Jan 28 10:27:04 boot2 dhcpd: the README file.
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: exiting.
Jan 28 10:27:35 boot2 dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Jan 28 10:27:35 boot2 dhcpd: Copyright 2004 Internet Systems Consortium.
Jan 28 10:27:35 boot2 dhcpd: All rights reserved.
Jan 28 10:27:35 boot2 dhcpd: For info, please visit
Jan 28 10:27:35 boot2 dhcpd: Can't open /etc/dhcpd.conf: Permission denied
Jan 28 10:27:35 boot2 kernel: audit(1106900855.566:0): avc: denied { read } fo
r pid=4221 exe=/usr/sbin/dhcpd name=dhcpd.conf dev=sda1 ino=9257146 scontext=ro
ot:system_r:dhcpd_t tcontext=user_ubject_r:user_home_t tclass=file
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: If you did not get this software from ftp.isc.org,
please
Jan 28 10:27:35 boot2 dhcpd: get the latest from ftp.isc.org and install that be
fore
Jan 28 10:27:35 boot2 dhcpd: requesting help.
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: If you did get this software from ftp.isc.org and h
ave not
Jan 28 10:27:35 boot2 dhcpd: yet read the README, please read it before requesti
ng help.
Jan 28 10:27:35 boot2 dhcpd: If you intend to request help from the dhcp-server@
isc.org
Jan 28 10:27:35 boot2 dhcpd: mailing list, please read the section on the README
about
Jan 28 10:27:35 boot2 dhcpd: submitting bug reports and requests for help.
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: Please do not under any circumstances send requests
for
Jan 28 10:27:35 boot2 dhcpd: help directly to the authors of this software - ple
ase
Jan 28 10:27:35 boot2 dhcpd: send them to the appropriate mailing list as descri
bed in
Jan 28 10:27:35 boot2 dhcpd: the README file.
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: exiting.



There is one line that says

Jan 28 10:27:04 boot2 dhcpd: Can't open /etc/dhcpd.conf: Permission denied

Which is ridiculous since the file is owned by root and has the folowing permissions
-rwxr-xr-x 1 root root 3129 Jan 27 16:10 /etc/dhcpd.conf

so why can't the service run?

Is there some security setting in Fedora that is maybe active or something?

Anyone have any ideas?

Thanks



Don't worry about this anymore. I've solved it. It turns out that Fedora blocks the dhcpd daemon. You can fix this by going to the security settings menu in the x-session, clicking on the selinux tab and there is a list of daemons that is must not block. Tick the box for dhcp, and httpd cos it also blocks that one, and restart.

DHCP now works. ... <sigh>

Last edited by afterburner; 01-28-2005 at 06:06 AM.
 
Old 01-28-2005, 06:40 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Darn, I was going to answer it too. Read the whole question just to get to the bottom and find out it has already been solved.
 
Old 01-28-2005, 07:51 AM   #3
afterburner
LQ Newbie
 
Registered: Jan 2005
Location: Boksburg South Africa
Distribution: Redhat 9,8 Mandrake 10.0, Fedora Core 3, Ubuntu Linux (Warty Warthog)
Posts: 4

Original Poster
Rep: Reputation: 0
yeah but it's so frustrating, but at least now if someone runs into the same problem at least they'll have this as a reference.

Thanks anyway
 
Old 03-29-2005, 05:31 PM   #4
xofrepus
LQ Newbie
 
Registered: Mar 2005
Location: Utah
Posts: 2

Rep: Reputation: 0
Now how about doing that from the command line? (no gui...)
 
Old 03-29-2005, 11:57 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
To restart dhcp from the command line
Code:
dhcpd -r eth0
Substitute the appropriate network interface if you are using something other than eth0. Note that the command may seem to hang when you run it; if so just Ctl-c to escape. Then run
Code:
ifconfig
and you should see an IP address associated to eth0. If so, you're set, if not post back. -- J.W.

Welcome to LQ!
 
Old 03-30-2005, 12:41 PM   #6
xofrepus
LQ Newbie
 
Registered: Mar 2005
Location: Utah
Posts: 2

Rep: Reputation: 0
wasn't asking how to restart DHCP... was wondering how to get DHCPD so it is not blocked by SELinux in RedHat Enterprise 4/Fedroa Core 3 from the command line.
 
Old 11-26-2005, 03:23 PM   #7
Jacek Pliszka
LQ Newbie
 
Registered: Nov 2005
Location: Warsaw, Poland
Posts: 1

Rep: Reputation: 0
/usr/sbin/setsebool -P dhcpd_disable_trans 1
 
Old 02-26-2008, 04:55 AM   #8
sumugan
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Smile dhcpd start on entp linux

It worked ..thanks a lot


Quote:
Originally Posted by afterburner View Post
Hey all

I'm trying to add some extra boot (dhcp) servers to a diskless network.

We already have two machines that do the booting and root filesystems.

What happens is that the machines in the lab don't have hard drives and when turned on they shout out for dhcp and one of the boot servers reply sending the kernel to the machine assigns it a ip etc...

Standard etherboot setup.

Now I'm trying to add an extra 2 machines to speed up the boot up process. On the other boot servers we have redhat 8 and redhat 9 running in runlevel 3. These machines are fine everything works. The new machine has a Serial ATA hard drive so I had to install Fedora Core 3 on it. Now the problem is that I'm trying to get dhcp running on the machine. I've copied the dhcp.conf file from the redhat 8 machine and edited to contain only a few entries those that corresponds to a single row of machines that I'm testing the server on. Now the problem is that dhcpd wont start.

Here's the output

[root@boot2 ~]# service dhcpd restart
audit(1106900855.566:0): avc: denied { read } for pid=4221 exe=/usr/sbin/dhcp
d name=dhcpd.conf dev=sda1 ino=9257146 scontext=root:system_r:dhcpd_t tcontext=u
ser_ubject_r:user_home_t tclass=file

And if I check /var/log/messages i see:
Jan 28 10:27:04 boot2 dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Jan 28 10:27:04 boot2 dhcpd: Copyright 2004 Internet Systems Consortium.
Jan 28 10:27:04 boot2 dhcpd: All rights reserved.
Jan 28 10:27:04 boot2 dhcpd: For info, please visit ...
Jan 28 10:27:04 boot2 kernel: audit(1106900824.924:0): avc: denied { read } fo
r pid=4213 exe=/usr/sbin/dhcpd name=dhcpd.conf dev=sda1 ino=9257146 scontext=ro
ot:system_r:dhcpd_t tcontext=user_ubject_r:user_home_t tclass=file
Jan 28 10:27:04 boot2 dhcpd: Can't open /etc/dhcpd.conf: Permission denied
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: If you did not get this software from ...,
please
Jan 28 10:27:04 boot2 dhcpd: get the latest from ... and install that be
fore
Jan 28 10:27:04 boot2 dhcpd: requesting help.
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: If you did get this software from ftp.isc.org and h
ave not
Jan 28 10:27:04 boot2 dhcpd: yet read the README, please read it before requesti
ng help.
Jan 28 10:27:04 boot2 dhcpd: If you intend to request help from the dhcp-server@
isc.org
Jan 28 10:27:04 boot2 dhcpd: mailing list, please read the section on the README
about
Jan 28 10:27:04 boot2 dhcpd: submitting bug reports and requests for help.
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: Please do not under any circumstances send requests
for
Jan 28 10:27:04 boot2 dhcpd: help directly to the authors of this software - ple
ase
Jan 28 10:27:04 boot2 dhcpd: send them to the appropriate mailing list as descri
bed in
Jan 28 10:27:04 boot2 dhcpd: the README file.
Jan 28 10:27:04 boot2 dhcpd:
Jan 28 10:27:04 boot2 dhcpd: exiting.
Jan 28 10:27:35 boot2 dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Jan 28 10:27:35 boot2 dhcpd: Copyright 2004 Internet Systems Consortium.
Jan 28 10:27:35 boot2 dhcpd: All rights reserved.
Jan 28 10:27:35 boot2 dhcpd: For info, please visit
Jan 28 10:27:35 boot2 dhcpd: Can't open /etc/dhcpd.conf: Permission denied
Jan 28 10:27:35 boot2 kernel: audit(1106900855.566:0): avc: denied { read } fo
r pid=4221 exe=/usr/sbin/dhcpd name=dhcpd.conf dev=sda1 ino=9257146 scontext=ro
ot:system_r:dhcpd_t tcontext=user_ubject_r:user_home_t tclass=file
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: If you did not get this software from ftp.isc.org,
please
Jan 28 10:27:35 boot2 dhcpd: get the latest from ftp.isc.org and install that be
fore
Jan 28 10:27:35 boot2 dhcpd: requesting help.
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: If you did get this software from ftp.isc.org and h
ave not
Jan 28 10:27:35 boot2 dhcpd: yet read the README, please read it before requesti
ng help.
Jan 28 10:27:35 boot2 dhcpd: If you intend to request help from the dhcp-server@
isc.org
Jan 28 10:27:35 boot2 dhcpd: mailing list, please read the section on the README
about
Jan 28 10:27:35 boot2 dhcpd: submitting bug reports and requests for help.
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: Please do not under any circumstances send requests
for
Jan 28 10:27:35 boot2 dhcpd: help directly to the authors of this software - ple
ase
Jan 28 10:27:35 boot2 dhcpd: send them to the appropriate mailing list as descri
bed in
Jan 28 10:27:35 boot2 dhcpd: the README file.
Jan 28 10:27:35 boot2 dhcpd:
Jan 28 10:27:35 boot2 dhcpd: exiting.



There is one line that says

Jan 28 10:27:04 boot2 dhcpd: Can't open /etc/dhcpd.conf: Permission denied

Which is ridiculous since the file is owned by root and has the folowing permissions
-rwxr-xr-x 1 root root 3129 Jan 27 16:10 /etc/dhcpd.conf

so why can't the service run?

Is there some security setting in Fedora that is maybe active or something?

Anyone have any ideas?

Thanks



Don't worry about this anymore. I've solved it. It turns out that Fedora blocks the dhcpd daemon. You can fix this by going to the security settings menu in the x-session, clicking on the selinux tab and there is a list of daemons that is must not block. Tick the box for dhcp, and httpd cos it also blocks that one, and restart.

DHCP now works. ... <sigh>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP don't start waelaltaqi Linux - Networking 7 11-18-2005 05:09 PM
DHCP won't start Dr. Doerke Linux - Wireless Networking 4 08-15-2005 09:57 PM
speeding up start-up by configuring dhcp ruh31 Linux - Networking 2 05-07-2005 02:43 AM
problems at start up, dhcp... the_y_man Slackware 1 03-11-2004 07:46 PM
Gnome, dhcp won't start stevenhasty Slackware 4 08-16-2003 06:07 PM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration