Skip to content

Permissions and Advanced Management

Each file/directory has permissions: read (r), write (w), execute (x).
They apply to:

  • u → user (owner)
  • g → group
  • o → others

Fenêtre de terminal
chmod 755 script.sh
chmod u+x file.sh

755 = user: rwx, group and others: rx


Fenêtre de terminal
chown user:user file.txt

Fenêtre de terminal
sudo apt update

  • Check permissions with ls -l.
  • Only use 777 as a last resort.
  • Use sudo only when necessary.