This document contains a series of practice exercises involving the Linux chmod command to modify file permissions. It includes examples of using chmod to add, remove, and assign specific permission values both symbolically and numerically. The final questions involve determining the appropriate chmod expressions to change an example file's permissions between different states.
This document contains a series of practice exercises involving the Linux chmod command to modify file permissions. It includes examples of using chmod to add, remove, and assign specific permission values both symbolically and numerically. The final questions involve determining the appropriate chmod expressions to change an example file's permissions between different states.
This document contains a series of practice exercises involving the Linux chmod command to modify file permissions. It includes examples of using chmod to add, remove, and assign specific permission values both symbolically and numerically. The final questions involve determining the appropriate chmod expressions to change an example file's permissions between different states.
This document contains a series of practice exercises involving the Linux chmod command to modify file permissions. It includes examples of using chmod to add, remove, and assign specific permission values both symbolically and numerically. The final questions involve determining the appropriate chmod expressions to change an example file's permissions between different states.
2) chmod g+x filename 3) chmod ugo + x filename 4) chmod go – rx filename 5) chmod go - x filename 6) chmod ugo + rwx filename 7) chmod a + rx filename 8) chmod a + x filename 9) chmod a +w filename 10) chmod g + rwx filename 11) chmod 400 filename 12) chmod 764 filename 13) chmod 111 filename 14) chmod 777 filename 15) chmod 712 filename 16) chmod 100 filename 17) chmod 523 filename 18) chmod 657 filename 19) chmod 231 filename 20) chmod 700 filename 21) Symbolically (eg rwxr-xr-x) what are the permissions 644, 755, 000, 711, 700, 777,555, 111, 600, 731?\ 22) Given a file with permissiom 655. What commands would change the permissions to r-xr— r--? 23) How will you obtain a complete listing of all files & directories in the whole system & save the output in a file? 24) Create a file new_file. How do you assign all permissinons to the owner and remove all permissions from others using : i) Relative assignment ii) Absolute assignment 25) Assuming that a file’s current permissions are “rw-r-x-r—“, to specify the chmod expression required to change them to: i) r w x r w x r w x ii) r - - r - - - - - iii) - - r - -r - - iv) - - - - - - - - -
Using both relative and absolute methods of assigning permissions.