<?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: setup sudo on HP-UX in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723234#M788324</link>
    <description>Your command alias is incorrect.&lt;BR /&gt;&lt;BR /&gt;Cmd_Alias ADDUSER=/usr/sbin/useradd&lt;BR /&gt;&lt;BR /&gt;Then when you run sudo as user "admin":&lt;BR /&gt;&lt;BR /&gt;/opt/sudo/bin/sudo /usr/sbin/useradd [options]</description>
    <pubDate>Thu, 02 Feb 2006 11:58:36 GMT</pubDate>
    <dc:creator>Paul F. Carlson</dc:creator>
    <dc:date>2006-02-02T11:58:36Z</dc:date>
    <item>
      <title>setup sudo on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723233#M788323</link>
      <description>I am trying to setup a sudo for users to have privilage of creating account . I did the following :&lt;BR /&gt;#User alias specification&lt;BR /&gt;User_Alias PRESIDE = admin&lt;BR /&gt;#Cmd Alias spec&lt;BR /&gt;Cmd_alias ADDUSER = /lhome/root/au, /usr/bin/passwd,/usr/bin/chown, /usr/sbin/useradd, /tcb/files/auth/*&lt;BR /&gt;&lt;BR /&gt;#user privilages spec&lt;BR /&gt;PRESIDE ALL = NOPASSWD: ADDUSER&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;when I try to excute /opt/sudo/bin/sudo /lhome/root/au&lt;BR /&gt;&lt;BR /&gt;I am getting : Password cannot be changed, Reason: cannont access protected password entry. &lt;BR /&gt;&lt;BR /&gt;Can you help?&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Thu, 02 Feb 2006 11:27:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723233#M788323</guid>
      <dc:creator>dgizaw</dc:creator>
      <dc:date>2006-02-02T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: setup sudo on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723234#M788324</link>
      <description>Your command alias is incorrect.&lt;BR /&gt;&lt;BR /&gt;Cmd_Alias ADDUSER=/usr/sbin/useradd&lt;BR /&gt;&lt;BR /&gt;Then when you run sudo as user "admin":&lt;BR /&gt;&lt;BR /&gt;/opt/sudo/bin/sudo /usr/sbin/useradd [options]</description>
      <pubDate>Thu, 02 Feb 2006 11:58:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723234#M788324</guid>
      <dc:creator>Paul F. Carlson</dc:creator>
      <dc:date>2006-02-02T11:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: setup sudo on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723235#M788325</link>
      <description>Hi;&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;#visudo&lt;BR /&gt;&lt;BR /&gt;User_Alias PRESIDE = admin&lt;BR /&gt;&lt;BR /&gt;Cmd_Alias USERADD=/usr/sbin/useradd&lt;BR /&gt;&lt;BR /&gt;Cmd_Alias PASSWD=/usr/bin/passwd&lt;BR /&gt;&lt;BR /&gt;#sudo /usr/sbin/useradd &lt;USER_NAME&gt;&lt;BR /&gt;#sudo /usr/bin/passwd &lt;USER_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Indrajit&lt;BR /&gt;&lt;/USER_NAME&gt;&lt;/USER_NAME&gt;</description>
      <pubDate>Thu, 02 Feb 2006 12:16:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723235#M788325</guid>
      <dc:creator>Indrajit_1</dc:creator>
      <dc:date>2006-02-02T12:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: setup sudo on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723236#M788326</link>
      <description>Thank you for your immediate  response. I was out some palce. Sorry for that.  su to admin helped. and also modified as both of you told me. the only problem now is accessing /tcb/files/auth/[a-z]/* &lt;BR /&gt;&lt;BR /&gt;How do I put it? &lt;BR /&gt;&lt;BR /&gt;PRESIDE ALL = NOPASSWD: /tcb/files/auth/[a-z]/*&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Daniel</description>
      <pubDate>Thu, 02 Feb 2006 17:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723236#M788326</guid>
      <dc:creator>dgizaw</dc:creator>
      <dc:date>2006-02-02T17:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: setup sudo on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723237#M788327</link>
      <description>I guess my question is what are trying to accomplish under the /tcb directory?  It is rare that you should have to directly manipulate those files.  &lt;BR /&gt;&lt;BR /&gt;Note that when you are adding files in sudo, these are executable commands, and not just a list of files.&lt;BR /&gt;&lt;BR /&gt;Paul</description>
      <pubDate>Fri, 03 Feb 2006 11:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723237#M788327</guid>
      <dc:creator>Paul F. Carlson</dc:creator>
      <dc:date>2006-02-03T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: setup sudo on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723238#M788328</link>
      <description>Hi,&lt;BR /&gt;In my opinion, creating an account on a trusted box is a more complex process with many things to do... sudo will allow 1 command at a time...&lt;BR /&gt;&lt;BR /&gt;I would for this case use restricted sam  (sam -r )to grant a user the privilege of account creation with this more he cannot change root passwd...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Fri, 03 Feb 2006 11:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723238#M788328</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-02-03T11:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: setup sudo on HP-UX</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723239#M788329</link>
      <description>Well, Those users without having access to /tcb/... they can not create account to the new user.  As Victor said, sam -r for a group might be a soltion for my problem. I checked on the man pages and tried it but it is a little bit confusing. After I gave a privileage to a user and when I tried to exit I got a message that the change will be lost if I exited. Am I doing somthing wrong?&lt;BR /&gt;&lt;BR /&gt;Thank you all&lt;BR /&gt;&lt;BR /&gt;Daniel</description>
      <pubDate>Fri, 03 Feb 2006 12:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setup-sudo-on-hp-ux/m-p/3723239#M788329</guid>
      <dc:creator>dgizaw</dc:creator>
      <dc:date>2006-02-03T12:27:37Z</dc:date>
    </item>
  </channel>
</rss>

