Explain the rwx permission model for files and directories.
BeginnerConceptPermissions, Users & sudo
Answer
Three classes: user (owner), group, others. Each gets read, write, execute.
- File:
rread content,wmodify content,xexecute. - Directory:
rlist names,wcreate/delete/rename entries (needsxtoo),xtraverse (access entries by name).
Deleting a file depends on write permission on the directory, not on the file.
More on Permissions, Users & sudo
How does octal notation work in chmod?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