exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 203 discussion

Actual exam question from CompTIA's XK0-005
Question #: 203
Topic #: 1
[All XK0-005 Questions]

A developer wants to ensure that all files and folders created inside a shared folder named /Group00DEV inherit the group name of the parent folder. Which of the following commands will help achieve this goal?

  • A. chmod g+x /Group00DEV/
  • B. chmod g+w /Group00DEV/
  • C. chmod g+r /Group00DEV/
  • D. chmod g+s /Group00DEV/
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Qubert2
8 months, 1 week ago
Selected Answer: D
Set the setgid Bit: To ensure that new files and directories inherit the group of the parent folder, set the setgid bit on the directory using the chmod command: sudo chmod g+s /Group00DEV The g+s option sets the setgid bit. When this bit is set on a directory, any files or subdirectories created within it will inherit the group of the directory rather than the group of the user who created the file.
upvoted 4 times
...
Kashim
10 months, 1 week ago
Selected Answer: D
To ensure that all files and folders created inside the /Group00DEV shared folder inherit the group name of the parent folder, the correct command is: D. chmod g+s /Group00DEV/ Explanation: Set Group ID (SGID) bit (g+s): When the SGID bit is set on a directory, any files or subdirectories created within that directory will inherit the group ownership of the directory rather than the primary group of the user who created the files or subdirectories. This is particularly useful in shared directories where you want all files and directories to remain accessible to a specific group.
upvoted 1 times
...
IFBBPROSALCEDO
1 year, 1 month ago
Selected Answer: C
C. docker run -it -p 8080:80 --name Web001 nginx Explanation: docker run is used to create and start a new container from an image. -it stands for interactive terminal, which keeps the container running and allows interaction. -p 8080:80 maps port 8080 on the host to port 80 inside the container. --name Web001 assigns the name Web001 to the container. nginx specifies the image to use for the container.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...