Weird privilege when uploading to ~user/Sites

stephan

Member
File privileges becomes wrong when I upload a webpage to a users sites-directory on a OS X Server 10.2.


Via ftp:

The files gets:
-rw-r-----

Directories:
drwxr-x---

Gets forbidden "Forbidden" when I'm trying to surf the site (http://server/~user/).
If I change manually with chmod 755 it works. But I shouldn't have to do that everytime.


If i upload via afp then...

...the directories gets:
drwxrwxrwx

and the files gets:
-rw-r--r--

Owner is "user", group is"staff".

Shouldn't the directories automaticly get:
drwxr-xr-x

and the files:
-rw-r--r--

?

I've ran "repair privileges" from the istall CD, but that didn't solve the problem.
What might be wrong?
 
The easiest fix is to click on the sites folder and get properties. The under Ownership and Permissions make sure that everyone has read access and copy the privileges to all enclosed items. This will ensure that everyone can view it.
 
The privileges is set exacly that way for the sites-directory, but when I'm uploading inside the directory the new objects (directories and file) does not get the same privileges-settings.
 
Back
Top