home *** CD-ROM | disk | FTP | other *** search
- Before running the script 'rvi_install', read the introductory comments
- in both 'rvi.c' and 'rvi_install'. These comments will confer a feel
- for what this package is intended to do and how it does it.
-
- As distributed, 'rvi' allows users to reach an interactive RESTRICTED
- shell. If you don't want this to happen, then remove the files 'rsh'
- and 'sh' in the "rvi-directory". If you need further customization,
- read on:
-
- -------------------------------------------
-
- The following material is intended for those who want or need to offer
- restricted-'vi' users more flexibility than is provided by the bare editor,
- as for instance allowing access to specified filters to be used in
- processing text within the editor:
-
- There's something you should know about the way 'vi' handles the ":!"
- and "!" shell escapes: the command you specify isn't invoked directly,
- instead 'vi' calls *shell* to execute the command, with the syntax
-
- *shell* -c "<entire-command-line>"
-
- The reason "*shell*" is enclosed in asterisks is that the shell we're
- talking about is 'vi's own internal variable "shell", which is set via the
- ":set shell=whatever" command in 'vi'. This internal variable overrides
- the environment variable $SHELL, although by default it starts out with
- the value of $SHELL.
-
- If all you're interested in is letting a restricted user have a fullscreen
- editor, then no problem. However, if you want your restricted user to
- be able to use 'vi's filtering capabilities, or if your restricted user
- must be able to run shell programs from within 'vi', then be aware that
- included in this package is a counterfeit shell, called "./sh", that
- invokes "./rsh" with the same arguments as were passed to "./sh". The
- effect of all this is that a user's "!-escape" commands are executed
- as if they had been issued to /bin/rsh with the "-c" option-switch,
- always. The user can't avoid the invocation of 'rsh' by his own action.
- However, if the user's command is the name of a shell script, 'rsh' will
- execute the script as if it were /bin/sh; be aware of this. If it all
- seems like doubletalk, read up on rsh(C) [or perhaps rsh(1)] and sh(C)
- [sh(1)].
-
- The main thing to remember here is that if you absolutely, positively,
- want to bar a restricted user from access to any sort of interactive
- shell, even the restricted shell, then you should remove the supplied
- program "sh" and undo the link or copy of "rsh" into the "rvi-directory".
- If you do this, then however the user won't be able to use 'vi's ability
- to filter text through external commands.
-