<?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: LP Administrators in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426906#M1636</link>
    <description>why not take a look at the Restricted SAM faciility?&lt;BR /&gt;This allows you to set up a restricted verion of SAM, based on the user, and you configure what they can and cannot do.&lt;BR /&gt;sam -r is used to set this up for you.&lt;BR /&gt;man sam will also explain it for you.</description>
    <pubDate>Wed, 21 Jun 2000 14:26:42 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2000-06-21T14:26:42Z</dc:date>
    <item>
      <title>LP Administrators</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426901#M1631</link>
      <description>How can I make a user an LP Administrator ? i.e. - so the user can run lpshut and lpsched commands.&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Wed, 21 Jun 2000 08:58:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426901#M1631</guid>
      <dc:creator>kevin Keegan</dc:creator>
      <dc:date>2000-06-21T08:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: LP Administrators</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426902#M1632</link>
      <description>when executing the command "lpsched" the following error occurs:&lt;BR /&gt;&lt;BR /&gt;   LP: Administrator not in password file  ..... is this your problem  ? If so : &lt;BR /&gt;&lt;BR /&gt;This error can be caused by any of the following:&lt;BR /&gt;&lt;BR /&gt;     1.  No entry in /etc/passwd for lp.  To correct this problem&lt;BR /&gt;         insert the following line into /etc/passwd:&lt;BR /&gt;&lt;BR /&gt;            lp:*:9:2: LP spooler :/usr/spool/lp:/bin/csh&lt;BR /&gt;&lt;BR /&gt;     2.  A corrupt /usr/lib/lpsched file.  To correct this problem&lt;BR /&gt;         retrieve the /usr/lib/lpsched file off a valid backup&lt;BR /&gt;         tape or the HP-UX installation tape.&lt;BR /&gt;&lt;BR /&gt;     3.  The permission on the file /etc/passwd.  To correct this&lt;BR /&gt;         problem execute the command:&lt;BR /&gt;&lt;BR /&gt;           chmod 444 /etc/passwd&lt;BR /&gt;&lt;BR /&gt;PS Has last nights poor performance in Euro 2000 caused you to take up Unix Admin and give up managing the English football team ? ;)</description>
      <pubDate>Wed, 21 Jun 2000 10:11:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426902#M1632</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-06-21T10:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: LP Administrators</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426903#M1633</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you want to provide lpshut/lpsched rights to normal users you have to make a setuid program which starts lpshut/lpshed with the sufficient rights.&lt;BR /&gt;Here my solution:&lt;BR /&gt;Write a little c program:&lt;BR /&gt;main(argc, argv)&lt;BR /&gt;int    argc;&lt;BR /&gt;char **argv;&lt;BR /&gt;{&lt;BR /&gt;  setuid(9); /* lp user */&lt;BR /&gt;  setgid(2); /* bin group */&lt;BR /&gt;  if(strstr(argv[0], "lpshut"))&lt;BR /&gt;    execlp("/usr/sbin/lpshut", "lpshut", 0);&lt;BR /&gt;  if(strstr(argv[0], "lpsched"))&lt;BR /&gt;    execlp("/usr/sbin/lpsched", "lpsched", 0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Compile the c source and put the executable for e. g. in /usr/local/bin/mylpshut&lt;BR /&gt;make a hard link to mylpsched:&lt;BR /&gt;ln /usr/local/bin/mylpshut /usr/local/bin/mylpsched&lt;BR /&gt;Change the owner to root:&lt;BR /&gt;chown root /usr/local/bin/mylpshut&lt;BR /&gt;Set the suid bit:&lt;BR /&gt;chmod 4111 /usr/local/bin/mylpshut&lt;BR /&gt;&lt;BR /&gt;Now everybody can lpshut/lpsched with the new mylpshut/mylpsched.&lt;BR /&gt;&lt;BR /&gt;The c program is quick and dirty:&lt;BR /&gt;no optional arguments are given to the original lpshut/lpsched.&lt;BR /&gt;It's free for you to add more features to it.&lt;BR /&gt;&lt;BR /&gt;Greetings&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Wed, 21 Jun 2000 10:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426903#M1633</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-06-21T10:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: LP Administrators</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426904#M1634</link>
      <description>my mistake for 10.20 I have the following entry in /etc/passwd :&lt;BR /&gt;&lt;BR /&gt;lp:*:9:7::/var/spool/lp:/sbin/sh&lt;BR /&gt;&lt;BR /&gt;good luck !</description>
      <pubDate>Wed, 21 Jun 2000 10:14:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426904#M1634</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2000-06-21T10:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: LP Administrators</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426905#M1635</link>
      <description>As an option, check into sudo.&lt;BR /&gt;This will give the specified user(s) the rights to run specified programs as root.&lt;BR /&gt;&lt;BR /&gt;Can be obtained from the porting archive.</description>
      <pubDate>Wed, 21 Jun 2000 12:52:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426905#M1635</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-06-21T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: LP Administrators</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426906#M1636</link>
      <description>why not take a look at the Restricted SAM faciility?&lt;BR /&gt;This allows you to set up a restricted verion of SAM, based on the user, and you configure what they can and cannot do.&lt;BR /&gt;sam -r is used to set this up for you.&lt;BR /&gt;man sam will also explain it for you.</description>
      <pubDate>Wed, 21 Jun 2000 14:26:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-administrators/m-p/2426906#M1636</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2000-06-21T14:26:42Z</dc:date>
    </item>
  </channel>
</rss>

