A user reports they cannot execute a script named 'deploy.sh' even though the file permissions are set to 644. What must you change to enable execution for the owner?
Trap 1: chmod 655 deploy.sh
655 grants read/write to owner, but execute to group and others, which is insecure.
Trap 2: chown u+x deploy.sh
chown changes ownership, not permissions.
Trap 3: chmod +w deploy.sh
This adds write permission, not execute permission.
- A
chmod 655 deploy.sh
Why it fails: 655 grants read/write to owner, but execute to group and others, which is insecure.
- B
chmod 744 deploy.sh
744 provides rwx for the user and r-- for group/others.
- C
chown u+x deploy.sh
Why it fails: chown changes ownership, not permissions.
- D
chmod +w deploy.sh
Why it fails: This adds write permission, not execute permission.