次のディレクトリを検討してください。 drwxrwxr-x 2ルートセールス4096 Jan 1 15:21セールス ディレクトリsales内に作成された新しいファイルがグループsalesによって所有されていることを確認するコマンドはどれですか? (2つ選択してください。)
正解:A,E
Explanation The command chmod g+s sales sets the setgid bit on the directory sales, which means that any new file or subdirectory created within sales will inherit the group ownership of the directory. The command chmod 2775 sales does the same thing, but also sets the permissions of the directory to rwxrwxr-x, whichmeans that the owner, group, and others can read, write, and execute files in the directory. Both commands ensure that new files created within the directory sales are owned by the group sales. The other commands are either invalid or do not affect the group ownership of new files. References: * Linux Essentials - Linux Professional Institute Certification Programs1 * Exam 101 Objectives - Linux Professional Institute