EK on Nostr: So if I `chroot` into some directory in a server config, and I want to run CGI ...
So if I `chroot` into some directory in a server config, and I want to run CGI scripts, do I need to symlink / hardlink `/bin/ksh` into the chroot?
Say my config is:
- slowcgi socket running at /var/gemini/smelly.sock
- gmid config chroots into /var/gemini
- gmid specifies SCRIPT_NAME as /cgi/index.sh
- index.sh is a standars ksh script.
However logs say:
slowcgi[96371]: execve /correct-path-to/index.sh: No such file or directory
#OpenBSD #geminiprotocol
Published at
2024-08-14 21:31:54Event JSON
{
"id": "3456e4d1b7d24cf6195bdf6bf4f7dd8663835df3779096b83be56615c56ba7ba",
"pubkey": "d8b3228a75d59059d118d82bdc593c209f988c88142e5a722b3c7a1c35494619",
"created_at": 1723671114,
"kind": 1,
"tags": [
[
"t",
"openbsd"
],
[
"t",
"geminiprotocol"
],
[
"proxy",
"https://mastodonapp.uk/users/requiem/statuses/112962510150798195",
"activitypub"
]
],
"content": "So if I `chroot` into some directory in a server config, and I want to run CGI scripts, do I need to symlink / hardlink `/bin/ksh` into the chroot? \n\nSay my config is:\n- slowcgi socket running at /var/gemini/smelly.sock\n- gmid config chroots into /var/gemini\n- gmid specifies SCRIPT_NAME as /cgi/index.sh\n- index.sh is a standars ksh script.\n\nHowever logs say:\n\nslowcgi[96371]: execve /correct-path-to/index.sh: No such file or directory\n\n#OpenBSD #geminiprotocol",
"sig": "d86e56b211c07c7c84e33bc2416a4c54cd0d80461558fcf3ba0eb7431b51e2004c85ae7a34fea72d46d3fbf8b5717031fabaed69036e2952886e131acc2f4d29"
}