In: Computer Science
Given the following file :
-rw-r--r-- 1 malsaid faculty 74 Oct 20 16:50
a
What will be the file permissions after the following command:
chmod ou+x,g+w,o-r a
To show the wokring of the code chmod ou+x,g+w,o-r a, I created a file name 'a' as in question and executed the command.
As you can see, the file permission changes to rwxrw---x
chmod is the command and system call which is used to change the access permissions of file system objects
In chmod ou+x,g+w,o-r,
ou+ will give others and user the permission to execute the file which is represented by 'x'.
g+w will give write permssion to group where 'g' represents group.
o-r will remove read permission from others.
If you have any doubts, leave a comment below and I'll help you out.
I hope you were able to understand this and if you did and liked my work, please consider UPVOTING. Thank you