COMPUTER SCIENCE AND ENGINEERING
UNIX
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
She can change the group that owns the file.
|
|
She can open the file, make changes, and save the file.
|
|
She can change ownership of the file.
|
|
She can run the file.
|
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].