Host_Alias questions
Chip Place
cplace at fatadmin.net
Thu Aug 22 11:13:58 EDT 2002
Todd,
Thanks for the quick reply and the help. I would normally experiment on my own but I was afraid of locking myself off of the systems I was working on. I used all of what you taught me and it all works as advertised.
Thanks a million...
chris
On Wed, Aug 21, 2002 at 12:54:47AM -0600, Todd C. Miller wrote:
> In message <20020819155044.B22300 at mail.fatadmin.net>
> so spake root (root):
>
> > I have a few quick questions regarding Host_Alias.
> >
> > 1. Is there a way to specify Host_Alias -1 host (for example, all hosts exce
> > pt hostX)? In this example, the user could use sudo on all hosts except host
> > X.
>
> You can do, e.g.
>
> UserX Hosts1, !server = ALL
>
> to allow "UserX" to run any command on the hosts in "Hosts1" except
> for the machine "server".
>
> > 2. Can you add more than one Host_Alias to a User Specification? Lets say I
> > have yo Host_Alias definitions:
> >
> > Host_Alias Hosts1=hostA,hostB,hostC
> > Host_Alias Hosts2=hostD,hostE,hostF
> >
> > Could I set up UserX with this definition:
> >
> > UserX Hosts1=ALL Hosts2=ALL
> >
> > If I can, amd I using the corrct syntax?
>
> Sure, you just separate the entries with a colon (':'), e.g.
>
> UserX Hosts1=ALL : Hosts2=ALL
>
> > 3. Can a Host_Alias definition overlap with another?
> >
> > Example:
> >
> > Host_Alias Hosts1=hostA,hostB,hostC
> > Host_Alias Hosts2=hostB,hostD,hostE,hostF
>
> Yes, that's fine.
>
> - todd
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
More information about the sudo-users
mailing list