![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| members in a group | arthi | Linux | 7 | 05-23-2008 05:20 AM |
| how to start a process and make it sleep for 5 mins and then kill that process | shrao | Shell Programming and Scripting | 6 | 03-27-2007 09:54 AM |
| make issue when I add some members into a NIS group on solaris 9,please help !! | lk74612 | SUN Solaris | 4 | 11-17-2006 02:07 AM |
| When kill doesnt work, how to kill a process ? | VijayHegde | UNIX for Advanced & Expert Users | 3 | 05-12-2006 01:24 PM |
| listing members of a unix group | ovaska | UNIX for Dummies Questions & Answers | 2 | 03-09-2005 02:54 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
allowing members of a group to kill a process
I've written a python program where I want to allow members of a specific group the ability to kill it, and I'm not sure how to do it. I've been looking at the setuid() and setgid() and similar functions in the os module, but haven't been able to get them to work. I can't seem to change the uid or gid of the running process at all.
I currently don't have any sudo permissions. Anyone have a good idea of how to do this? I was thinking of having a couple wrapper scripts that would start/kill the process where they would use the setuid/setgid() functions, but as of yet to no avail. Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
The setuid/setgid permission bits would need to be set on the binary for this to work as a non-root user.
|
||||
| Google The UNIX and Linux Forums |