Online Linux Terminal Logo
OnlineLinuxTerminal
Berechtigungen & SicherheitCLI Manual

$chmod

Ändern Sie Dateizugriffsberechtigungen für Besitzer, Gruppe und andere Benutzer.

BefehlssyntaxPOSIX Standard
chmod [OPTIONS] MODE[,MODE]... FILE...
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

chmod steuert Lese-, Schreib- und Ausführungsrechte für Dateien und Ordner unter Linux über Oktalwerte oder symbolische Modi.

Wichtige Optionen und Flags

Flag / OptionDescription
755rwxr-xr-x: Owner has full control; group and others can read and execute.
644rw-r--r--: Owner can read and write; group and others can read only.
700rwx------: Owner has full control; no access for anyone else.
-RRecursively change file permissions on all subdirectories and files.
+xMake a script or binary file executable for all users.

Praktische Anwendungsbeispiele

#1Make a bash script executable
chmod +x /home/user/projects/demo.sh && ls -l /home/user/projects/demo.sh

Adds execute permissions to demo.sh and verifies the updated mode bits.

#2Set standard web file permissions (644)
chmod 644 /var/log/syslog

Grants read/write to owner and read-only to group and others.