Skip to main content
Three digits (e.g., 755) or four with a special digit (e.g., 4755).
9 chars (e.g., rwxr-xr-x) or 10 w/ type file
Reading (R)Writing (W)Execution (x)Ottales
Owner 6
Group 4
Others 4
Ottales
644
Symbolic
rw-r--r--
Command: chmod
chmod 644 file

Come utilizzare Chmod Calculator

Scegli il metodo di input

Puoi inserire i permessi in tre modi: digitare direttamente il valore numerico ottale (es. 755) nel campo "Valore numerico", oppure la notazione simbolica (es. rwxr-xr-x) nel campo "Notazione simbolica", oppure usare la griglia di checkbox interattivi sottostante.

Usa la griglia interattiva

La griglia "Permessi interattivi" mostra tre righe per Proprietario, Gruppo e Altri. Clicca sui bottoni Lettura (r), Scrittura (w) ed Esecuzione (x) per attivare o disattivare ogni bit. Il valore ottale per ciascuna riga si aggiorna in tempo reale.

Applica un preset comune

Premi uno dei bottoni nella sezione "Preset comuni" per impostare rapidamente permessi frequenti come 644 (file di default), 755 (eseguibili) o 600 (file privato). I preset aggiornano automaticamente griglia, campo numerico e simbolico.

Configura i bit speciali (opzionale)

Premi il pulsante "Bit speciali" per espandere il pannello con setuid (4xxx), setgid (2xxx) e sticky bit (1xxx). Questi bit sono necessari per directory condivise o per eseguire programmi con i privilegi del proprietario.

Copia il risultato o il comando

Nella sezione "Risultato" trovi il valore ottale, la notazione simbolica e il comando chmod pronto all'uso. Premi il bottone copia accanto a ciascuno per copiarlo negli appunti e incollarlo direttamente nel terminale.

Suggerimenti

  • Usa il bottone "Reset" per riportare tutti i permessi al valore di default 644 (rw-r--r--) senza dover cancellare manualmente i campi.
  • I preset nella barra laterale includono la descrizione di ogni configurazione: passaci sopra con il mouse per leggere a cosa serve prima di applicarlo.
  • Per applicare gli stessi permessi a tutti i file di una directory usa il flag -R nel terminale: ad esempio `chmod -R 755 /var/www/html`.

Domande frequenti

What does chmod 755 mean on Linux?

Change mode - grants owner read, write, and execute permissions (7=4+2+1), while group and others get only read and execute (5=4+0+1). It's the standard permission for executable files and web directories.

What is the difference between chmod 644 and chmod 755?

chmod 644 gives the owner read and write (6 = 4+2) and others read-only (4). chmod 755 adds execute permission for the owner (7 = 4+2+1) and also for group and others (5 = 4+1). 644 is ideal for configuration files, 755 for executable scripts.

How to set a file to read-only with chmod?

Make file readable only by owner use chmod 400 (r--------). Allow read for all but no write use chmod 444 (r--r--r--). You can select these values by entering the octal number in the field or using the grid.

What is the sticky bit and when is it used?

The sticky bit (chmod 1xxx) on a directory ensures only the file owner can delete it, even if others have write permission to the directory. It's typically used on /tmp. Found in the "Special Bits" section of the calculator.

How do I convert from symbolic notation rwxr-xr-x to octal?

Enter symbolic notation (e.g. rwxr-xr-x): the computer instantly converts it to octal value (755) and updates all other fields; you can use strings of 9 or 10 characters (with file type at head).