home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ariel!davidsen
- From: davidsen@ariel.crd.GE.COM (william E Davidsen)
- Newsgroups: comp.unix.shell
- Subject: Re: How to make Restrict Shell more safely?
- Message-ID: <1993Jan5.164018.14914@crd.ge.com>
- Date: 5 Jan 93 16:40:18 GMT
- References: <cslee.225.726145569@pds.nchu.edu.tw> <1993Jan4.194925.7364@crd.ge.com> <1993Jan4.200732.7262@news.acns.nwu.edu>
- Sender: usenet@crd.ge.com (Required for NNTP)
- Reply-To: davidsen@crd.ge.com (bill davidsen)
- Organization: GE Corporate R&D Center, Schenectady NY
- Lines: 36
- Nntp-Posting-Host: ariel.crd.ge.com
-
- In article <1993Jan4.200732.7262@news.acns.nwu.edu>, navarra@casbah.acns.nwu.edu (John Navarra) writes:
-
- | > 4. Remember that some programs give shell access via escapes, like vi,
- | >emacs, etc. Some versions use PATH and are safe, some use /bin/sh and
- | >are not at all safe.
- |
- | Yeah, here is the BIG problem. If you want to let restricted users have
- | access to vi, mail, and news, you have the shell escape problem. This
- | is not a trivial thing to fix -- especially if you don't have the source.
-
- Well, I have source for rn and Microemacs, so I can give people news
- and a good editor. It may not be the editor they like best, but it's
- there. I could grab one of the vi clones like vile, stevie or viper and
- hack that, too. All you need is to be sure which sh is used.
-
- | > 5. The *really* safe way to have guest users is to run them in a tiny
- | >system of their own using chroot. It is very hard to do this without
- | >losing a lot of functionality, however, so I don't do that.
- |
- | Yeah -- try ftp. Really, if this is the kind of atmosphere you want
- | your general users to have, why give them UNIX accounts at all? Run some
- | server-client which connects to your machine, brings down news, mail, or
- | whatever, and let the user fiddle with it on his own machine where he can
- | have as much functionality/security he wants.
-
- The problem is that many users don't have their own machine or are
- connected via low bandwidth line. And many people who want to allow
- guests don't want to go to a huge effort providing fancy access modes.
- The restricted shell is a reasonable compromise.
-
- BTW: you don't really need source to fix programs giving shell access,
- a good binary file editor (I use bpe) will allow you to disable the
- feature or restrict it. A bit of work, but not impossible.
- --
- bill davidsen, GE Corp. R&D Center; Box 8; Schenectady NY 12345
- Keyboard controller has been disabled, press F1 to continue.
-