<?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: Printer Access in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670815#M915946</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The /usr/bin/lp script should be 0755 and owned by root since it must be an executable script. &lt;BR /&gt;&lt;BR /&gt;The /usr/bin/lp.bin script should retain its permissions and be 4555 (4 for setuid) and owned by root.&lt;BR /&gt;&lt;BR /&gt;There is no security implications (ie. security level will be same as before the change) because you are not modifying the binary (known now as /usr/bin/lp.bin and previously as /usr/bin/lp) or its permissions. In addition, the shell script has no setuid/setgid bits on (thus not subjected to buffer overflow vulnerability issues which cause root compromises).&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Mon, 25 Feb 2002 07:28:20 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-02-25T07:28:20Z</dc:date>
    <item>
      <title>Printer Access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670812#M915943</link>
      <description>Is it possible to restrict the printing&lt;BR /&gt;of documents to number of pages or size&lt;BR /&gt;of documents. For example, restrict the &lt;BR /&gt;user to print only 10 pages or 1mb size&lt;BR /&gt;of docs in HPUX 11.</description>
      <pubDate>Mon, 25 Feb 2002 06:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670812#M915943</guid>
      <dc:creator>Madanagopalan S</dc:creator>
      <dc:date>2002-02-25T06:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670813#M915944</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can write a wrapper script for lp. I did this once for SAP print jobs so that if they exceed a certain size, they are not printed.&lt;BR /&gt;&lt;BR /&gt;I don't have it with my off-hand but it is something like this (simplied version assuming straightforward lp with only filename as parameter):&lt;BR /&gt;&lt;BR /&gt;# mv /usr/bin/lp /usr/bin/lp.bin&lt;BR /&gt;# vi /usr/bin/lp&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;size=`ll $1|awk '{print $5}`&lt;BR /&gt;if [ "$size" -gt "2048" ]&lt;BR /&gt;then&lt;BR /&gt;  echo $1 is too large for printing&lt;BR /&gt;  exit 1&lt;BR /&gt;else&lt;BR /&gt;  /usr/bin/lp.bin $*&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;You can modify this wrapper script to suit your needs.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 25 Feb 2002 07:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670813#M915944</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-25T07:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670814#M915945</link>
      <description>Hi steven (May I call u so),&lt;BR /&gt;   lp command is suid program. If I write&lt;BR /&gt;some shell script for this lp, is there&lt;BR /&gt;any security issue other than binary.</description>
      <pubDate>Mon, 25 Feb 2002 07:21:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670814#M915945</guid>
      <dc:creator>Madanagopalan S</dc:creator>
      <dc:date>2002-02-25T07:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670815#M915946</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The /usr/bin/lp script should be 0755 and owned by root since it must be an executable script. &lt;BR /&gt;&lt;BR /&gt;The /usr/bin/lp.bin script should retain its permissions and be 4555 (4 for setuid) and owned by root.&lt;BR /&gt;&lt;BR /&gt;There is no security implications (ie. security level will be same as before the change) because you are not modifying the binary (known now as /usr/bin/lp.bin and previously as /usr/bin/lp) or its permissions. In addition, the shell script has no setuid/setgid bits on (thus not subjected to buffer overflow vulnerability issues which cause root compromises).&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Mon, 25 Feb 2002 07:28:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670815#M915946</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-02-25T07:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Printer Access</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670816#M915947</link>
      <description>Hi Steven,&lt;BR /&gt;   Thanks for your idea.&lt;BR /&gt; &lt;BR /&gt;   I have developed the script and its working&lt;BR /&gt;fine with notification also..&lt;BR /&gt;&lt;BR /&gt;Thanks .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Feb 2002 08:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-access/m-p/2670816#M915947</guid>
      <dc:creator>Madanagopalan S</dc:creator>
      <dc:date>2002-02-25T08:10:53Z</dc:date>
    </item>
  </channel>
</rss>

