<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: VI -- with no shell escape in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504479#M758014</link>
    <description>Have you tried to set the vi as your login shell? This should eliminate the shell you could escape to.</description>
    <pubDate>Tue, 13 Mar 2001 15:20:59 GMT</pubDate>
    <dc:creator>Stefan Schulz</dc:creator>
    <dc:date>2001-03-13T15:20:59Z</dc:date>
    <item>
      <title>VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504476#M758011</link>
      <description>&lt;BR /&gt;I have been looking for a  modified version of VI which does not allow a shell escape. Has anyone come across any such shareware ?&lt;BR /&gt;The idea behind this is to let a set of users run VI ( as root) using  SUDO.&lt;BR /&gt; &lt;BR /&gt;Thanks In Advance,&lt;BR /&gt;&lt;BR /&gt;Bhaskar&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2001 14:35:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504476#M758011</guid>
      <dc:creator>Bhaskar Luitel</dc:creator>
      <dc:date>2001-03-13T14:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504477#M758012</link>
      <description>sorry not a direct answer, but why do you want to do this?  There may be a way to give privilages another way... have a look at SCM&lt;BR /&gt;for example.  Vi in versions such as elvis&lt;BR /&gt;are open source.  You can also get script based&lt;BR /&gt;editors source on much of the linux on a floppy sites.&lt;BR /&gt;&lt;BR /&gt;Have a look on freshmeat.net or the hpux&lt;BR /&gt;porting archive for alternative editors.&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Editors/alpha.html" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Editors/alpha.html&lt;/A&gt;</description>
      <pubDate>Tue, 13 Mar 2001 14:47:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504477#M758012</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-03-13T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504478#M758013</link>
      <description>hmmmz, tricky business,&lt;BR /&gt;&lt;BR /&gt;you could set the SHELL parameter to /bin/false before entering vi, but I don't guarantee that this trick is "fool"proof.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 13 Mar 2001 14:54:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504478#M758013</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-03-13T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504479#M758014</link>
      <description>Have you tried to set the vi as your login shell? This should eliminate the shell you could escape to.</description>
      <pubDate>Tue, 13 Mar 2001 15:20:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504479#M758014</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-03-13T15:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504480#M758015</link>
      <description>Thierry, Is there any way e,g, .exrc or passing some argument that can somehow dictat VI abt the shell escape ( or change its shell from default to to /usr/bin/false).How do we define SHELL to vi ?&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;I am still hoping we can get this work thru the standard vi, if not I will take Bill's suggestion.&lt;BR /&gt;&lt;BR /&gt;Thanks you all for your kind replies..&lt;BR /&gt;-Bhaskar&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2001 17:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504480#M758015</guid>
      <dc:creator>Bhaskar Luitel</dc:creator>
      <dc:date>2001-03-13T17:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504481#M758016</link>
      <description>if in a script:&lt;BR /&gt;  SHELL=/bin/false&lt;BR /&gt;  vi $myfile&lt;BR /&gt;&lt;BR /&gt;from the command line:&lt;BR /&gt;  you could create an alias for vi:&lt;BR /&gt;  alias vi="SHELL=/bin/false; /usr/bin/vi"&lt;BR /&gt;  but this leaves the SHELL parameter set to /bin/false&lt;BR /&gt;  and secondly if they have access to the command line; what's the use of denying shell access from within vi?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Wed, 14 Mar 2001 07:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504481#M758016</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-03-14T07:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504482#M758017</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you are looking for a modified version of vi which does not allow a shell escape, then you should be using rvim.&lt;BR /&gt;&lt;BR /&gt;rvim is alike the vim/vi, but with restrictions. It will not be possible to start shell commands, or suspend vim.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Mar 2001 08:11:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504482#M758017</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-03-14T08:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504483#M758018</link>
      <description>Sounds like Steve found your alternative and &lt;BR /&gt;luckily enough it's already ported:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Editors/vim-5.7/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Editors/vim-5.7/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Wed, 14 Mar 2001 12:50:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504483#M758018</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-03-14T12:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: VI -- with no shell escape</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504484#M758019</link>
      <description>Thanks Steve , Bill  and Theiry for your responses. 'rvim'works great for my purpose.&lt;BR /&gt;thanks again</description>
      <pubDate>Thu, 15 Mar 2001 13:11:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/vi-with-no-shell-escape/m-p/2504484#M758019</guid>
      <dc:creator>Bhaskar Luitel</dc:creator>
      <dc:date>2001-03-15T13:11:17Z</dc:date>
    </item>
  </channel>
</rss>

