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?
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.
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.
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
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
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.
Qubert2
8 months, 1 week agoKashim
10 months, 1 week agoIFBBPROSALCEDO
1 year, 1 month ago