MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If the file is write-protected and the directory has to write permission then we cannot delete the file.
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -If the file is write-protected and the directory has to write permission then we cannot delete the file. Explanation: The term ‘write-protected’ has a limited meaning in the UNIX file system. A file which is write protected cannot be written, but it can be removed if the directory has to write permission.

Detailed explanation-2: -The Write Attributes permission does not imply creating or deleting files or folders, it only includes the permission to make changes to the attributes of a file or folder.

Detailed explanation-3: -To delete a file requires write permission on the file for unrestricted deletion and write/execute permission on the directory. If there is no write permission on the file, override is requested.

Detailed explanation-4: -Full control: Allows users to read, write, change, and delete files and subfolders. In addition, users can change permissions settings for all files and subdirectories. Modify: Allows users to read and write of files and subfolders; also allows deletion of the folder.

There is 1 question to complete.