<?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: modify password file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682585#M53363</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Try the vipw command.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Chris</description>
    <pubDate>Wed, 13 Mar 2002 21:29:54 GMT</pubDate>
    <dc:creator>Christopher McCray_1</dc:creator>
    <dc:date>2002-03-13T21:29:54Z</dc:date>
    <item>
      <title>modify password file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682584#M53362</link>
      <description>I need to change the comment field (desciption field ) in passwd file in trusted environment. OS 10.20 and 11.00&lt;BR /&gt;&lt;BR /&gt;Plan A is  to change passwd file by copying passwd as passwd.new and directly modify the field and then copy back as passwd file. &lt;BR /&gt;In this scenario &lt;BR /&gt;-What happens if users are already logged in..?&lt;BR /&gt;-Does it effect /tcb/auth Files ?&lt;BR /&gt;&lt;BR /&gt;Plan B  use usermod -c option &lt;BR /&gt;in this scenario if user logged in I can not modify any fields.&lt;BR /&gt;&lt;BR /&gt;What would be the best way to do this.??  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Mar 2002 21:24:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682584#M53362</guid>
      <dc:creator>Rushank</dc:creator>
      <dc:date>2002-03-13T21:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: modify password file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682585#M53363</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Try the vipw command.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 13 Mar 2002 21:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682585#M53363</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-03-13T21:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: modify password file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682586#M53364</link>
      <description>if you edit directly and run an authck -a it should fix errors, but you know, it's a nasty way to do it.&lt;BR /&gt;&lt;BR /&gt;usermod is a better way to do it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Mar 2002 21:30:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682586#M53364</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2002-03-13T21:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: modify password file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682587#M53365</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I'd go with the last comment. At the end of the day all your changing id the comment field&lt;BR /&gt;&lt;BR /&gt;usermod -c</description>
      <pubDate>Wed, 13 Mar 2002 22:01:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682587#M53365</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-03-13T22:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: modify password file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682588#M53366</link>
      <description>Hi Rushank,&lt;BR /&gt;&lt;BR /&gt;i agree with the others, the better way seems to be to use the command:&lt;BR /&gt;&lt;BR /&gt;usermod -c new_comments username&lt;BR /&gt;&lt;BR /&gt;If you have a lot of users you can easily put this in a script: (if you need different comments you have to take care to get the correct values with variables ... )&lt;BR /&gt;&lt;BR /&gt;for i in $*&lt;BR /&gt;do&lt;BR /&gt;usermod -c new_comment $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Using vi- editor to do this job is also possible, but allways use the command:&lt;BR /&gt;&lt;BR /&gt;vipw /etc/passwd&lt;BR /&gt;&lt;BR /&gt;This command locks the file while you are editing it. So if any user trys to change his password during your operation he gets a message that the file is locked, and his action is forbidden. &lt;BR /&gt;&lt;BR /&gt;&lt;DOES this="" have="" effect="" on="" users="" who="" are="" allready="" logged="" in=""&gt;&lt;BR /&gt;&lt;BR /&gt;The comment field was used by several services in the past, but in these days it is not that important as it was, so: NO, doesn't effect users.&lt;BR /&gt;&lt;BR /&gt;&lt;/DOES&gt;&lt;BR /&gt;&lt;BR /&gt;The shadow- password files are a security feature. Users who login are checked from system if username and password are correct. Without shadow- files, /etc/passwd is read to confirm the username and password. With shadow- files this information is read out of shadow files. ( These are only readable for root, but not for the users... ) So: No, doesn't take effect on the shadow- files either.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 14 Mar 2002 07:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682588#M53366</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-03-14T07:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: modify password file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682589#M53367</link>
      <description>Hi&lt;BR /&gt;Since itis just a comment field change.&lt;BR /&gt;&lt;BR /&gt;I have done this for root in a trusted system in all the methods mentioned in your note&lt;BR /&gt;&lt;BR /&gt;I could do it without any issue.&lt;BR /&gt;&lt;BR /&gt;/tcb/auth file is not affected.&lt;BR /&gt;&lt;BR /&gt;-Vijay</description>
      <pubDate>Thu, 14 Mar 2002 09:09:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modify-password-file/m-p/2682589#M53367</guid>
      <dc:creator>K.Vijayaragavan.</dc:creator>
      <dc:date>2002-03-14T09:09:50Z</dc:date>
    </item>
  </channel>
</rss>

