Interview Prep/Linux/Permissions, Users & sudo

How does octal notation work in chmod?

BeginnerConceptPermissions, Users & sudo
Answer

r=4, w=2, x=1, summed per class.

chmod 640 app.conf    # rw- r-- ---
chmod 750 deploy.sh   # rwx r-x ---
chmod u+x,g-w,o= file # symbolic form
chmod -R g+rX /srv/app  # capital X: x only on dirs and already-executable files
All Linux questions Roadmap: Linux

More on Permissions, Users & sudo