MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
A file named myapp has a mode of 755. If dnelson doesn’t own this file and isn’t a member of the group that owns the file, what can she do with it?
A
She can change the group that owns the file.
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.
Explanation: 

Detailed explanation-1: -A file named myapp has a mode of 755. If dnelson doesn’t own this file and isn’t a member of the group that owns the file, what can she do with it? You need to change the permissions of a file named schedule.

Detailed explanation-2: -755-owner can read/write/execute, group/others can read/execute.

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

Detailed explanation-4: -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.

Detailed explanation-5: -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].

There is 1 question to complete.