XK0-005 · Question #623
XK0-005 Question #623: Real Exam Question with Answer & Explanation
The correct answer is A: chmod g+s /home/test. This command will set the setgid bit on the /home/test directory, which means that any file or subdirectory created in the directory will inherit the group ownership of the directory. This way, the group permissions on files created in the directory will be preserved. The chmod c
Question
The group owner of the /home/test directory would like to preserve all group permissions on files created in the directory. Which of the following commands should the group owner execute?
Options
- Achmod g+s /home/test
- Bchgrp test /home/test
- Cchmod 777 /home/test
- Dchown -hR test /home/test
Explanation
This command will set the setgid bit on the /home/test directory, which means that any file or subdirectory created in the directory will inherit the group ownership of the directory. This way, the group permissions on files created in the directory will be preserved. The chmod command is used to change the permissions of files and directories. The g+s option is used to set the setgid bit for the group.
Topics
Community Discussion
No community discussion yet for this question.