Which command should Nadir enter to ensure that his Perl script will execute securely?

Nadir installed a Perl script in the cgi-bin directory of his Linux system that is running
apache server. NO significant modifications have been made to Apache server. He
accesses a script named test.cgi via a web browser, but the script does not execute, and
Apache server returns a 500 “Internal Server Error” message. Nadir executes the
command is-al on the cgi-bin directory of the problem server. He learns that the
permissions on test.cgi are 700, and that the file is owned by root. Which command
should Nadir enter to ensure that his Perl script will execute securely?

Nadir installed a Perl script in the cgi-bin directory of his Linux system that is running
apache server. NO significant modifications have been made to Apache server. He
accesses a script named test.cgi via a web browser, but the script does not execute, and
Apache server returns a 500 “Internal Server Error” message. Nadir executes the
command is-al on the cgi-bin directory of the problem server. He learns that the
permissions on test.cgi are 700, and that the file is owned by root. Which command
should Nadir enter to ensure that his Perl script will execute securely?

A.
Chmod 711 test.cgi

B.
Chmod test.cgi 100.

C.
Chown apache test.cgi.

D.
Chmod.test.cgi 711

Explanation:
The format is chmod xxx filename. 711 Allows full access to the owner,
and read access to all others.
Incorrect Answers:
B: This is the wrong syntax of the command, and 100 would restrict the owner to readonly and
everyone else is still locked out.
C: Change owner will not correct the situation, it is a permission issue.
D: This is the wrong syntax of the command, the permission number 711 comes beforethe
filename.



Leave a Reply 0

Your email address will not be published. Required fields are marked *