File permissions
Unix file permissions
Section titled “Unix file permissions”Permissions (rwx): Add the values per user, group, or other to form the permission digit.
r= read (4)w= write (2)x= execute (1).
Special bits:
setuid(4) run as file ownersetgid(2) run as group ownersticky(1) restrict delete to owner (commonly on/tmp)