[sudo-users] special sudo definition assistance
daggs at gmx.com
daggs at gmx.com
Wed Aug 22 01:05:29 EDT 2012
Hello Todd,
interesting, if I understand correctly, Runas_Spec's format is <user>:<group>, right?
how about this cmd: sudo -u ${USER} -g ateam_boss /home/ateam_repo/executor , will it work with the above line? I need to run it as the user which called the sudo due to SDL limitations.
Thanks!
> ----- Original Message -----
> From: Todd C. Miller
> Sent: 08/21/12 11:55 PM
> To: Dagg Stompler
> Subject: Re: [sudo-users] special sudo definition assistance
>
> If what you want is to run /home/ateam_repo/executor as group
> ateam_boss without changing the user, try this:
>
> %ateam ALL =(:ateam_boss) NOPASSWD: /home/ateam_repo/executor
>
> The Runas_Spec is user(s):group(s) and if the user is not specified
> only the group is changed. You would run it as:
>
> $ sudo -g ateam_boss /home/ateam_repo/executor
>
> - todd
>
More information about the sudo-users
mailing list