in reply to CGI script only works if named index.pl

Both the index.pl and about.pl have exactly the same owner and file permissions

Do they have exactly the same SELinux contexts?


🦛

  • Comment on Re: CGI script only works if named index.pl

Replies are listed 'Best First'.
Re^2: CGI script only works if named index.pl
by almsdealer (Acolyte) on May 27, 2022 at 23:04 UTC

    Ok, I read up on selinux and file contexts, and I think the about.pl file had the wrong context due to me originally creating it in another folder and copying it into cgi-bin. Thank you, I was absolutely stumped!

Re^2: CGI script only works if named index.pl
by almsdealer (Acolyte) on May 27, 2022 at 22:47 UTC
    total 8 -rwxr-xr-x. 1 root root unconfined_u:object_r:httpd_sys_content_t:s0 + 143 May 27 15:49 about.pl -rwxr-xr-x. 1 root root unconfined_u:object_r:httpd_sys_script_exec_t: +s0 167 May 27 09:12 index.pl

    It doesn't look like it!