Shouldn't a file I create default to being owned by me?
Adam Conrad
adconrad at ubuntu.com
Fri Feb 17 12:09:03 UTC 2006
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
More information about the ubuntu-users
mailing list