Changes

Jump to navigation Jump to search
814 bytes added ,  01:59, 22 March 2015
Created page with "chmod <octal_value> file<br /> The octal (0-7) value is calculated by adding up the values for each digit<br /> User (rwx) = 4+2+1 = 7<br /> Group(rx) = 4+1 = 5<br /> World (..."
chmod <octal_value> file<br />
The octal (0-7) value is calculated by adding up the values for each digit<br />
User (rwx) = 4+2+1 = 7<br />
Group(rx) = 4+1 = 5<br />
World (rx) = 4+1 = 5<br />
chmode mode = 0755<br />
<br />
Examples<br />
<br />
chmod 400 file - Read by owner<br />
chmod 040 file - Read by group<br />
chmod 004 file - Read by world<br />
<br />
chmod 200 file - Write by owner<br />
chmod 020 file - Write by group<br />
chmod 002 file - Write by world<br />
<br />
chmod 100 file - execute by owner<br />
chmod 010 file - execute by group<br />
chmod 001 file - execute by world<br />
<br />
To combine these, just add the numbers together:<br />
chmod 444 file - Allow read permission to owner and group and world<br />
chmod 777 file - Allow everyone to read, write, and execute file<br />

Navigation menu