Access Control Lists allow you to define user permissions on files in a fine grained way. For example, if Apache needs write permission on a folder – but you want to retain your own permissions for also writing to that folder from command line scripts – ACL is the answer.
chmod +a
For systems that support chmod +a (i.e. OSX, in this case the apache web server: _www user)
sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" /Users/deano/tmp
setfacl
For systems that support setfacl (i.e. Ubuntu)
sudo setfacl -R -m u:www-data:rwx -m u:yourname:rwx /home/deano/tmp