[sudo-users] "user is not allowed to run sudo on localhost."

Bob Proulx bob at proulx.com
Mon Feb 7 16:44:12 EST 2005

Philippe Froidevaux wrote:
> it works only with :
> user1 localhost = ALL
> [...]
> I seems that 'sudo' identify the local host only as
> 'localhost', and not with its real-life hostname.

What is the hostname of these hosts?


> The real hostname is given in both /etc/hostname and in /etc/hosts.

If /etc/hostname is correct then at boot time /etc/init.d/hostname.sh
will run 'hostname --file /etc/hostname' to set the hostname from it.
But if you have changed it and not yet rebooted then it might not be
in sync with the current contents of the files.


More information about the sudo-users mailing list