#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    8
    Rep Power
    0

    Dhcpd can't create dhcpd.pid Ubuntu 11.04 (natty)


    I've found a lot of pages of how to fix the issue on older releases of dhcpd and ubuntu.

    #>dhcpd
    #> ...
    #> Can't create PID file /var/run/dhcpd.pid: Permission denied.

    I have tried creating the file and giving it permissions to be accessed, but that isn't solving the issue. I tried to go through some of the older fixes, and one was really close to working but lacked the same folders as I have.

    Ideas?
    Thanks in advance

    EDIT: one solution that worked was to use
    ln -s /var/run/dhcp3-server/dhcpd.pid /var/run/dhcpd.pid
    dhcpd3 -cf /etc/dhcp3/dhcpd.conf at0
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    8
    Rep Power
    0
    As bad as it is, I ended up giving all out permission to the file i.e.
    touch /var/run/dhcpd.pid
    chmod 777 /var/run/dhcpd.pid

    and got it to start.

IMN logo majestic logo threadwatch logo seochat tools logo