<?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: syncronising passwords between 3 HP-UX 11.31 systems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187646#M460976</link>
    <description>why not using ldap or niS&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Jul 2009 05:10:49 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2009-07-16T05:10:49Z</dc:date>
    <item>
      <title>syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187645#M460975</link>
      <description>Afternoon all, I have 3 identical rx6600's running 11.31 running some apps that require users to login via ssh. We have a production, reporting and dev/uat system. We have a window of about 20 minutes every night where all users are terminated. Can I simply copy the /etc/passwd &amp;amp; /etc/shadow files from the production system to the other 2 without causing issues.&lt;BR /&gt;We already have useradd and userdel scripts which keep the users up to date on all systems, but the users seem to have issues with keeping their passwords the same on all systems.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Ross&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:03:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187645#M460975</guid>
      <dc:creator>Ross Morrison</dc:creator>
      <dc:date>2009-07-16T05:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187646#M460976</link>
      <description>why not using ldap or niS&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187646#M460976</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2009-07-16T05:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187647#M460977</link>
      <description>to keep it simple.&lt;BR /&gt;&lt;BR /&gt;I will go with copying the /etc/passwd and the /etc/shadow passwords  ( not worreid about their home dir contents).&lt;BR /&gt;&lt;BR /&gt;ldap/nis takes too much time to setup/test/implement.</description>
      <pubDate>Thu, 16 Jul 2009 05:41:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187647#M460977</guid>
      <dc:creator>Basheer_2</dc:creator>
      <dc:date>2009-07-16T05:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187648#M460978</link>
      <description>You need to copy /etc/passwd,/etc/shadow,/etc/group /tcb directory if your system is trusted and home directories.&lt;BR /&gt;Copy /etc/passwd â   for adding new users to other two systems&lt;BR /&gt;Copy /etc/shadow,/tcb â   to sync the passwd&lt;BR /&gt;Home directories â   to get all the ssh keys and user data&lt;BR /&gt;/etc/group â  to get all users primary and secondary group information.&lt;BR /&gt;I would suggest to  only the newly added users to other two systems not all the users so that there will not any change in existing user information.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:46:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187648#M460978</guid>
      <dc:creator>Roopesh Francis_1</dc:creator>
      <dc:date>2009-07-16T05:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187649#M460979</link>
      <description>You need to copy /etc/passwd,/etc/shadow,/etc/group /tcb directory if your system is trusted and home directories.&lt;BR /&gt;Copy /etc/passwd - for adding new users to other two systems&lt;BR /&gt;Copy /etc/shadow,/tcb -to sync the passwd&lt;BR /&gt;Home directories -to get all the ssh keys and user data&lt;BR /&gt;/etc/group -to get all users primary and secondary group information.&lt;BR /&gt;I would suggest to  only the newly added users to other two systems rather all the users so that there will not any change in existing user information.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jul 2009 05:49:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187649#M460979</guid>
      <dc:creator>Roopesh Francis_1</dc:creator>
      <dc:date>2009-07-16T05:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187650#M460980</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;the best idea is to implement NIS/LDAP,&lt;BR /&gt;&lt;BR /&gt;because the accounts will be synchronized.&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Thu, 16 Jul 2009 05:56:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187650#M460980</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-07-16T05:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187651#M460981</link>
      <description>Ross,&lt;BR /&gt;&lt;BR /&gt;Try the attached script along with what you are already doing. You will need to modify a few variables towards the top for system names.&lt;BR /&gt;This is assuming your systems are trusted and depends on the accounts being in place.&lt;BR /&gt;&lt;BR /&gt;Also you need to have an account with sudo root privs that can ssh to each system.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;DCJ</description>
      <pubDate>Fri, 17 Jul 2009 13:18:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187651#M460981</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2009-07-17T13:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187652#M460982</link>
      <description>Sure, you can copy these two files from a centralized location, assuming you don't need specific local accounts on specific to a server. Whatever yo do, be careful to not overwrite any of them with empty data (i.e. write resilient code), else you could end up hanging your server.&lt;BR /&gt;&lt;BR /&gt;Also take care when copying and modifying /etc/shadow and /etc/passwd to keep any modification atomic, i.e. within one system call. Else you'll have problems with software that might forget who they're running under for a few milliseconds and this can be messy. Using "mv /etc/passwd.new /etc/passwd" works... but opening it up with sed to modify it directly is risky! &lt;BR /&gt;&lt;BR /&gt;With 11.31 useradd and usermod now have the -F option to force modifications even if an account is in use, which is good for accounts such as oracle and root. Also -p lets you hand out an encrypted password on the command-line. Using these options, you can easily create a homemade script to distribute modifications from a centralized location, without needing to fiddle with /etc/passwd and /etc/shadow directly.&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Fri, 17 Jul 2009 13:53:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187652#M460982</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2009-07-17T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187653#M460983</link>
      <description>hi Ross,&lt;BR /&gt;&lt;BR /&gt;   you can copy your /etc/passwd and /etc/shadown files without any issues. But to keep these files in sync or updated. i would recommend configuring NIS for it. even if configuring NIS takes time, as Basheer said, but you need to configure it once and your problem is solved for ever for such similar issues.</description>
      <pubDate>Fri, 17 Jul 2009 18:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187653#M460983</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-07-17T18:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187654#M460984</link>
      <description>Thanks all,&lt;BR /&gt;        the systems are not trusted but using Hp new userdb structure. I was wondering if I update the shadow file on one of the other systems from the prod system, will the userdb area get updated say if the passwd on the dev server had expired and the account was locked/&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;Ross&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Jul 2009 23:06:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187654#M460984</guid>
      <dc:creator>Ross Morrison</dc:creator>
      <dc:date>2009-07-23T23:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: syncronising passwords between 3 HP-UX 11.31 systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187655#M460985</link>
      <description>Thanks all, sorry its taken so long to close but I got pulled off onto another project. Decided to go with Olivier's solution, grepp'e the encrypted passwd's from the master system, put them into a test file with the login id, then used the usermod -f option on the other servers plus some userdbset commands to cater for locked accounts on the other servers. Just used this on non system accounts.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Oct 2009 22:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/syncronising-passwords-between-3-hp-ux-11-31-systems/m-p/5187655#M460985</guid>
      <dc:creator>Ross Morrison</dc:creator>
      <dc:date>2009-10-06T22:07:02Z</dc:date>
    </item>
  </channel>
</rss>

