[sudo-users] How userA can run userB's script

Todd C. Miller Todd.Miller at courtesan.com
Tue May 5 09:29:49 EDT 2009


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