Re: Permissions

From: Laurenz Albe (albe_at_culturallNOSPAM.com)
Date: 12/15/04


Date: Wed, 15 Dec 2004 19:43:26 +0000 (UTC)

Enzo's Dad <~DerekNutile@hotmail.com> wrote:
> 1) I don't understand file/directory permissions on Linux well. I'm slowly
> trying to cut the Microsoft chord...

Read the man pages, start with chmod.
Search the web.

> 2) Specifically, I am having an issue with permissions when I setup an
> alias directory in Apache. I created a directory (/var/www/wp, a simple
> index page within that directory, created the alias in Apache, and when I
> attempt to view the html file (http://localhost/wp) I get a 403 Forbidden
> error. I don't have permissions to access /wp on this server. I've
> attemtped to CHMOD this directory every which way to no avail. I'm certain
> this is a simple issue.

It could be a) a file permission problem, as you assume, or b) you have
Apache configured so that it forbids you access to the file.

Assuming that you run httpd as nobody, you can find out if it is a
permission problem:

- login as root
- execute 'su - nobody' to become nobody.
- try to read the file, e.g. with 'cat /var/www/wp/<name of file>'

If that gives you an error, you do not have the necessary permissions.

If that works fine, you probably have a problem in your Apache
configuration.

- Do other pages work well?
- Maybe turn on debugging and see access.log and error.log for
  messages.

Yours,
Laurenz Albe



Relevant Pages

  • Re: File permissions for a wiki-like site
    ... The question is what file permissions I need to allow for the ... content to be writable by my PHP script. ... The only one doing the writing will be the Apache user itself. ... I'd suggest you get a book on Linux Administration. ...
    (comp.lang.php)
  • Re: apache permission problem please help
    ... Ok as anyone reading this thread knows i have huge mess on hands. ... chmod -R 701 home ... mailclients but i moved one and had to modify the permissions all over ... >>apache was unable to use these files. ...
    (freebsd-questions)
  • Re: FC3 issue with apache 2
    ... permissions but due to SELinux. ... > apache, so naturally I set all my file ownership to my webdev user who ... Apache (the user/group it runs as, on Fedora as apache:apache) ... not paying attention at least not customizing the SELinux setup. ...
    (Fedora)
  • Re: File permissions for a wiki-like site
    ... The question is what file permissions I need to allow for the ... content to be writable by my PHP script. ... The only one doing the writing will be the Apache user itself. ... I'd suggest you get a book on Linux Administration. ...
    (comp.lang.php)
  • Re: File permissions for a wiki-like site
    ... I'm writing a site where a handful of people will be able to edit ... The question is what file permissions I need to allow for the ... content to be writable by my PHP script. ... The only one doing the writing will be the Apache user itself. ...
    (comp.lang.php)