Results 1 to 5 of 5

Thread: Can't chdir to ...

  1. #1
    Join Date
    Jul 2012
    Beans
    3

    Can't chdir to ...

    So I was trying to install ttdnsd (www.mulliner.org/collin/ttdnsd.php) from the source file since it has not been packaged and I run into a problem. I've compiled the program and when I try and run via the terminal...

    (I've basically just installed this a day or two ago and I'm realising the steep learning curve)

    [
    root@ubuntu:/home/username# '/usr/local/src/ttdnsd'
    can't open ttdnsd.conf
    can't open resolvers file ttdnsd.conf, try again after chroot
    root@ubuntu:/home/username# can't chdir to /var/run/ttdnsd,
    ]

    If I am executing as root, why cant I change directory to /var/run/ttdnsd ?

    I have no idea where to go after this, I'm running Ubuntu (The latest one) via VmWare so I guess I could afford to mess about a bit but I don't want to damage anything internally.

    Any help and suggestions would be gladly appreciated!
    Last edited by mrhazzy; July 27th, 2012 at 01:56 AM.

  2. #2
    Join Date
    Jun 2007
    Location
    Waikikamukau, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't chdir to ...

    As an aside, "root" is usually disabled in Ubuntu. Have a look here: https://help.ubuntu.com/community/RootSudo
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  3. #3
    Join Date
    Jul 2012
    Beans
    3

    Re: Can't chdir to ...

    Yeah I had to enable it to compile the source code. I was getting close to nowhere without it.

    Any suggestions? Please let me know if you need more information

  4. #4
    Join Date
    Jul 2012
    Beans
    3

    Re: Can't chdir to ...

    Anyone?

  5. #5
    Join Date
    Apr 2012
    Beans
    5,821

    Re: Can't chdir to ...

    If I am executing as root, why cant I change directory to /var/run/ttdnsd ?
    Does /var/run/ttdnsd actually exist? it may not be a permissions problem at all...

    I have no idea what you are trying to do - your post is confusing (are you running those commands interactively? or is it some kind of script?) but my guess would be

    (1) /usr/local/src/ttdnsd can't find the conf file

    (2) because of (1) the service / daemon doesn't start

    (3) because of (2) there is no /var/run/ttdnsd

    (4) the script is not recovering well from the errors
    Last edited by steeldriver; July 27th, 2012 at 04:04 PM.

Tags for this Thread

Bookmarks

Posting Permissions

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