Question: n Linux, if a file has the permission mode 0 , which means the owner has no read, write or execute permission on that file.
n Linux, if a file has the permission mode which means the owner has no read, write or execute permission on that file. However, if the owner of such a file edits the file using a text editor like vi the owner can indeed overwrite file using the forcewrite option. This behavior can best be explained by:
Question options:
the editor will crash, if we try to open such a file
users may not save the file at all since there is no permission to write
Even though the file cannot be directly saved by the editor due to the lack of write permission, the editor finds a work around such as temporally changing the file permissions, then saving, and reverting it back to the original permissions, if the editor is running with the effective ID of the same user that also owns the file.
the editor will crash, if we try to save a file without having the permission to write
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
