home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5195 next >
Encoding:
Text File  |  1992-12-11  |  1.9 KB  |  48 lines

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