However on OS-X there are actually 4 systems for setting file permissions/ACL's/Attributes/Flags:
Basic File Permissions
ls -lchmod u+w FILE
Access Control List (ACL)
ls -lechmod +a “everyone deny delete” FILE
Extended Attributes
ls -l@xattr -d com.apple.quarantine FILE
File Flags
ls -lOchflags 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@