Linux OS Internals (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are Linux File Permissions (`chmod`, `chown`, and Octal Notation)?
junior Levellinux-osBasic
In Simple Words: Permissions are evaluated for User (owner), Group, and Others:
- Read (
r = 4), Write (w = 2), Execute (x = 1). chmod 755 script.sh:- User: $4+2+1 = 7$ (
rwx- full access). - Group: $4+0+1 = 5$ (
r-x- read & execute). - Others: $4+0+1 = 5$ (
r-x- read & execute).
- User: $4+2+1 = 7$ (
chown appuser:appgroup file.txt: Changes ownership to userappuserand groupappgroup.