Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 3 Question 47 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 47
Topic #: 3
[All XK0-005 Questions]

An organization's business office needs to collaborate on quarterly reports and asks the systems administrator to create a finance group. The administrator creates the following directory: drwxrwxr-x Business Business |j096 Oct 15 16:40 Q1

Which of the following commands will allow all members of the finance group to have group ownership of all files created in the Q1 directory while ensuring that members of the business group preserve access? (Select two).

Show Suggested Answer Hide Answer
Suggested Answer: A, D

To ensure all files created in Q1 inherit the group ownership of finance, the chmod g+s command sets the group ID (SGID) on the directory, ensuring new files belong to the group of the directory. chown Finance Q1/ changes the group ownership of Q1 to Finance, allowing Finance group members access. These settings facilitate collaborative permissions as per CompTIA Linux+ recommendations for group-based file sharing. Reference: CompTIA Linux+ Study Guide.


Contribute your Thoughts:

Mohammad
2 months ago
I also think the answer is A) chmod g+s Q1/ because it ensures that members of the business group preserve access
upvoted 0 times
...
Markus
2 months ago
I agree with Elise, setting the setgid bit with g+s will allow all members of the finance group to have group ownership
upvoted 0 times
...
Brunilda
2 months ago
Haha, the finance group, huh? I bet they're all just sitting around in their suits, crunching numbers and drinking coffee. Let's hope they don't accidentally delete the entire directory with their big clumsy fingers!
upvoted 0 times
...
Beatriz
2 months ago
A) and E) for sure! Gotta love those setgid bits. Though I have to say, the finance group better not be trying to create any shady reports in there. I'll be watching them closely!
upvoted 0 times
France
1 months ago
Definitely, with those permissions set, the finance group should be able to collaborate effectively on those quarterly reports.
upvoted 0 times
...
Carey
1 months ago
Yeah, it's important to keep an eye on what's going on in that directory. Can't have any shady business happening.
upvoted 0 times
...
Staci
2 months ago
I agree, setting the setgid bit with A) will ensure group ownership. And E) will give the finance group execute permissions.
upvoted 0 times
...
...
Elise
2 months ago
I think the answer is A) chmod g+s Q1/
upvoted 0 times
...
Lilli
2 months ago
Hmm, I'm not sure about this one. Maybe B) and D) would work too? Chown to change the group ownership and then set the setuid bit. Though that might be overkill.
upvoted 0 times
Xenia
1 months ago
User4: Yeah, using B) and D) together might be overkill. A) and E) should be sufficient.
upvoted 0 times
...
Rickie
1 months ago
User3: Chowning to Finance with D) might change the group ownership, but it's not necessary in this case.
upvoted 0 times
...
Paola
2 months ago
User2: I agree, setting the setgid bit with A) will allow all members of the finance group to have group ownership.
upvoted 0 times
...
Cristen
2 months ago
User1: I think A) and E) are the correct commands to use.
upvoted 0 times
...
...
Fallon
2 months ago
I think the correct answer is A) and E). The g+s sets the setgid bit, ensuring that all new files created in the directory will have the finance group as the group owner. And the g+x gives the finance group execute permission on the directory.
upvoted 0 times
Caitlin
1 months ago
That makes sense, it ensures the finance group has ownership and access while preserving the business group's access.
upvoted 0 times
...
Mitzie
2 months ago
Setting the setgid bit with g+s and giving execute permission with g+x is the way to go.
upvoted 0 times
...
Dino
2 months ago
I agree, A) and E) are the correct answers.
upvoted 0 times
...
...

Save Cancel