Alternative editors to vi (for restricted shell accounts)

Alternative editors to vi (for restricted shell accounts)

Post by Russell Smile » Tue, 30 Jul 1996 04:00:00

I have set up a restricted shell account to allow users across the
company to edit a specific file. Fortunately this account does not need
any special privileges above being able to write to this file. However
using vi as the editor means that while the user is logged on they can
still load up other files to at least read.

Is there an alternative editor to vi that can be "signalled" to
exclusively edit a file and thus restrict a user to editing that file?
Can vi do this? My reading of the man pages suggested it cannot.

Thanks for your help.


: RF Design Engineer      :  Fax:        +64 3 358 3903 :
: Mobile Radio Division   :  Phone:      +64 3 358 6662 :
: Tait Electronics Ltd    :                             :


Alternative editors to vi (for restricted shell accounts)

Post by Brian S. Craigie - Unix SA - NEC - Scotla » Tue, 30 Jul 1996 04:00:00

I don't know what you need this for, but wouldn't you be better taking a
different approach?

Giving people across the company a chance to edit a file would not stop more
than one person editing it at the same time, and the file contents would then
not reflect all the edits done.

How about a wrapper - depends if the users just add text to the file, or
actually edit it.  I'm sure you could knock up a quick script to input text and
append it to the file, or use sed (in the script) to make changes the user

It's a bit difficult when we don't know how the file is used, but hope this


Best Regards,

Brian Craigie

Unix Sys Admin

My views are not necessarily those of my employers...

<<< Would sixty gallons be sufficient? -- Robby the Robot >>>


1. An alternative editor to vi/emacs

In our short UNIX/C course I'm constantly asked about simpler text editors,
as alternatives to having to learn vi or emacs. Someone here mentioned
the ded editor but I cannot find it in any of the usual archives. Does any
one know of a simple, tty-based editor for UNIX?


Dr David England,                   GIST (Glasgow Interactive Systems cenTre),

phone: +44 (0)41 339-8855 ext 4934  University of Glasgow, Glasgow, G12 8QQ, UK.
fax: +44 (0)41 330 4913             URL:

2. How does FreeBSD identify ISA cards?

3. Restricted Shell Account

4. WAS: Missing lib for FTPTools (

5. Temporary restricted shell accounts: howto

6. Kernel compile fails at "make install_modules"

7. HELP: DAT should be useable by specific account (restricted shell, etc)

8. Once Again - Free nessus security probes! External vulnerability assessments!

9. Is there a vi editor without escaped to shell?

10. vi Editor and Shell

11. Root shell and vi editor

12. Restricted (or Captive) Account/Shell

13. Restricted Bash Shell Accounts