Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 18647  / 3 Years ago, sat, september 18, 2021, 6:47:38

whats the equivalent command of this (Fedora command) for Ubuntu:



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


When I try the above with Ubuntu (10.0.4 LTS), I get the error message:



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

More From » chmod

 Answers
2

chmod uses a series of numeric entries to set file permissions rather than strings. The ubuntu version of the command given would be



chmod 0755 app/cache app/logs


This should work assuming www-data is the owner. If not,



chown www-data.www-data app/cache app/logs


will change it so www-data owns the directories.



Detailed article: http://mdshaonimran.wordpress.com/2010/06/13/chmod-change-filefolder-permission-in-ubuntu/


[#39877] Saturday, September 18, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aradxalte

Total Points: 70
Total Questions: 116
Total Answers: 116

Location: Dominica
Member since Sat, Nov 5, 2022
2 Years ago
;