🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.wizards
Article #6971

Re: O Wizards, is there vi w/out shell?

#6971
From: David Bath
Date: Mon, 04 Jan 1993 13:48
41 lines
2015 bytes
rickert@mp.cs.niu.edu (Neil Rickert) writes:

>In article <67@nearside.UUCP> shwake@nearside.UUCP (Raymond Shwake) writes:
>>dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
>>
>>	I like to set SHELL to /bin/echo; the only point is to invoke
>>	something innocuous.
>>
>>>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.
>>
>>	Quite true. What I've done is binary patch the "set" string to
>>	include an embedded space (like "s x"). Seems to work.

>Try doing

>	:r !command

>chances are you find that still uses /bin/sh, regardless of your SHELL
>environment.

Listen guys, get elvis (from GNU) or xvi (from SIMTEL::msdos/editors -
a not too bad windowed vi for char terminals), and remove the offending
code, compile and use this.  Then make the REAL vi executable only by
appropriate people.

I did a similar job on kermit, removing ability to delete files, etc, etc
, etc - took a couple of hours.

This is why having sources is so damn handy ?


David T. Bath	Email:dtb@otto.bf.rmit.oz.au	Phone:03-3477511
Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
"Failure to emulate is the best revenge" - Marcus Aurelius

-- 
David T. Bath	Email:dtb@otto.bf.rmit.oz.au	Phone:03-3477511
Global Technology Corporation, 179 Grattan St, CARLTON, VIC, 3153, AUSTRALIA
"Failure to emulate is the best revenge" - Marcus Aurelius
Technical Details
Message-ID: <dtb.726155316@otto>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!otto!dtb
References: <Bz0x63.Fqq@ucunix.san.uc.edu> <1992Dec11.180118.1144@leland.Stanford.EDU> <67@nearside.UUCP> <1992Dec17.193838.15886@mp.cs.niu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!goanna!escargot!otto!dtb
From: dtb@otto (David Bath)
Newsgroups: comp.unix.wizards
Subject: Re: O Wizards, is there vi w/out shell?
Message-ID: <dtb.726155316@otto>
Date: 4 Jan 93 13:48:36 GMT
References: <Bz0x63.Fqq@ucunix.san.uc.edu> <1992Dec11.180118.1144@leland.Stanford.EDU> <67@nearside.UUCP> <1992Dec17.193838.15886@mp.cs.niu.edu>
Organization: RMIT Computer Centre
Lines: 41
NNTP-Posting-Host: otto.bf.rmit.oz.au