MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A file named employees.odt has a mode of rw-r ____ r ____ If mireland is not the file’s owner and is not a member of the group that owns this file, what can she do with it?
A
She can open the file and view its contents, but she can’t save any changes.
B
She can open the file, make changes, and save the file.
C
She can change ownership of the file.
D
She can run the file if it’s an executable.
Explanation: 

Detailed explanation-1: -A file named employees. odt has a mode of rw-r–r–. If mireland is not the file’s owner and is not a member of the group that owns this file, what can she do with it? She can open the file and view its contents, but she can’t save any changes.

Detailed explanation-2: -Type chmod permissions file to change permissions of a file or directory.

Detailed explanation-3: -To remove the owner’s write permission, which would prevent you from accidentally overwriting or erasing the file, you would type chmod u-w [filename] or chmod 600[filename].

Detailed explanation-4: -Execute permission allows the user to enter the directory and access any subdirectories.

Detailed explanation-5: -In the example-rw-r–r–, the owner permissions are rw-, indicating that the owner can read and write to the file but can’t execute it as a program. In the example drwxr-xr-x, the owner permissions are rwx, indicating that the owner can view, modify, and enter the directory.

There is 1 question to complete.