Security

getfacl on /opt/deploy/report.sh shows the entry user:dev:rwx followed by the comment #effective:r--. The user dev cannot modify the script. Which command restores dev's intended write and execute access?

Show the answer

Correct answerD. setfacl -m m::rwx /opt/deploy/report.sh

The ACL mask caps the effective permissions of named-user and group entries, and here it is r--. Setting it with setfacl -m m::rwx lifts the cap. Changing owner or other bits leaves the mask untouched.