Topics / Hardware & Operating Systems
A Linux admin needs to assign read, write, and execute permissions to the owner of a script, but only read and execute to the group and others. Which command achieves this?
Answers
Achmod 644 script.sh
Bchmod 755 script.sh
Cchmod 777 script.sh
Dchmod 744 script.sh
Correct answer: B — chmod 755 script.sh
In octal permission notation, 7 (4+2+1) is rwx for the owner, and 5 (4+1) is r-x for group and others. Thus, 755 is correct.
MIFOTRA exam practicealigned to CompTIA A+ 220-1102·4 marks·Hard