Re: Cannot run CGI scripts in user directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 22, 2016 at 6:03 AM, Nick Kew <nick@xxxxxxxxxxxx> wrote:
> On Sun, 2016-05-22 at 04:05 +0100, Alessandro Re wrote:
>
>> #!/usr/bin/sh
>
> Is that a typo or an unusual filesystem?

I don't know if it's unusual or not, but it's not a typo :)

$ ll /usr/bin/sh
lrwxrwxrwx. 1 root root 4 Jan 11 11:02 /usr/bin/sh -> bash

> Does your script run from the commandline
> (as "/path/to/test.cgi", not as "sh test.cgi")?

Yes, the script runs (both with relative and absolute path):

$ ./test.cgi
Content-type: text/plain

Hello

Sorry I forget to specify that in the mail. But even using /bin/sh,
/bin/bash or whatever doesn't work.

BTW, it doesn't work even with compiled binaries (e.g. simple "hello
world" C program).

Cheers
~Ale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux