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
More on Permissions, Users & sudo
Explain the rwx permission model for files and directories.BeginnerWhat does chown do and who can run it?IntermediateWhat is umask and how is the final permission calculated?IntermediateWhat is SUID and give a real example?IntermediateWhat does SGID do on files versus directories?IntermediateWhat does a capital S or T in `ls -l` output mean?Intermediate