home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!casbah.acns.nwu.edu!navarra
- From: navarra@casbah.acns.nwu.edu (John Navarra)
- Subject: Re: How to make Restrict Shell more safely?
- Message-ID: <1993Jan4.200732.7262@news.acns.nwu.edu>
- Sender: usenet@news.acns.nwu.edu (Usenet on news.acns)
- Nntp-Posting-Host: unseen1.acns.nwu.edu
- Organization: Northwestern University, Evanston Illinois.
- References: <cslee.225.726145569@pds.nchu.edu.tw> <1993Jan4.194925.7364@crd.ge.com>
- Date: Mon, 4 Jan 1993 20:07:32 GMT
- Lines: 44
-
- In article <1993Jan4.194925.7364@crd.ge.com> davidsen@crd.ge.com (bill davidsen) writes:
- > 1. Create the directory /guest/bin, and put all the stuff you want in
- >there, as wellas your shell.
-
- ok.
- > 2. Create the guest user accounts, as /guest/user1, or /guest/joe, or
- >whatever. The sticky bit should be set on these directories, mode 1711
- >is suggested.
-
- ok.
- > 3. Create a .profile file in /guest, *owned by bin*, and link it into
- >each user's home directory. Set permissions 644. This prevents the user
- >from changing or deleting the profile. In the profile set the PATH to
- >/guest/bin and set the variable *readonly*
- > PATH=/guest/bin
- > export PATH
- > readonly PATH
- >
- ok.
- > 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.
-
- > 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.
-
- -tms
-
- --
- You can get further with a kind word | You can get further with a kind word
- and a gun than a kind word alone. | and a phaser than a kind word and a gun.
- --al capone | -- John Navarra
- =======From the Lab of the MaD ScIenTIst....navarra@casbah.acns.nwu.edu========
-