[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RE: CGI-BIN chmod 711 and a slurpee with that...
- Subject: Re: [cobalt-users] RE: CGI-BIN chmod 711 and a slurpee with that...
- From: Olaf Alders <olaf@xxxxxxxxxxxxxxx>
- Date: Mon Apr 1 21:35:11 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
on 4/2/02 1:05 AM, Nicolae at nicolaep@xxxxxxxxxxxxxxxxxx wrote:
>>
>> On Mon, 01 Apr 2002, Mark Middleton wrote:
>>> I've searched the archives, and understand that the RAQs
>> allow you to
>>> run cgi scripts anywhere, and to just create a folder called
>>> "cgi-bin". However, now this folder is browse-able.
>>>
>>
>> chmod the cgi-bin 711
>> and chmod the cgi-files 711
>> They can execute them BUT they can't read em.
>
> Unless you hit scripts and such that want 755 access or 777 and
> you get scripts that also want 777 sub-directories in your cgi-bin.
>
Since the scripts run under the cgi wrapper you can almost always get away
with running them under chmod 700. I have hundreds of scripts running with
700 permissions that create files, directories etc no problem.
If I'm not mistaken, you should be able to run your cgis out of any web
folder on an XTR. To stop the folder from being browsed, add an .htaccess
file that contains the following:
Options -Indexes
That should pretty much take care of things.
Olaf
--
Olaf Alders
olaf@xxxxxxxxxxxxxxx
http://vilerichard.com
Free web stats and counters: http://www.wundercounter.com