command line - Setting www-data and me as the owner? - Ask Ubuntu


i've set owner of sites files be: www-data 755 permission. now, need run commands me.

i permission errors.

how can allow user run cmds on these files yet still have www-data owner? not wish set 777 permissions.

posix access control lists (acls) more fine-grained access rights files , directories. acl consists of entries specifying access permissions on associated object. acls can configured per user, per group or via effective rights mask.

more information can found here.

it should noted, in 14.04 , newer, posix acls work out of box , need no additional packages installed.


the following command set acl recursive, user 'yourusername' have read, write, , execute permissions on /var/www-data , beyond.

setfacl -r -m u:yourusername:rwx /var/www-data

to see acl's set folder...

getfacl /var/www-data

and remove acl set...

setfacl -x u:yourusername /var/www-data


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User