In UNIX, files are protected using a 9-bit permission mode ("rights bits"). Consider the statements: (I) A mode of 641 (octal) means the owner can read and write the file, other members of the owner's group can only read it, and all other users can only execute it. (II) A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access. Which of the following is correct?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. Both I and II are correct
Explanation
Decoding octal 641 digit by digit as owner/group/other: 6 = rw- (owner can read and write), 4 = r-- (group can only read), 1 = --x (others can only execute) — this matches statement I exactly. Decoding octal 100: 1 = --x (owner: execute only, no read/write), 0 = --- (group: no access), 0 = --- (others: no access) — the owner gets only execute permission and no one else is granted anything, matching statement II's claim that it allows only execution and prohibits all other access. Both octal-to-permission decodings check out, so both I and II are correct, option (iii).More Database Management Systems questions
- A disk head is initially positioned at track 32. The disk I/O request queue, in arrival order, is: 98, 37, 14, 124, 65, 67. Using the FCFS…
- Consider the following three relations Employee(eid, eName), Comp(cid, cName), Own(eid, cid). Which of the following relational algebra exp…
- Consider R(A, B, C, D, E) be relation with following dependencies: C->F, E->A, EC->D, A->B. Which of the following is a key for R ?
- In a relational database, which one of the following is CORRECT:
- An alternate key in database table is also called
- In concurrency control, phantom problem may occur, when-