You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2006/01/12 00:55:36 UTC
Re: [users@httpd] Question about Apache Web Svr and perl scripting
On 1/11/06, sal.talamantez@database-brothers.com
<sa...@database-brothers.com> wrote:
> Hello All,
>
> I am new to Apache web server scripting, so bear with me. I am running
> Apache on a Windows XP machine.
>
> I have a perl script being called by the Apache web server. The perl script
> creates a cmd script file that is called by perl to execute. The cmd script
> runs fine except for one specific command that is failing. The failing
> command is a copy command from a mapped Linux Samba drive to a local drive.
> The script does not seem to have to power/permissions to run this command.
>
> I looked at some of the Apache documentation regarding suexec and the power
> (or lack thereof) of cgi perl scripts. The general explanation was to
> change the permissions for the cgi script using suexec, except that the
> instructions seem to be for a Unix server. Can anyone tell me how to give a
> perl script enough power to copy to a mapped drive on an Apache Web Server
> in Windows?
You are correct that suexec is not the way to go on windows. You
should be running the apache service under a user that has the
appropriate permissions. See:
http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc
Joshua.