On Wed, 03 Mar 2004 22:37:23 +1300, you wrote:

>anton wrote:
>
>>
>>> You don't have a DirectoryIndex file in the directory in question. 
>>> Typically index.html
>>>
>>> You will already have one created by the installation in the default 
>>> location. Look up DirectoryIndex in the httpd.conf file to see 
>>> exactly what filenames are supported.
>>
>>
>> I may not have understood your point but I think I mentioned that the 
>> directory is an EXACT copy of /var/www/html, which works. The only 
>> difference between the two directories (and their contents) is that 
>> one belongs to antonovich (doesn't work, normal user) and the other 
>> belongs to root (does work).
>
>As I understand it you cannot access files that you do not own. Does the 
>user you're logged in as at the time, have permission to access that 
>directory? Apache is quite strict about the access rights in the 
>filesystem and, for example, "will not allow users to symlink to files 
>they don't own".

You _can_ access files that you do not own. That is why you can become
a member of more than one group. You can then use the group attributes
to control what you can do with them. Also, don't forget that you need
write access to the directory to create/modify files as well.

If that's not fine enough control, then chacl is your friend (:

>
>I don't know enough about Linux yet to ask whether the name of the user 
>that the server itself runs under matters, just that when I was 
>programming in PHP on a web site, there was a problem with ownership of 
>a file that was produced by a script. The server was running as "nobody" 
>IIRC.
You set it in httpd.conf. By default it's nobody.
>
>If you copy some files to another directory who owns the file then? Does 
>that change, or are they still owned by the original owner?
>
>
>

Steve

Reply via email to