Skip to content
Guest
Learn Linux · Course Syllabus Show lessons
Server Administration · 8 min read · Beginner

Permissions, chmod & Ownership

Decode rwx permission bits (755, 644, 600), make scripts executable with chmod +x, and protect SSH keys.

What you'll learn

  • Calculate octal permissions: read=4, write=2, execute=1
  • Know the three everyday modes: 755 (scripts/dirs), 644 (files), 600 (private keys)
  • Make a shell script executable with chmod +x

Linux permissions split into three groups: Owner, Group, and Others. Each group sums three bits: Read (4), Write (2), and Execute (1):

  • 755 (rwxr-xr-x): Owner can read/write/execute; everyone else can read/execute (standard for scripts and folders).
  • 644 (rw-r--r--): Owner can read/write; others read-only (standard for web files).
  • 600 (rw-------): Owner only (required by SSH for private keys like ~/.ssh/id_ed25519).

Fill-in-the-Blank Exercise

Lock Down Private Key & Mark Script Executable

Set mode 600 on an SSH key and mark deploy.sh executable.

 600 ~/.ssh/deploy_key
chmod  deploy.sh

Live Bash Lab

Bashperms.sh
Expected OutputClick “Run Live” to compile with GNU Bash
Executable script works!

Check Your Understanding

Score: 0 / 1

1. What permissions does chmod 600 grant on a file?

Study Workspace

Finished this lesson?

Your progress is saved locally in your browser, no account needed.

Search courses, lessons, and references

Type to search across all courses, lessons, and quick references.

Press Esc to close Powered by Pagefind