COMPUTER SCIENCE AND ENGINEERING
UNIX
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
True
|
|
False
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -A file has permissions as rwx r–-. A user other than the owner cannot edit the file. Explanation: Since the second and third group of permissions of a file are r– and-respectively. So the file is only readable and that too, only by the members of the group to which the file belongs.
Detailed explanation-2: -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-3: -The permissions for emptyfile are rw-r–r–, indicating that the owner can read and write this file, everyone can read it, and no one can execute it. The permissions for the directory veggies2 are rwxr-xr-x, indicating that everyone has read and execute permissions, but only the owner can write to it.
Detailed explanation-4: -The Permission Indicators For example, -rwxr-xr–represents that the owner has read (r), write (w) and execute (x) permission.
Detailed explanation-5: -The answer is setuid (set user ID) programs. Setuid is a Linux and UNIX file permission that makes an executable run with the permissions of the file’s owner, and not as the running user. Setgid (set group ID) programs run with the permissions of the file’s group.