skazat has asked for the wisdom of the Perl Monks concerning the following question:
hello all,
I am developing an application for administrating htaccess and htpasswd for protected directories via a cgi script, knowing the circumstances, I'm guessing that I need to run the cgi-script as a user and not 'nobody', tho I'm not too clear on how to go about this, perhaps I'll tell you what I know and then you can pick apart at me.
To run as 'user' the perl script has to be chmoded a special way, though I'm not sure exactly what ;/
To run as this special way, you have to make sure the program is untainted, using the -Taint flag, etc.
This seems all in well, and I've already done some research on various CPAN PMs that might comne in handy. This cgi script will most likelty be in its on protected directory, so no worries there.
I think on my main server, we're using suEXEC, so perl scripts have permissions automagically when they need them. I'm not going to have this on the server I'm writing this app for. I also do not have root access to this server,
Are there any pitfalls that you can see?
-justin simoni
!skazat!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running a CGI Script as user
by footpad (Abbot) on Jan 07, 2001 at 01:09 UTC | |
|
Re: Running a CGI Script as user
by merlyn (Sage) on Jan 06, 2001 at 05:06 UTC | |
by skazat (Chaplain) on Jan 09, 2001 at 02:28 UTC | |
|
Re: Running a CGI Script as user
by arturo (Vicar) on Jan 06, 2001 at 04:48 UTC |