PDA

View Full Version : dhcpd.conf in another location?



activeco
11-23-2003, 11:58 PM
I want to continue using CD version of Knoppix, but would like to permanently edit dhcpd.conf file and to store it onto HD linux partition.
Is there any way to force system to look into new location?
Thanks in advance.

viT0k0
12-09-2003, 08:58 PM
you did a dhcp server?

i try that but i have problems with the permissions when i try to edit the dhcpd.conf.

how do you did that?

activeco
12-10-2003, 12:38 AM
You probably have to switch to root.
Well I am surely not a Linux expert, but what I do is issuing "su" command (without any options) before editing dhcpd.conf, which gives me the root access.
I have stored dhcpd.conf into HD linux partition and called everything with a small script I made and put in the same partition.
The script initialize my network card ("ifconfig" specifying IP, etc) and calls dhcpd3 (thus NOT dhcpd!) command with "-cf" option, which specify the new location of dhcpd.conf file.

Don't forget to unlock write permission on your Linux HD mount. Right mouse click (over the partition) gives you that possibility.
Success.

viT0k0
12-11-2003, 12:19 PM
run as root is not enought to change some files

activeco
12-11-2003, 05:16 PM
As far as I know, you can do anything you want as the root.
However, maybe there are some other reasons you can't change some files.
Keep in mind that switching to root is valid only to current terminal window, by doing "su" you can't do things around thinking you are the root. Only if you log in as root gives you the right to do everything everywhere (see link below, how to do that).
Also, some files were set up with r(ead), w(rite), x(ecutable) permissions off for security reasons. Use chmod command if you need to.
Of course, if you are running knoppix from CD only, you can't write anything on it. As soon as you turn PC off, all of you changes are lost.

Search this forum for similar problems you have, I think you can find most answers.
Here are some topics you may be interested in:

http://www.knoppix.net/forum/viewtopic.php?t=5447#24936
http://www.knoppix.net/forum/viewtopic.php?t=4049#21825

/KNOPPIX/* (ram) problems:
http://www.knoppix.net/forum/viewtopic.php?t=5499#25198

etc