A system administrator is configuring permissions and group ownership on a Linux server for a script named deploy.sh. The administrator needs to grant read and execute access specifically to the group owner while leaving user and others permissions unchanged. Additionally, the group ownership of deploy.sh must be changed to the webdevs group. Which of the following commands should the administrator execute to accomplish these tasks? (Select TWO.)
- chmod g+rx deploy.shAnswer
- chgrp webdevs deploy.shAnswer
- Cchown deploy.sh webdevs
- Dchmod 777 deploy.sh
Answer
The administrator must execute 'chmod g+rx deploy.sh' to update group access permissions and 'chgrp webdevs deploy.sh' to reassign group ownership.
Granting specific permissions to a group without altering user or world access requires symbolic permission assignment using 'chmod g+rx'. Changing group ownership independently of user ownership is accomplished using the 'chgrp' command.
Step-by-Step Solution
Key Concept
Linux file permission modification using symbolic mode and group ownership management.