Free LPI 010-160 Actual Exam Questions - Question 7 Discussion
Question No. 7
The current directory contains the following file:
-rw-r—r— 1 root exec 24551 Apr 2 12:36 test.sh
The file contains a valid shell script, but executing this file using ./test.sh leads to this error:
bash: ./test.sh: Permission denied
What should be done in order to successfully execute the script?
-rw-r—r— 1 root exec 24551 Apr 2 12:36 test.sh
The file contains a valid shell script, but executing this file using ./test.sh leads to this error:
bash: ./test.sh: Permission denied
What should be done in order to successfully execute the script?
Select one option, then reveal solution.
US
CG
Carlos G.
2026-02-15
B The file doesn’t have any execute permission set right now, so adding execute bit is the basic fix. Group membership won’t help if the execute bit for the group isn’t set either.
0
NL
Noah L.
2026-02-10
B, since none of the execute bits are set at all right now.
0
SI
Shah I.
2026-01-19
B imo
0