| Read (4) | Write (2) | Execute (1) |
|---|
Octal
Symbolic
rwxr-xr-x
Command
chmod 755 fileEach of the three roles — owner, group, others — gets a digit from 0 to 7, adding read (4), write (2) and execute (1). So 6 is read+write, 7 is all three. A leading fourth digit for setuid/setgid/sticky bits isn't shown here. Everything runs on your device.