Normal Permissions
permissions assignments
chmod o+x file
chmod o-w file
chgrp group_name /directory
chmod 600 file
add users
useradd foo -s /bin/bash -d /home/foo
passwd foo
chgrp foo foo
chown foo foo
# alternative
chown foo:foo foo
add group
groupadd new_grupo
usermod -a -G new_grup foo
octal permissions
special permissions
chmod +t file
chttr +i -V file
chmod g+s file
chmod 4755 file