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

Erwin Hom erwin_hom at filemaker.com
Mon Apr 27 21:18:36 EDT 2009


I have userA and userB on the system. There is a process running with  
userA's ID and I would like the process to run a script owned by userB  
with userB's password.
What do I need to add to /etc/sudoers to do this?

There is a setting in sudoers which lets you use the target user's  
password, i.e.

Defaults targetpw

But it seems to be a default behavioral change of 'sudo' that affects  
every users, not just userA, right?

Thanks in advance,

- E r w i n

More information about the sudo-users mailing list