Jorge is a RHEL Engineer at Cisco. He has written a script called router_reboots.sh. He wants to use the chmod command to set the following permissions on the script:
- rwx for the ower
- rx- for the group
- none for all others
He also wants to give Rosalyn (username rosalyns) rwx permissions using the setfacl command. Please show all commands that Jorge will have to execute. Assume that Jorge does this from his non-root account.
To set the specified permissions on the router_reboots.sh script and give Rosalyn rwx permissions using the setfacl command, Jorge will have to execute the following commands:
- To set the permissions:
- $ chmod 750 router_reboots.sh
- This command sets the owner's permissions to rwx (7), group permissions to rw (5), and other permissions to none (0).
- To give Rosalyn rwx permissions using setfacl:
- $ setfacl -m u:rosalyns:rwx router_reboots.sh
This command adds a new access control entry (ACE) for user rosalyns with rwx permissions to the router_reboots.sh script.
Note: Jorge will need to have appropriate permissions to execute these commands. If he does not have appropriate permissions, he may need to use
sudo or ask the root user to perform these tasks.