The correct command is chmod 751 backup.sh. In Linux, file permissions can be set using a three-digit octal number where each digit represents a permission set for the user (owner), group, and others, respectively.
The required permissions are calculated as follows:
Combining these values results in the octal code 751.
chmod 755 backup.sh is incorrect because it would grant read and execute permissions to 'others', violating the policy that they should only have execute permission.
chmod 651 backup.sh is incorrect because it would deny the execute permission for the owner (read + write = 6), preventing the owner from running the script.
chmod 740 backup.sh is incorrect because it would only grant read permission to the group (denying the required execute permission) and no permissions at all to 'others'.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the 'chmod' command do in Linux?
Open an interactive chat with Bash
How does the octal system work for file permissions?
Open an interactive chat with Bash
What is the difference between symbolic and numeric modes in 'chmod'?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access