A question on Linux file permission commands: (i) Anyone can execute the file named "sample". (ii) Only the owner or the user group can edit the…

A question on Linux file permission commands:

(i) Anyone can execute the file named "sample".

(ii) Only the owner or the user group can edit the file.

(iii) None other than the other users can read the file.

Write a shell command based on those conditions.

From the BPDB Assistant Engineer (CSE) 2018 – Written exam, question 1 of 5.

More from this paper