Subject: always looks for root
decay at flash.net
Fri Feb 8 15:12:21 EST 2002
avyildirim at ykb.com wrote:
> no matter what i write to Runas_Alias part of the file and then try to run
> a command, it always says:
> Sorry, user user1 is not allowed to execute 'command' as root on
> I want a user to be able to run a command of another user (not root),but it
> always warns me about root user...
I ran into the same problem myself, but it was because I misunderstood how to run a command thru sudo as a non-root user. You need to use the '-u <user>' option, e.g.:
sudo -u bob kill BobsProcess
This allows a user to su to bob and kill a specific process of bob's (BobsProcess).
mailto:decay at flash.net
"Keep the wheels rolling." - Anonymous traffic prophet
More information about the sudo-users