Uprava prav pre HOME pre apache

Vytlačiť

You can use:

getfacl <directoryname>

to get the permissions on the directory that might have been set using ACLs. You'll see something like that following that basically says the user has all permissions and the group has read and execute (or search) but not write:

# file: <directoryname>
# owner: username
# group: username
user::rwx
user:1000:rwx
group::---
group:username:r-x
mask::rwx
other::rwx

To give apache or a group access to using ACLs, use the following:

setfacl -m g:<groupname>:rx <directoryname>
 
Tags: linux, apache