AmigaActive (531/1947)

From:Neil Bothwick
Date:8 Apr 2001 at 17:15:34
Subject:Re: AA tutorials

David Jones said,

> The problem is that when trying to run the guestbook cgi script,(mentioned
> in the AA tutorial) I get an error saying I have no permission to access
> the cgi-bin. I have already run chmod which allowed me to run the script in
> the first place, but when I enter details into the browser page. I get the
> above Apache error message.

> No details appeared in the tutorial about how exactly chmod is used.

There wasn't space.

> I ran it
> through the shell using 755 and naming the files I wanted to change the
> permissions on. But I'm not sure if this was correct.

That doesn't always work with files on the Amiga, because you aren't
logged in as the owner of the files. Try using "chmod a+x filename" to
set the execute permission for all users.

File permissions set three bits for each group of users, owner, group
and all. The bits are r, w and x. x means execute for a file but for a
directory it gives permission to enter the directory. These have the
numeric values of 4, 2 and 1 respectively. So 755 gives the owners rwx
and group and other get rx. Directories and scripts should be set to
755, data files usually need to be 644. If you are only running the
server locally, it's easiest to set everything to 777 if you think
permission s are causing the problem. That lets everyone read, write and
execute everything, at the expense of security.

You may also need to set ownership of the files with "chown www:www
filename". This sets both the owner and group to "www". If owner and
group are the same, as here, you can abbreviate it to "chown www:
filename".

Neil



Neil Bothwick - New Media Editor, Amiga Active Magazine
Connected via Wirenet - http://www.wire.net.uk
The UK's first Amiga-only internet access provider
---
The value of a program is proportional to the weight of its output.

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
Do you have 128-bit SSL encryption server security?
Get VeriSign's FREE Guide, "Securing Your
Web Site for Business." Get it now!
http://us.click.yahoo.com/2cW4jC/c.WCAA/bT0EAA/d8AVlB/TM
---------------------------------------------------------------------_->

Quote carefully and read all ADMIN:README mails

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/