no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | acl [2013/08/22 21:02] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Access Control List ====== | ||
+ | ACL is used for setting fine permissions beyond the simple octal modes of Linux. | ||
+ | |||
+ | For it to work properly, the kernel needs to be compiled with ACL support for the filesystem being used, and then loaded as an option in ''/ | ||
+ | |||
+ | Optionally, remount a partition to add ACL support: | ||
+ | |||
+ | < | ||
+ | |||
+ | ==== Giving Apache Write Access ==== | ||
+ | |||
+ | To give Apache write access to a directory (fex: uploads), you can run this to set the permissions correctly: | ||
+ | |||
+ | < | ||
+ | sudo setfacl -Rm g: | ||
+ | sudo setfacl -Rm d: | ||
+ | </ | ||
+ | |||
+ | The first line gives any user in the apache group read, write and execute access to that directory. | ||
+ | |||
+ | The second line specifies that any directories or files created in that directory will inherit those same settings. | ||
+ | ==== New Development Site ==== | ||
+ | |||
+ | After creating a directory on '' | ||
+ | |||
+ | < | ||
+ | sudo / | ||
+ | </ |