Pages

Solutions

Permissions 

Q1. Write down symbolic representation (eg rwxrw-r--) for each of the following numeric permissions
755             rwxr - xr - x
777             rwxrwxrwx
644             rw - r - - r - -
600             rw- - - - - - - -
730             rwx - wx - - -
555             r - xr - xr - x
641             rw - r - - - - x

Q2. Give a file permission of 755

chmod 755 filename

Q3. Change the permission of a file to r-xr--r--

chmod 544 filename

Q4. Change the group permission of a file to writable.

chmod g+w filename

Q5. Change the ownership of a file to user smith and group matrix.

chown smith.matrix filename

Q6. ls –l on a file shows
-rwxr-xr-- 1 anderson matrix 2352 Nov 12 15:16 abc.sh

Which permissions do the user Anderson have
read write and excecute

Which permissions are granted to members of the group matrix
read and execute

Which permission are granted to user gump who is not a member of group matrix      

read only