ubuntu-users@lists.ubuntu.com
[Top] [All Lists]

Re: Shouldn't a file I create default to being owned by me?

Subject: Re: Shouldn't a file I create default to being owned by me?
From: Adam Conrad
Date: Fri, 17 Feb 2006 23:09:03 +1100
Dave M G wrote:
> 
>    So, I was suprised when I created a little PHP script to test
> something, and when I viewed it through FireFox, it said there was a
> "permissions error".
> 
> -rw-------  1 dave dave 20 2006-02-13 22:45
> /home/dave/web_sites/phpinfo.php

Of course you can't see it through Apache/PHP, since apache doesn't run
as "dave", it runs as "www-data".

>    So I changed the properties with chmod 777 and the file opens fine.

You probably didn't want 777 (rwx for everyone), but 644 (rw for you and
read-only for your group and everyone, which would include www-data)

... Adam


-- 
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

<Prev in Thread] Current Thread [Next in Thread>