in reply to setuid scripts, how?
#include <unistd.h> int main(int argc, char** argv) { if (getuid() == 110) { setuid(geteuid()); setgid(getegid()); execl("/path/to/script.pl", NULL); } return 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: setuid scripts, how?
by tye (Sage) on Jul 27, 2000 at 01:10 UTC |