Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 29022  / 1 Year ago, fri, may 26, 2023, 7:13:37

System: ( lsb_release -a )



Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid


This is my command:



sudo chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs


Docs:





Error:



chmod: invalid mode: `+a'
Try `chmod --help' for more information.


Why doesn't this work? Isn't the +a standard chmod?



UPDATE:



Looks like this is a OSX only mod:




More From » 10.04

 Answers
1

"+a" is not a standard argument, no. Follow the next step in the linked documentation.



sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs


Info on what the "+a" does for chmods that use it:




+a The +a mode parses a new ACL entry from the next argument on the commandline and inserts it
into the canonical location in the ACL. If the supplied entry refers to an identity already
listed, the two entries are combined.



[#37849] Saturday, May 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istmasted

Total Points: 287
Total Questions: 130
Total Answers: 153

Location: Burkina Faso
Member since Thu, Dec 23, 2021
2 Years ago
istmasted questions
;