<?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: /usr/bin/pg - without shell access in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538508#M915520</link>
    <description>Hi Fred:&lt;BR /&gt;&lt;BR /&gt;One way around this is to make the application the default shell in /etc/passwd.  Then, if the user is doing 'pg' (or 'more', etc.) and they attempt to "shell-out", they will simply spawn another instance of the application.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Fri, 08 Jun 2001 18:19:23 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-06-08T18:19:23Z</dc:date>
    <item>
      <title>/usr/bin/pg - without shell access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538506#M915515</link>
      <description>HP-UX 10.20...I run a database application which makes use of the /usr/bin/pg command, to display text files.  Some of the unix-savvy users may discover that they can use ! to drop out of the software and get unix access.&lt;BR /&gt;&lt;BR /&gt;Is there a way to disable this in /usr/bin/pg, or is there a supported replacement?&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jun 2001 18:00:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538506#M915515</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-06-08T18:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/bin/pg - without shell access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538507#M915518</link>
      <description>Hi Fred,&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.x's version of pg has the -r option which removes the shell escape. You could then just make a wrapper and you are done. Unfortunately, not available in 10.20.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jun 2001 18:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538507#M915518</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-06-08T18:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/bin/pg - without shell access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538508#M915520</link>
      <description>Hi Fred:&lt;BR /&gt;&lt;BR /&gt;One way around this is to make the application the default shell in /etc/passwd.  Then, if the user is doing 'pg' (or 'more', etc.) and they attempt to "shell-out", they will simply spawn another instance of the application.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 08 Jun 2001 18:19:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538508#M915520</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-06-08T18:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/bin/pg - without shell access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538509#M915521</link>
      <description>Hi again Fred,&lt;BR /&gt;&lt;BR /&gt;I put my thinking cap on and I have another idea. You could replace /usr/bin/pg with the less command (binary) available from:&lt;BR /&gt;&lt;A href="http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/less-358/" target="_blank"&gt;http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/less-358/&lt;/A&gt;&lt;BR /&gt;If you then set an environment var LESSSECURE=1&lt;BR /&gt;(in /etc/profile) the shell escape is removed.&lt;BR /&gt;&lt;BR /&gt;Actually less is quite handy in that your users could then move bidirectionally within the text file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Food for thought,&lt;BR /&gt;Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jun 2001 18:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-bin-pg-without-shell-access/m-p/2538509#M915521</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-06-08T18:25:50Z</dc:date>
    </item>
  </channel>
</rss>

