[sudo-users] Running as a user other than root
Galen.Johnson at sas.com
Wed Feb 7 09:12:09 EST 2007
You should be able to do that with 'sudo -u <user>'...however, I find that it is not necessarily a good idea to have the command alias match the command (I don't know that it is an issue, I just take that out of the equation). Try the following (this assumes that the <user> is db2sds and that sds is running the command:
DB2 ALL=(db2sds) NOPASSWD:REPCHK
From: sudo-users-bounces at courtesan.com [mailto:sudo-users-bounces at courtesan.com] On Behalf Of Mia Durand
Sent: Tuesday, February 06, 2007 11:59 AM
To: sudo-users at sudo.ws
Subject: [sudo-users] Running as a user other than root
Fairly new to using sudo, and I'm trying to set up a user to run a job as a user other than root. I included all of the syntax that I believe should work, but I'm still unable to get the command to run. Here is a snippet of my sudoers file.
DB2 ALL=(db2sds) NOPASSWD:repchk
I have also tried this with:
DB2 ALL=(ALL) NOPASSWD:repchk
and also with:
and also with:
But no matter what I include in the user specs I am continually told that user sds is not permitted to run this command.
I remember hearing along the way somewhere that there may be some issue with running commands as a user other than root, but I haven't been able to find anything substantial to back that up. Does anyone know what I might be doing wrong, or if this possibly does not work? Thanks in advance.
sudo-users mailing list <sudo-users at sudo.ws> For list information, options, or to unsubscribe, visit:
More information about the sudo-users