* Restricting shells...
@ 2004-02-24 17:42 Jens Knoell
2004-02-24 18:51 ` Hal Wigoda
0 siblings, 1 reply; 2+ messages in thread
From: Jens Knoell @ 2004-02-24 17:42 UTC (permalink / raw)
To: Linux Admin
This is kinda tricky:
Situation:
- A webserver, hosting a page which has CGIs enabled
- Not-too-bright webdesigner putting up scripts that allow "escaping", by
i.e. sending a receipient of someone@somewhere;/bin/bash -i
I want to restrict _interactive_ bash shells (other shells are not a concern
yet). Is there _any_ way to do that, short of wrapping bash into a little
program that checks by whom bash got called and with which parameters?
Thanks
Jens
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Restricting shells...
2004-02-24 17:42 Restricting shells Jens Knoell
@ 2004-02-24 18:51 ` Hal Wigoda
0 siblings, 0 replies; 2+ messages in thread
From: Hal Wigoda @ 2004-02-24 18:51 UTC (permalink / raw)
To: Jens Knoell; +Cc: Linux Admin
have the .bash_profile check to see if the user id is the id running the
cgi,
i.e. nobody or whichever user is running apache,
and then exit.
----- Original Message -----
From: "Jens Knoell" <jens@surefoot.com>
To: "Linux Admin" <linux-admin@vger.kernel.org>
Sent: Tuesday, February 24, 2004 11:42 AM
Subject: Restricting shells...
> This is kinda tricky:
>
> Situation:
> - A webserver, hosting a page which has CGIs enabled
> - Not-too-bright webdesigner putting up scripts that allow "escaping", by
> i.e. sending a receipient of someone@somewhere;/bin/bash -i
>
> I want to restrict _interactive_ bash shells (other shells are not a
concern
> yet). Is there _any_ way to do that, short of wrapping bash into a little
> program that checks by whom bash got called and with which parameters?
>
> Thanks
> Jens
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-24 18:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-24 17:42 Restricting shells Jens Knoell
2004-02-24 18:51 ` Hal Wigoda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).