I was following a tutorial and it told me to run
sudo chmod +a "SOME_PARAMS" some/dir
I was surprised to see that fail telling me
chmod: invalid mode: `+a'
So I wonder: What does the +a
mode mean? How would I translate it into something Ubuntu understands? And I also like to know why it isn't universally supported.
Best Answer
I have never seen
+a
, only something likechmod a+r
which means "add read permissions to all users" (owner/user, group, others).From
man 1 chmod
:Right, as you said in a comment, it's Mac OS X specific. From http://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/chmod.1.html: