ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 204 - XK0-005 discussion

Report
Export

Users in the human resources department are trying to access files in a newly created directory. Which of the following commands will allow the users access to the files?

A.
chattr
Answers
A.
chattr
B.
chgrp
Answers
B.
chgrp
C.
chage
Answers
C.
chage
D.
chcon
Answers
D.
chcon
Suggested answer: B

Explanation:

The chgrp command is used to change the group ownership of files and directories. By using this command, the administrator can assign the files in the newly created directory to the human resources group, which will allow the users in that group to access them. The other commands are not relevant for this task. For example:

chattr is used to change the file attributes, such as making them immutable or append-only1.

chage is used to change the password expiration information for a user account2.

chcon is used to change the security context of files and directories, which is related to SELinux3.

The CompTIA Linux+ Certification Exam Objectives mention that the candidate should be able to ''manage file and directory ownership and permissions'' as part of the Hardware and System Configuration domain4.

The web search result2explains how to use the chgrp command with examples.

The web search result3compares the chmod and chgrp commands and their effects on file permissions.

asked 02/10/2024
Talal Elemam
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first