Results 1 to 5 of 5

Thread: dhcpd.conf in another location?

  1. #1
    Junior Member registered user
    Join Date
    Nov 2003
    Posts
    14

    dhcpd.conf in another location?

    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.

  2. #2
    Junior Member
    Join Date
    Dec 2003
    Posts
    5
    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?

  3. #3
    Junior Member registered user
    Join Date
    Nov 2003
    Posts
    14
    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.

  4. #4
    Junior Member
    Join Date
    Dec 2003
    Posts
    5
    run as root is not enought to change some files

  5. #5
    Junior Member registered user
    Join Date
    Nov 2003
    Posts
    14
    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

Similar Threads

  1. can dhcpd & files be copied to another distro.?
    By sunburnt in forum Networking
    Replies: 0
    Last Post: 05-26-2005, 08:36 AM
  2. OpenOffice settings location
    By sgtdawg in forum Customising & Remastering
    Replies: 2
    Last Post: 11-02-2004, 06:42 AM
  3. boot.img location?
    By dkennedy in forum Customising & Remastering
    Replies: 4
    Last Post: 10-28-2004, 02:43 PM
  4. Location of configuration files
    By prawira in forum Customising & Remastering
    Replies: 2
    Last Post: 10-28-2003, 09:40 AM
  5. Location of .profile .bshrc ????????
    By marcdevon in forum General Support
    Replies: 2
    Last Post: 03-17-2003, 10:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


TP-Link 5-Port Gigabit Unmanaged Ethernet Switch Network Expansion TL-SG105 picture

TP-Link 5-Port Gigabit Unmanaged Ethernet Switch Network Expansion TL-SG105

$19.95



5Ports Gigabit Network Switch w/ 4 PoE+ Ports Total 52W each port 30W Plug&Play picture

5Ports Gigabit Network Switch w/ 4 PoE+ Ports Total 52W each port 30W Plug&Play

$31.99



Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch picture

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch

$46.99



NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch picture

NETGEAR GS308EP Essential Series 8-Port Gigabit PoE+ Unmanaged Switch

$49.99



TP-LINK TL-SG108 8-Port Gigabit Unmanaged Desktop Switch RJ-45 New in Box picture

TP-LINK TL-SG108 8-Port Gigabit Unmanaged Desktop Switch RJ-45 New in Box

$23.99



Netgear PROSAFE 8-Port 10 Gigabit/Multi-Gigabit Ethernet Switch XS508M picture

Netgear PROSAFE 8-Port 10 Gigabit/Multi-Gigabit Ethernet Switch XS508M

$229.99



Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts picture

Arista DCS-7010T-48-R 48P 1GbE 4P 10GbE SFP+ RA Switch with rack mounts

$69.00



Linksys 8-Port Managed Gigabit PoE+ Switch 110W w/ 2 Uplink Gigabit - LGS310MPC picture

Linksys 8-Port Managed Gigabit PoE+ Switch 110W w/ 2 Uplink Gigabit - LGS310MPC

$49.05



NETGEAR 5-Port Gigabit Ethernet Unmanaged Switch (Gs305) - Desktop Quiet Fanless picture

NETGEAR 5-Port Gigabit Ethernet Unmanaged Switch (Gs305) - Desktop Quiet Fanless

$22.00



10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W picture

10-Port Gigabit PoE Network Switch with 8 PoE+ Ports with 2 Combo SFP Slots 125W

$39.99