<?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/sam/lbin/usermod.sam in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-sam-lbin-usermod-sam/m-p/4090978#M310302</link>
    <description>&lt;BR /&gt;Thanks for responding.&lt;BR /&gt;&lt;BR /&gt;The -F option will force it to change it, no need to log off anyone.&lt;BR /&gt;&lt;BR /&gt;I'll search the forum with 'passwd change', I did that earlier and didn't find anything related to my issue, but I'll try again.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;SHabu</description>
    <pubDate>Thu, 25 Oct 2007 13:42:21 GMT</pubDate>
    <dc:creator>Shabu Khan-2</dc:creator>
    <dc:date>2007-10-25T13:42:21Z</dc:date>
    <item>
      <title>/usr/sam/lbin/usermod.sam</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-sam-lbin-usermod-sam/m-p/4090976#M310300</link>
      <description>&lt;BR /&gt;Hello All,&lt;BR /&gt;I am automating root password changes across the Enterprise (800+ servers) using Opsware as the platform, it provides a OGSH (Opsware Global Shell), works the same fashion as ssh.&lt;BR /&gt;&lt;BR /&gt;Here is the problem.&lt;BR /&gt;I am using this command line to do that:&lt;BR /&gt;/usr/sam/lbin/usermod.sam -F -p ${NEW_PASS_KEY[0]} root&lt;BR /&gt;&lt;BR /&gt;It worked on almost all of them except for around 25+ servers, when I run it from the command line on the server I get the prompt back and a return code of '0' (echo $?) but it actually doesn't update /etc/shadow, for e.g. here is the sequence&lt;BR /&gt;&lt;BR /&gt;[root@myserver:/root]# grep root /etc/shadow&lt;BR /&gt;root:JTPm1inSzOEwE:13767::::::&lt;BR /&gt;ebroot:*:13292::::::&lt;BR /&gt;[root@myserver:/root]# /usr/sam/lbin/usermod.sam -F -p iqIWHOhzjmAiA root&lt;BR /&gt;[root@myserver:/root]# echo $?&lt;BR /&gt;0&lt;BR /&gt;[root@myserver:/root]# grep root /etc/shadow                             &lt;BR /&gt;root:JTPm1inSzOEwE:13767::::::&lt;BR /&gt;ebroot:*:13292::::::&lt;BR /&gt;&lt;BR /&gt;The permissions for /etc/passwd and /etc/shadow looks the same across the enterprise, pwck doesn't show problems ...&lt;BR /&gt;&lt;BR /&gt;This is a 11.11 box and the patch bundles are not too old either.&lt;BR /&gt;&lt;BR /&gt;ANy thoughts?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shabu&lt;BR /&gt;&lt;BR /&gt;Any thoughts?</description>
      <pubDate>Tue, 23 Oct 2007 19:25:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-sam-lbin-usermod-sam/m-p/4090976#M310300</guid>
      <dc:creator>Shabu Khan-2</dc:creator>
      <dc:date>2007-10-23T19:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/sam/lbin/usermod.sam</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-sam-lbin-usermod-sam/m-p/4090977#M310301</link>
      <description>hi, &lt;BR /&gt;&lt;BR /&gt;usermod.sam does only works when the user is not logged in, if you use sudo please logoff all root users and retry...&lt;BR /&gt;&lt;BR /&gt;ps there are some more ways to do thi via scripting (just searce on passwd change) in the forem</description>
      <pubDate>Thu, 25 Oct 2007 01:51:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-sam-lbin-usermod-sam/m-p/4090977#M310301</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2007-10-25T01:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: /usr/sam/lbin/usermod.sam</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/usr-sam-lbin-usermod-sam/m-p/4090978#M310302</link>
      <description>&lt;BR /&gt;Thanks for responding.&lt;BR /&gt;&lt;BR /&gt;The -F option will force it to change it, no need to log off anyone.&lt;BR /&gt;&lt;BR /&gt;I'll search the forum with 'passwd change', I did that earlier and didn't find anything related to my issue, but I'll try again.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;SHabu</description>
      <pubDate>Thu, 25 Oct 2007 13:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/usr-sam-lbin-usermod-sam/m-p/4090978#M310302</guid>
      <dc:creator>Shabu Khan-2</dc:creator>
      <dc:date>2007-10-25T13:42:21Z</dc:date>
    </item>
  </channel>
</rss>

