2 Using octal permissions what command would you use to chan
2.
Using octal permissions, what command would you use to change the permissions of a file called brysam.sh to -r-xrwx--x ?Solution
1. Each digit in octal representation sets permission for the owner(rwx), group(rwx), and other(rwx) as follows:
so octal number = (r+x)(r+w+x)(x) and the command is chmod ---change mode as below:
chmod 571 brysam.sh
2 -r with commands chmod ,cp or rm is used to recursively execute the command on all file,directories and subdirectories. chmod -r will change mode recursively, cp -r will copy recursively and rm -r will remove recursively.
