- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- VI -- with no shell escape
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 06:35 AM
03-13-2001 06:35 AM
I have been looking for a modified version of VI which does not allow a shell escape. Has anyone come across any such shareware ?
The idea behind this is to let a set of users run VI ( as root) using SUDO.
Thanks In Advance,
Bhaskar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 06:47 AM
03-13-2001 06:47 AM
Re: VI -- with no shell escape
for example. Vi in versions such as elvis
are open source. You can also get script based
editors source on much of the linux on a floppy sites.
Have a look on freshmeat.net or the hpux
porting archive for alternative editors.
http://hpux.connect.org.uk/hppd/hpux/Editors/alpha.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 06:54 AM
03-13-2001 06:54 AM
Re: VI -- with no shell escape
you could set the SHELL parameter to /bin/false before entering vi, but I don't guarantee that this trick is "fool"proof.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 07:20 AM
03-13-2001 07:20 AM
Re: VI -- with no shell escape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 09:17 AM
03-13-2001 09:17 AM
Re: VI -- with no shell escape
Stephan , How can we pass on a file name to the vi when used in shell -- I am getting bus error while trying to do so ( even while using vi in a script -- which in turn defined as the login shell). The Idea is to give access only to the selected files as root. So passing on the filename is important too.
I am still hoping we can get this work thru the standard vi, if not I will take Bill's suggestion.
Thanks you all for your kind replies..
-Bhaskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 11:51 PM
03-13-2001 11:51 PM
Re: VI -- with no shell escape
SHELL=/bin/false
vi $myfile
from the command line:
you could create an alias for vi:
alias vi="SHELL=/bin/false; /usr/bin/vi"
but this leaves the SHELL parameter set to /bin/false
and secondly if they have access to the command line; what's the use of denying shell access from within vi?
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2001 12:11 AM
03-14-2001 12:11 AM
SolutionIf you are looking for a modified version of vi which does not allow a shell escape, then you should be using rvim.
rvim is alike the vim/vi, but with restrictions. It will not be possible to start shell commands, or suspend vim.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2001 04:50 AM
03-14-2001 04:50 AM
Re: VI -- with no shell escape
luckily enough it's already ported:
http://hpux.connect.org.uk/hppd/hpux/Editors/vim-5.7/
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2001 05:11 AM
03-15-2001 05:11 AM
Re: VI -- with no shell escape
thanks again