stop updating resolv.conf on DHCP

Karl Auer kauer at biplane.com.au
Fri Jul 13 11:34:56 UTC 2012


On Fri, 2012-07-13 at 07:06 -0400, Gene Heskett wrote:
> I had that sort of a problem once, but took the brute force approach to 
> solving it.  Once I had resolv.conf to my liking, I did a "chmod +i 
> resolv.conf" as root.  My laptops dhcp client didn't complain because it 
> couldn't write to resolv.conf.  But that also means I keep a backup copy 
> because when I take the lappy someplace else, it does need to be writable.

Are you sure? My version of chmod (Ubuntu Maverick) doesn't understand
"+i".

   kauer at karl:~$ touch blah.txt
   kauer at karl:~$ ls -la blah*
   -rw-r--r-- 1 kauer kauer 0 2012-07-13 21:31 blah.txt
   kauer at karl:~$ chmod +i blah.txt
   chmod: invalid mode: `+i'
   Try `chmod --help' for more information.
   kauer at karl:~$ sudo chmod +i blah.txt
   [sudo] password for kauer: 
   chmod: invalid mode: `+i'
   Try `chmod --help' for more information.
   kauer at karl:~$ sudo bash
   root at karl:~# chmod +i blah.txt
   chmod: invalid mode: `+i'
   Try `chmod --help' for more information.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: AE1D 4868 6420 AD9A A698 5251 1699 7B78 4EEE 6017
Old fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687





More information about the ubuntu-users mailing list