Python SUID
Florian Fredegar Haftmann
fredegar at haftmann-online.de
Sat Jan 12 08:09:46 EST 2002
Hi!
I wanna make a python script run suid (for root); I tried to use a C
wrapper:
------------------------------
#define PATH "backup2disk.py"
int main(argc, argv)
int argc;
char** argv;
{
execv(PATH, argv);
}
------------------------------
The files have the signature:
-rwsr-xr-x root root backup2disk (the compiled wrapper)
-rwxr-xr-x rppt root backup2disk.py (the python script)
I can start the binary backup2disk, but the python script doesn't run suid.
What's wrong?
Thanks,
FFH
More information about the Python-list
mailing list