[sudo-users] How userA can run userB's script
Erwin Hom
erwin_hom at filemaker.com
Tue May 5 15:03:25 EDT 2009
Hi Todd,
What should we put in the sudoers file so that userA can run programs
or scripts with
other users' permission if userA has their password?
Thanks,
- Erwin
On May 5, 2009, at 6:29 AM, Todd C. Miller wrote:
> In message <80C1CE2B-7D1E-4059-82ED-4C1D96E912A8 at filemaker.com>
> so spake (erwin_hom):
>
>> 5. Logged in as usera and attempted to execute shell script as userb
>> with the following
>> commandLine: "sudo -u userb userbscript.sh"
>>
>> I entered userb's password when prompted.
>>
>> This is the message that sudo displayed:
>>
>> "usera is not in the sudoers file. This incident will be reported."
>>
>> What did I do wrong? Did I miss a step along the way?
>
> Sounds like you didn't give usera permission to run the script in
> the sudoers file.
>
> - todd
More information about the sudo-users
mailing list