using sudo to excute as another user
Todd C. Miller
Todd.Miller at courtesan.com
Tue Dec 10 15:42:32 EST 2002
In message <47F5ADC94EF3C14AA51386CD1A20DDB802658E9A at usvwoaahs51>
so spake "Barkley, John" (John.Barkley):
> I am attempting to setup a non privileged user account via sudo to execute
> commands as another user. Here's the error I receive does any one have any
> ideas on what should be added to the sudoers file.
>
> Sorry, user usera is not allowed to execute '/usr/bin/mkdir /sft/test' as
> sft on hostname
Without seeing bits of the sudoers file you currently have it is
hard to say. For the example you quote, the following would work:
usera hostname=(sft) /usr/bin/mkdir /sft/test
- todd
More information about the sudo-users
mailing list