Re: localhost in sudoers

2008-01-20 Thread Chris Whitehouse
Matthew Seaman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris Whitehouse wrote: I'm not sure what you mean. This computer is on a local network behind a nat box and doesn't have a dns entry. %host 192.168.1.71 71.1.168.192.in-addr.arpa domain name pointer eco.config. %host

Re: localhost in sudoers

2008-01-20 Thread Chris Whitehouse
Ashish Shukla आशीष शुक्ल wrote: On Sat, 19 Jan 2008 23:40:35 +, Chris Whitehouse [EMAIL PROTECTED] said: Chris I think my question really is why doesn't sudoers recognise localhost Chris or 127.0.0.1? And, BtW, while enumerating network interfaces, it skips those interfaces

Re: localhost in sudoers

2008-01-19 Thread Ashish Shukla आशीष शुक्ल
Chris Whitehouse writes: Chris The problem is this machine gets its ip address by dhcp so I shouldn't Chris enter an ip in sudoers. Is there a neat way round this? Why not use hostname from DNS, instead, hmm...? HTH -- Ashish Shukla आशीष शुक्ल

Re: localhost in sudoers

2008-01-19 Thread Chris Whitehouse
Ashish Shukla आशीष शुक्ल wrote: Chris Whitehouse writes: Chris The problem is this machine gets its ip address by dhcp so I shouldn't Chris enter an ip in sudoers. Is there a neat way round this? Why not use hostname from DNS, instead, hmm...? HTH I'm not sure what you mean. This

Re: localhost in sudoers

2008-01-19 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris Whitehouse wrote: I'm not sure what you mean. This computer is on a local network behind a nat box and doesn't have a dns entry. %host 192.168.1.71 71.1.168.192.in-addr.arpa domain name pointer eco.config. %host localhost localhost

Re: localhost in sudoers

2008-01-19 Thread Ashish Shukla आशीष शुक्ल
On Sat, 19 Jan 2008 23:40:35 +, Chris Whitehouse [EMAIL PROTECTED] said: Chris I think my question really is why doesn't sudoers recognise localhost Chris or 127.0.0.1? Quoting from sudo.c of sudo-1.6.8p12 in init_vars(int) routine: 88 /* * We avoid

Re: localhost in sudoers

2008-01-19 Thread Ashish Shukla आशीष शुक्ल
On Sat, 19 Jan 2008 23:40:35 +, Chris Whitehouse [EMAIL PROTECTED] said: Chris I think my question really is why doesn't sudoers recognise localhost Chris or 127.0.0.1? And, BtW, while enumerating network interfaces, it skips those interfaces which're DOWN or LOOPBACK. If you've