How to prevent VI from getting a shell?
Matthew Farwell
dylan at ibmpcug.co.uk
Tue Sep 18 17:14:35 AEST 1990
In article <1990Sep17.210110.26060 at robobar.co.uk> ronald at robobar.co.uk (Ronald S H Khoo) writes:
>In article <570 at DIALix.UUCP> bernie at DIALix.oz.au (Bernd Felsche) writes:
>> set SHELL in the environment to something which doest nothing, say
>> /bin/true. vi forks-execs whatever SHELL is defined to be, or the
>> shell if undefined.
>I don't know about *your* version of vi, but mine lets you defeat this
>by doing :set shell=/bin/sh
>I got around the problem by binary patching out the call to fork() in
>vi. Ugh. Also, I never found a way to defeat letting the user read and
>write files other than the current file. Any offers ?
#ifdef PLUG_ELVIS
You install elvis, like I will when I get around to it + people who
know how to break vi have a go at breaking it. (subtle hint ron).
Elvis is nice + easy to disable commands. I actually quite like it.
#endif
Dylan.
--
Matthew J Farwell | Email: dylan at ibmpcug.co.uk
The IBM PC User Group, PO Box 360,| ...!uunet!ukc!ibmpcug!dylan
Harrow HA1 4LQ England | CONNECT - Usenet Access in the UK!!
Phone: +44 81-863-1191 | Sun? Don't they make coffee machines?
More information about the Comp.unix.questions
mailing list