Skip to main content
InterviewHubPRO
Section Overview
Q9

Question 9 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

18%
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).
  • chown appuser:appgroup file.txt: Changes ownership to user appuser and group appgroup.