Thursday, April 13, 2017

aelO@ - OSX File Permissions

Most people know about the standard file permissions on *NIX systems.
However on OS-X there are actually 4 systems for setting file permissions/ACL's/Attributes/Flags:


Basic File Permissions

ls -l
chmod u+w FILE

Access Control List (ACL)

ls -le
chmod +a “everyone deny delete” FILE

Extended Attributes

ls -l@
xattr -d com.apple.quarantine FILE

File Flags

ls -lO
chflags nouchg FILE

Summary

You should also throw a -a option into the ls command, so that you show hidden (.) files, therefore if you want to see what permissions are being applied to all your files you need the following command:

ls -aelO@



No comments:

Post a Comment