[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sudo question

also sprach Johann Spies <jspies@sun.ac.za> [2005.07.08.1057 +0200]:
> How is it possible that I can enable this user not only to run
> programs from this directory, but to kill the process he started when
> necessary using SUDO - without enabling him to kill any process on the
> machine.

The only way to do this is to write a script which ensures that the
PID is within the range of allowed PIDs, and then to give sudo
access to the script. Beware that it's easy to make mistakes in
scripts which could allow the user to gain root rights.

Please do not send copies of list mail to me; I read the list!
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
"how do you feel about women's rights?"
"i like either side of them."
                                                       -- groucho marx

Attachment: signature.asc
Description: Digital signature

Reply to: