[PLUG] sudo wildcard for users
Robert Anderson
riznob at gmail.com
Thu Mar 15 22:03:01 UTC 2007
On 3/15/07, Aaron Burt <aaron at bavariati.org> wrote:
>
> On Thu, Mar 15, 2007 at 10:47:07AM -0700, Robert Anderson wrote:
> > PLUG people, I have a few systems that contains a number of test
> > environments. Each environmet runs as a different user, say testblue,
> > testred, testgreen, etc. These user accounts come and go with some
> > frequency. I would like to setup sudo to allow certain users to run any
> > command, with no password, as any of the test* users. Here is what I
> have...
> >
> >
> > Host_Alias TEST_SERVERS = server1,server2,server3
> >
> > User_Alias SUPPORT_USERS = %support
> >
> > SUPPORT_USERS TEST_SERVERS = (test*,apache,tomcat) NOPASSWD: ALL
> > This does not seem to be working as I expect. Can anyone help?
>
> You could try using .* instead of * but I think sudoers doesn't support
> wildcards or regexes in usernames. Can you simply add the test users to
> a group that has the correct permissions?
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
We could add all the users explicitely, but the accounts come and go, so it
would be best to configure it once with a wildcard than to maintain it as
the accounts change.
--
Rob Anderson
riznob at gmail.com
More information about the PLUG
mailing list