| Subject: | Re: Perl CGI script running as root is unable to do rm, chmod and su |
|---|---|
| From: | jimisola@xxxxxxxxxxxx (Jimisola Laursen) |
| Date: | Wed, 16 Jul 2008 22:03:13 +0200 |
| Newsgroups: | perl.beginners.cgi |
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 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 is executed as regular user? In that case you are either running Linux or the partition is mounted with nosuid. In both cases scripts are not allowed to run suid. Regards, Wijnand |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Perl CGI script running as root is unable to do rm, chmod and su, Wijnand Wiersma |
|---|---|
| Next by Date: | Re: output "CGI=HASH(0x80ca53c)" ?, Prosamper |
| Previous by Thread: | Re: Perl CGI script running as root is unable to do rm, chmod and su, Wijnand Wiersma |
| Next by Thread: | Re: output "CGI=HASH(0x80ca53c)" ?, Prosamper |
| Indexes: | [Date] [Thread] [Top] [All Lists] |