[GLLUG] apache doc root directory permissions

Melson, Paul PMelson at sequoianet.com
Fri Jun 25 09:31:53 EDT 2004


Your directories should be 711 and your files (even PHP, etc.) should be
744.  Actual CGI's need to be 755.  Ownership is open ended, but root
isn't a bad option.  What you want to avoid is having the user owner (as
opposed to the group owner, since group and other permissions are the
same) be the same as the Apache unprivileged user.

For the situation you describe, you can make your friends users the
individual owners of their own files and directories.  Or, if multiple
users need to edit the same files, make a new group for them and set
group ownership of the files and directories they need access to that
group.  Then set the directory permissions to 771 and the files to 774.

PaulM

-----Original Message-----
What should the permissions be for /www (my apache document root) that
will still allow for php scripts to be run from any sub-folder?
Who should own them? Which group should own them?

>From what I understand, pure-ftpd virtual users are associated with a
real system user and group. I want the home folders to be specific
folders under /www. I also want 1 user that will be able to access any
sub-folder (like a Does it matter which group and user the virtual users
are associated with?

What I'm trying to do is provide web space for some friends and I want
to give them ftp access to their specific folder.

Right now I have it set up, but when I try to log in my ftp account, I
can't upload files to different folders. I have the specific folder part
down ok, when I add the user I just chroot them to the folder.



More information about the linux-user mailing list