linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Hal Wigoda" <hwigoda@mindspring.com>
To: Jens Knoell <jens@surefoot.com>
Cc: Linux Admin <linux-admin@vger.kernel.org>
Subject: Re: Restricting shells...
Date: Tue, 24 Feb 2004 12:51:26 -0600	[thread overview]
Message-ID: <01a201c3fb07$82b5ef10$616c56d1@DF69MK11> (raw)
In-Reply-To: 003701c3fafd$9ff50250$6f00000a@jenswin2k

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



      reply	other threads:[~2004-02-24 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-24 17:42 Restricting shells Jens Knoell
2004-02-24 18:51 ` Hal Wigoda [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01a201c3fb07$82b5ef10$616c56d1@DF69MK11' \
    --to=hwigoda@mindspring.com \
    --cc=jens@surefoot.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).