To change the access mode of myfile to rwxr-r- which command is used
Answers
Answered by
0
To change the access mode, we use chmod(filename,mode).
To change mode of myfile to 'rw-rw-r–' (ie. read, write permission for user - read,write permission for group - only read permission for others) we give the args as:
chmod(myfile,0664) .
Each operation is represented by discrete values
'r' is 4
'w' is 2
'x' is 1
I hope that it will help you.
Similar questions