[sudo-users] How userA can run userB's script
Russell Van Tassell
russell+sudo-users at loosenut.com
Tue May 5 15:38:09 EDT 2009
On Tue, May 05, 2009 at 12:03:25PM -0700, Erwin Hom wrote:
> 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?
> - Erwin
The purpose of sudo is, largely, to make it such that users DON'T share
passwords. So, the entry for userA to run a particular script as userB
using THEIR OWN password would be something such as:
userA HOSTLIST = (userB) /PATH/TO/COMMAND
Then on a machine in HOSTLIST (possibly ALL), userA would be able to do
something such as:
sudo -u userB /PATH/TO/COMMAND
...and the password they'd use (by default) would be their own.
Russell M. Van Tassell
russell at loosenut.com
Incompetence: When you earnestly believe you can compensate for a lack
of skill by doublign your efforts, there's no end to what you can't do.
More information about the sudo-users