Skip to main content

Timeline for Terminate Root Processes

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Sep 22, 2011 at 18:37 comment added Warren Young I think you're not reading what we're writing carefully. It is possible to configure sudo so that it does not ask for a password. You tell it that such-and-such a user can run thus-and-so program with root privileges without a password. That is what the NOPASSWD bit does in the question Michael pointed you to. Once you set it up correctly, your script can say sudo kill $somepid, and it will do what you're asking.
Sep 22, 2011 at 17:07 comment added Samantha Catania As I wrote in the question this must be done from an agent program there must be no input from the user & there is no terminal window
Sep 22, 2011 at 17:03 comment added enzotib @SamanthaCatania: why you can't? You are not able to, or you do not have privilege to modify /etc/sudoers?
Sep 22, 2011 at 17:00 comment added Samantha Catania I can't configure it that way
Sep 22, 2011 at 15:45 comment added Michael Mrozek @Samantha "You can configure it to let you enter any command without a password". See this question
Sep 22, 2011 at 15:23 comment added Samantha Catania I used sudo but it still asks for the password; I have to implement this in a program so I can't have the user enter the password
Sep 22, 2011 at 15:20 history answered Warren Young CC BY-SA 3.0