Using the octal notation, change the file permissions of mydoc file so that you, the owner of the file, have all permissions, the “group” users have read and execute permissions, and “other” users only have read permission.
The different permissions for given file are
1) read - 4
2) write -2
3) execute -1
The method for setting permissions for the file through octal representation contains values from 0 to 7
The command to set the permissions for given file
chmod permissionvalues filename
chmod 754 mydoc
here 7 (read=4,write=2,execute=1 so owner has all permissions of file)
5(read=4,execute=1 so group users has read & execute permissions)
4(read=4 so others have only read permission)
Get Answers For Free
Most questions answered within 1 hours.