New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA XK0-005 Exam - 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:

0/2000 characters
Cordell
3 months ago
Seems straightforward, but I’m surprised it’s that simple!
upvoted 0 times
...
Simona
3 months ago
Wait, can you really change ownership like that with D?
upvoted 0 times
...
Isadora
3 months ago
Definitely A, but I'm not sure about E.
upvoted 0 times
...
Douglass
4 months ago
I think E is also necessary for access.
upvoted 0 times
...
Lawana
4 months ago
Option A is the right choice for group ownership!
upvoted 0 times
...
Lorean
4 months ago
I feel like `chown Finance Q1/` is not the right answer since we want to maintain access for the business group, but I could be wrong.
upvoted 0 times
...
Benedict
4 months ago
I'm a bit confused about the difference between `chmod g+s` and `chmod u+s`. I feel like one of them is definitely the right choice, but I can't recall which one.
upvoted 0 times
...
Cordelia
4 months ago
I remember practicing a similar question about directory permissions, and I think `chmod g+x` might be necessary to ensure the group can access the directory.
upvoted 0 times
...
Delila
5 months ago
I think we need to use the `chmod g+s` command to set the group ID on the directory, but I'm not entirely sure if we need another command for preserving access.
upvoted 0 times
...
Lashon
5 months ago
I've got a good handle on file permissions, so I think I can tackle this one. Time to put my Linux skills to the test!
upvoted 0 times
...
Viola
5 months ago
The question is asking for two commands, so I'll need to make sure I select the right combination to meet all the requirements.
upvoted 0 times
...
Jarvis
5 months ago
I'm a bit confused on the difference between the setuid and setgid bits. I'll need to review that before deciding on the best approach.
upvoted 0 times
...
Geoffrey
5 months ago
Okay, let's see. We need to give the finance group ownership of files in the Q1 directory, but preserve access for the business group. I think the key is using the setgid bit.
upvoted 0 times
...
Helaine
5 months ago
Hmm, this looks like a tricky one. I'll need to think through the permissions carefully to make sure I don't accidentally lock out the business group.
upvoted 0 times
...
Mohammad
1 year 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
1 year 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
1 year 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
1 year 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 year ago
Definitely, with those permissions set, the finance group should be able to collaborate effectively on those quarterly reports.
upvoted 0 times
...
Carey
1 year 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
1 year 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
1 year ago
I think the answer is A) chmod g+s Q1/
upvoted 0 times
...
Lilli
1 year 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 year ago
User4: Yeah, using B) and D) together might be overkill. A) and E) should be sufficient.
upvoted 0 times
...
Rickie
1 year ago
User3: Chowning to Finance with D) might change the group ownership, but it's not necessary in this case.
upvoted 0 times
...
Paola
1 year 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
1 year ago
User1: I think A) and E) are the correct commands to use.
upvoted 0 times
...
...
Fallon
1 year 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 year ago
That makes sense, it ensures the finance group has ownership and access while preserving the business group's access.
upvoted 0 times
...
Mitzie
1 year ago
Setting the setgid bit with g+s and giving execute permission with g+x is the way to go.
upvoted 0 times
...
Dino
1 year ago
I agree, A) and E) are the correct answers.
upvoted 0 times
...
...

Save Cancel