Re: Perl CGI script running as root is unable to do rm, chmod and su

2008-07-16 Thread Wijnand Wiersma
Jimisola Laursen schreef: > Hi! > > I'm trying make one script (script1) call another script (script2) and > have the output from script2 returned. > My initial problem was that script2 needs to be executed as root, so > I've set the setuid and setgid bit on script1 (script2 unchanged): So script1

Re: Perl CGI script running as root is unable to do rm, chmod and su

2008-07-16 Thread Jimisola Laursen
Hi, Sorry, I was not clear enough. No the scripts are executed as root. I've verified it since the output contains: USER: root USER in script2: root Regards, Jimisola Wijnand Wiersma wrote: Jimisola Laursen schreef: Hi! I'm trying make one script (script1) call another script (script2) and

Perl CGI script running as root is unable to do rm, chmod and su

2008-07-16 Thread Jimisola Laursen
Hi! I'm trying make one script (script1) call another script (script2) and have the output from script2 returned. My initial problem was that script2 needs to be executed as root, so I've set the setuid and setgid bit on script1 (script2 unchanged): -rwsrwsrwx 1 root bin 207 Ju