XK0-005 · Question #1582
XK0-005 Question #1582: Real Exam Question with Answer & Explanation
The correct answer is D: chmod g+s /Group00DEV/. The chmod command is used to change the permissions of files and directories on Linux systems. The g+s option sets the setgid bit on a directory, which means that all files and folders created inside that directory will inherit the group name of the parent directory. This command
Question
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?
Options
- Achmod g+x /Group00DEV/
- Bchmod g+w /Group00DEV/
- Cchmod g+r /Group00DEV/
- Dchmod g+s /Group00DEV/
Explanation
The chmod command is used to change the permissions of files and directories on Linux systems. The g+s option sets the setgid bit on a directory, which means that all files and folders created inside that directory will inherit the group name of the parent directory. This command can help the developer ensure that all files and folders created inside the /GroupOODEV directory have the same group name as /GroupOODEV.
Topics
Community Discussion
No community discussion yet for this question.