Close

Results 1 to 9 of 9
  1. #1
    DF Jedi tronads's Avatar
    Join Date
    Aug 2008
    Location
    Blackpool
    Posts
    2,473
    Thanks
    73
    Thanked:        235
    Karma Level
    292

    Help UNIX help required...

    Can anyone help me with this.
    I am working on a Kodibuntu box, but I do not have root access. I do however have superuser access with the built in kodi account.

    What I am needing to do is modify the dns settings in the /etc/resolv.conf file.

    So, I am logging in as the kodi user, then I am typing sudo su, or sudo -i and getting root level access.
    I am then modifying the /etc/resolv.conf file by using vi, and saving the file.

    I can then look in Kodi and view the network settings, and can see that they have changed. Also the plugin I needed to change the settings for is working.

    Unfortunately, the problem I have is that when I reboot the machine, the /etcresolv.conf file reverts back to its original format, minus the changes I have made. How is it doing this ?????

    If I type ls -ltr /etc/resolv.conf after I have made the changes, but before a reboot, I see the following :
    lrwxrwxrwx 1 root root 29 Dec 26 13:06 resolv.conf -> ../run/resolvconf/resolv.conf

    I have tried chmod'ing the file to 555 to prevent write access, but it makes no difference.

    Anyone know whats going on, and how I can stop it ?

  2. #2
    DF Super Moderator BertRoot's Avatar
    Join Date
    Sep 2004
    Location
    Poppy Fields
    Posts
    23,881
    Thanks
    1,003
    Thanked:        2,010
    Karma Level
    2647

    Default Re: UNIX help required...

    You had a look at this mate?

    [Only registered and activated users can see links. ]


  3. #3
    DF Jedi tronads's Avatar
    Join Date
    Aug 2008
    Location
    Blackpool
    Posts
    2,473
    Thanks
    73
    Thanked:        235
    Karma Level
    292

    Default Re: UNIX help required...

    Yes, looks like this is the cause. I have done some edits, and will restart the machine after the Liverpool match to see if its worked :-)

  4. #4
    DF Super Moderator BertRoot's Avatar
    Join Date
    Sep 2004
    Location
    Poppy Fields
    Posts
    23,881
    Thanks
    1,003
    Thanked:        2,010
    Karma Level
    2647

    Default Re: UNIX help required...

    Good luck sailor.


  5. #5
    DF Jedi tronads's Avatar
    Join Date
    Aug 2008
    Location
    Blackpool
    Posts
    2,473
    Thanks
    73
    Thanked:        235
    Karma Level
    292

    Default Re: UNIX help required...

    Made changes to both prepend and supersede in /etc/dhcp/dhclient.conf and also added in 2 nameservers in /etc/resolvconf/resolv.conf.d/base .
    Rebooted machine, and back to the same 127.0.0.1 value.

    FFS

  6. #6
    DF Super Moderator BertRoot's Avatar
    Join Date
    Sep 2004
    Location
    Poppy Fields
    Posts
    23,881
    Thanks
    1,003
    Thanked:        2,010
    Karma Level
    2647

    Default Re: UNIX help required...

    [Only registered and activated users can see links. ] this any use?


  7. #7
    DF Jedi tronads's Avatar
    Join Date
    Aug 2008
    Location
    Blackpool
    Posts
    2,473
    Thanks
    73
    Thanked:        235
    Karma Level
    292

    Default Re: UNIX help required...

    Thats pretty much what I have been trying. Apparantly major changes to this resolvconf package have been made since 12.03 and I am not alone with this problem.
    After nearly 2 hours on it, I am thoroughly pissed off.

  8. #8
    DF Super Moderator BertRoot's Avatar
    Join Date
    Sep 2004
    Location
    Poppy Fields
    Posts
    23,881
    Thanks
    1,003
    Thanked:        2,010
    Karma Level
    2647

    Default Re: UNIX help required...

    What a pain in the ass.


  9. #9
    DF Jedi blacksheep's Avatar
    Join Date
    Jun 2006
    Location
    Manchester
    Posts
    3,877
    Thanks
    87
    Thanked:        265
    Karma Level
    484

    Default Re: UNIX help required...

    Create another resolv.conf file somewhere, have a startup script that runs after the wiping/changing linking/copying to the one you want and refresh network settings. Not the ideal solution but should work.

Similar Threads

  1. Unix OS
    By tronads in forum Programming
    Replies: 4
    Last Post: 13th October 2014, 06:55 PM
  2. [HELP] Hp unix box help
    By doughboy in forum PC Hardware
    Replies: 4
    Last Post: 9th October 2011, 03:13 AM
  3. SCO does not own Unix!
    By BertRoot in forum PC Software
    Replies: 0
    Last Post: 13th August 2007, 11:39 AM
  4. SCO does not own Unix!
    By BertRoot in forum The Dog and Duck
    Replies: 0
    Last Post: 13th August 2007, 11:39 AM
  5. Unix help urgent help please!
    By eblaster101 in forum Website Coding & Graphics
    Replies: 7
    Last Post: 30th March 2005, 08:50 PM

Social Networking 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
  •