Newbie SUDO question

mackay at mackay at
Thu Aug 16 16:15:33 EDT 2001

From: Scott D. MacKay

One idea would be to script it.  Either develop a non interactive non-parameter
accepting script or compile a C program which can kill the process.  Allow them
access to invoke that script/program ala:

Cmd_alias = KILLP = /packages/custom/bin/killit

You wil need, of course, need to have good insurance that the value in the
/tmp/ is actually what it says it is.


"Villegas, Beatriz D." <Beatriz.Villegas at> on 08/16/2001 04:02:32 PM

To:   "'sudo-users at'" <sudo-users at>
cc:    (bcc: Scott D. MacKay/943904/EKC)
Subject:  Newbie SUDO question


We are trying to give sudo access to a user that needs to kill a process
that runs as root. We want the user to kill only that process (which is
different every time). We don not know how to specify in the sudoers file
something like:

Cmd_alias = KILL = /usr/bin/kill `cat /tmp/`

The pid of the process is on the /tmp/ file.

Any suggestions will be greatly appreciated.

Thanks in advance,

Beatriz Villegas

beatriz.villegas at

sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list