You work as a Network Administrator for Net Perfect Inc. The company has a Linux-based
network.
You have created a folder named Report.
You have made David the owner of the folder. The members of a group named JAdmin can
access the folder and have Read, Write, and
Execute permissions. No other user can access the folder. You want to ensure that the members
of
the JAdmin group do not have Write permission on the folder. Also, you want other users to have
Read permission on the Report folder.
Whizh of the following commands will you use to accomplish the task?
A.
chmod 777 report
B.
chmod 754 report
C.
chown david.jadmin report
D.
chmod 555 report
Explanation:
The chmod command is used to change or edit file/folder permissions in Linux. In order to
accomplish the task, you will have to run the following command:
chmod 754 report
This will provide Read, Write, and Execute permissions to the owner (in this case, David), Read
and
Execute permissions to the members of the JAdmin group, and only Read permission to other
users.
Answer option D is incorrect. This will provide Read, Write, and Execute permissions to David, to
the members of the JAdmin group, and to other users.
Answer option A is incorrect. This will provide Read and Execute permissions to David, to the
members of the JAdmin group, and to other users.
Answer option C is incorrect. The chown command is used to change the ownership on files or
folders.