home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!dkeisen
- From: dkeisen@leland.Stanford.EDU (Dave Eisen)
- Subject: Re: O Wizards, is there vi w/out shell?
- Message-ID: <1992Dec11.180118.1144@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (USENET News System)
- Organization: Sequoia Peripherals, Inc.
- References: <Bz08qF.BHE@cs.uiuc.edu> <Bz0x63.Fqq@ucunix.san.uc.edu>
- Date: Fri, 11 Dec 92 18:01:18 GMT
- Lines: 36
-
- >>Well, basically, what I'm looking for is a vi text editor, or emacs
- >>acting like vi, for that matter, that will NOT allow shell commands, as
- >>this tends to allow people to give themselves shell access when they should
- >>not really have it -- in a Unix BBS situation. Does anyone know how you
- >>would do this?
-
- >How about setting the SHELL environment variable to something like
- >/bin/false. Don't know about other Unixs, but this appears to work
- >for both vi and gnuemacs on the Ultrix system that I posted this from.
-
- This doesn't do any good. The user can still type :set shell=/bin/csh
- and give himself a shell whenver he wants. The SHELL environment
- vaiable is only used to initialize the internal vi shell variable.
-
- The only way I know of to do what you want it to patch the binary
- to prevent the user from setting his shell. And I'm not even 100%
- sure that will work.
-
- Hey UNIX vendors out there!
-
- What the poster wants to do is a common and very reasonable
- request. There are many times when you want to give users
- access to an editor or a mail reading program or a pager,
- but you don't want to give him access to all of the commands
- on the system.
-
- Why not add an option to vi to tell it not to allow shell
- escapes?
-
-
-
- --
- Dave Eisen Sequoia Peripherals: (415) 967-5644
- dkeisen@leland.Stanford.EDU Home: (415) 321-5154
- There's something in my library to offend everybody.
- --- Washington Coalition Against Censorship
-