[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Sheflug] su



Have you edited the apache conf files to allow cgi execution, I have the
following set, not sure if you need all of the, though

    Options Indexes FollowSymLinks ExecCGI
ScriptAlias /cgi-bin/ "/www/public_html/cgi-bin/"

<Directory "/www/public_html/cgi-bin">
    AllowOverride None
    Options None
</Directory>

The script must be within the cgi-bin directory alias, or you can use the
followng

#AddHandler cgi-script .cgi

to use .cgi scripts outside of the aliased directory

Hope this helps, it may not be accurate, but it works for me

Alastair

> -----Original Message-----
> From:	technical [SMTP:technical [at] minsthorpecc.wakefld.sch.uk]
> Sent:	Monday, August 07, 2000 11:09 AM
> To:	Sheflug
> Subject:	[Sheflug] su
> 
> im trying to run cgi shell scripts but keep getting access denied due to
> apache running as user nobody can i use su without user intreaction to run
> the process as root as apache wont run as root without a recompile cos i
> was
> going to run a seperate hidden server to run admin scripts. My script is
> as
> follows:
> 
> #!/bin/sh
> echo content-type: text/plain
> echo
> echo internet server stopping
> /etc/rc.d/rc2.d/S20inetd stop
> 
> could someone point me into the right direction untill until I can get a
> book on cgi scripting im stuck.
> 
> Cheers Kevin
> 
> IT Technician Minsthorpe Community
> 
> ---------------------------------------------------------------------
> Sheffield Linux User's Group - http://www.sheflug.co.uk
> To unsubscribe from this list send mail to
> - <sheflug-request [at] vuw.ac.nz> - with the word 
>  "unsubscribe" in the body of the message. 
> 
>   GNU the choice of a complete generation.
> 


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.