Which of the following sets has the other permissions highlighted?
rw-rw-r--
rw-rw-r--
rw-rw-r--
is the correct answerrw-rw-r--
For more Questions and Answers go to the below link:
Linux Unhatched Assignments Assessment Exam Answers
The correct answer for highlighting the “other permissions” is:
rw-rw-r--
Explanation:
In a Linux file permissions string like rw-rw-r--
, the “other permissions” are represented by the third set of three characters. Here’s the breakdown:
Structure of Permissions
- First character: File type:
-
: Regular file.d
: Directory.l
: Symbolic link.
In this case,
-
indicates a regular file. - Next 9 characters: Permissions divided into three sets of three:
- Owner Permissions (First set):
rw-
- Group Permissions (Second set):
rw-
- Others Permissions (Third set):
r--
- Owner Permissions (First set):
Other Permissions in rw-rw-r--
- Third set of three characters (
r--
):r
: Others (everyone who is not the owner or in the group) can read the file.-
: Others cannot write to the file.-
: Others cannot execute the file.
This means that “others” (all users outside the owner and group) can only read the file, but cannot modify or execute it.
Why rw-rw-r--
Highlights Other Permissions
In the permission string, the third set of characters (r--
) explicitly defines the permissions for others. This makes rw-rw-r--
the correct choice for highlighting other permissions.
Practical Examples
- Viewing Other Permissions: Use the
ls -l
command to check file permissions:Output:
r--
(other permissions) means “others” can only read the file.
- Changing Other Permissions: Use the
chmod
command witho
(for others) to modify other permissions:- Remove read permission for others:
- Add execute permission for others:
Summary
The other permissions in rw-rw-r--
are represented by r--
, meaning “others” can only read the file. Since the third set of characters highlights the other permissions, rw-rw-r--
is the correct answer.