A Linux workstation technician is configuring security permissions on a shared processing script located at `/data/reports/process.sh`. Currently, the file has permissions set to `-rw-r--r--` and is owned by `root:analytics`. Members of the `analytics` group report that they can view the script but cannot execute it. The technician must grant execute permissions to both the file owner (`root`) and the group (`analytics`), while revoking all access for all other users (`others`). Which of the following shell commands should the technician execute to achieve this objective?
- chmod 750 /data/reports/process.shAnswer
- Bchmod 775 /data/reports/process.sh
- Cchown analytics:root /data/reports/process.sh
- Dchmod 640 /data/reports/process.sh
Answer
Executing chmod 750 /data/reports/process.sh correctly sets file permissions to rwxr-x---, providing execute access to owner and group while blocking others.
The command 'chmod 750 /data/reports/process.sh' correctly sets the permission bits to 7 (rwx) for the file owner, 5 (r-x) for the assigned group, and 0 (---) for all other users, satisfying all scenario requirements.
Step-by-Step Solution
Key Concept
Linux file permissions and octal notation using chmod