<?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 using sudo with passwd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083876#M811301</link>
    <description>I have a strange problem after restricting passwd to root only.&lt;BR /&gt;&lt;BR /&gt;I locked the passwd command so only root can use it and I granted sudo to a few application users who have a nologin login shell... so that they can change the applicaiton password with out me doing it. by loging in as themselves then su over to the oracle user with password.&lt;BR /&gt;&lt;BR /&gt;However, when they use sudo, IF they only type "sudo passwd", It allows them to change the ROOT PASSWD... and instead of the oracle&lt;BR /&gt;&lt;BR /&gt;They must use "sudo passwd oracle", in order to change the oracle passwd and not the root passwd.&lt;BR /&gt;&lt;BR /&gt;Here is my question.... Is there a way to give them the passwd command and or prevent sudo from allowing them to change the root passwd?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Oct 2003 09:43:55 GMT</pubDate>
    <dc:creator>Todd McDaniel_1</dc:creator>
    <dc:date>2003-10-02T09:43:55Z</dc:date>
    <item>
      <title>using sudo with passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083876#M811301</link>
      <description>I have a strange problem after restricting passwd to root only.&lt;BR /&gt;&lt;BR /&gt;I locked the passwd command so only root can use it and I granted sudo to a few application users who have a nologin login shell... so that they can change the applicaiton password with out me doing it. by loging in as themselves then su over to the oracle user with password.&lt;BR /&gt;&lt;BR /&gt;However, when they use sudo, IF they only type "sudo passwd", It allows them to change the ROOT PASSWD... and instead of the oracle&lt;BR /&gt;&lt;BR /&gt;They must use "sudo passwd oracle", in order to change the oracle passwd and not the root passwd.&lt;BR /&gt;&lt;BR /&gt;Here is my question.... Is there a way to give them the passwd command and or prevent sudo from allowing them to change the root passwd?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 09:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083876#M811301</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-02T09:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: using sudo with passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083877#M811302</link>
      <description>Yes. Simply add 'oracle' onto the passwd command.&lt;BR /&gt; &lt;BR /&gt;So for the user group the command would be&lt;BR /&gt; &lt;BR /&gt;passwd oracle&lt;BR /&gt; &lt;BR /&gt;This will then restrict them to running passwd only with oracle as an argument.&lt;BR /&gt; &lt;BR /&gt;Check out the sudoers man page for more info on restricting by command args.&lt;BR /&gt; &lt;BR /&gt;HTH.</description>
      <pubDate>Thu, 02 Oct 2003 09:47:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083877#M811302</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-10-02T09:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: using sudo with passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083878#M811303</link>
      <description>Are you saying that in the /etc/sudoers file that I make it say?&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;oracle ALL=(ALL) NOPASSWD:/usr/bin/passwd oracle&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So that they must enter this complete line in order for sudo to work for them?</description>
      <pubDate>Thu, 02 Oct 2003 09:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083878#M811303</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-02T09:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: using sudo with passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083879#M811304</link>
      <description>I have few doubts.&lt;BR /&gt;If those few users have a nologin login shell, how they are entering into the system.  If there is no valid shell how can they run the su command itself.&lt;BR /&gt;&lt;BR /&gt;sudo allows users to run certain commands as root.  So obviously passwd is being run as root and the root passwd is changed.  So, you have to change the sudoers file as you have mentioned only.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy</description>
      <pubDate>Thu, 02 Oct 2003 09:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083879#M811304</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-10-02T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: using sudo with passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083880#M811305</link>
      <description>Yes. 'man sudoers' describes the exact details as I'm just going from memory. But I think that is all you need. If they enter just 'passwd' or 'passwd root' or 'passwd joe' sudo will deny them access.&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Thu, 02 Oct 2003 10:00:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083880#M811305</guid>
      <dc:creator>Brian Bergstrand</dc:creator>
      <dc:date>2003-10-02T10:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: using sudo with passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083881#M811306</link>
      <description>I may have misspoke...&lt;BR /&gt;&lt;BR /&gt;The users login as themselves with SecurID login then with password over to Oracle...nologin is so that oracle can't be logged in directly.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Thu, 02 Oct 2003 10:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-sudo-with-passwd/m-p/3083881#M811306</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2003-10-02T10:02:07Z</dc:date>
    </item>
  </channel>
</rss>

