[sudo-users] using localhost in sudoers
petr.uzel at suse.cz
Wed Jul 21 08:58:22 EDT 2010
How does "localhost" as Host_Alias in /etc/sudoers work?
E.g. gentoo sudo(ers) guide  states that the rule
swift localhost = /usr/bin/emerge
allows running emerge only if the user swift is logged in locally, i.e. not
through SSH. I don't think this is correct. AFAIU, the Host_Alias can not be
used to differentiate between users logged in locally and through ssh, but only
to restrict the rule to apply on machines where 'hostname'=='Host_Alias'
(useful if sudoers file is shared across several machines).
So, how is it?
I presume I'm not the first one to ask this question, but I wasn't able
to find any authoritative answer.
Thanks in advance,
IRC: ptr_uzl @ freenode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: not available
More information about the sudo-users