<?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: creating new user id in few servers at the same time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006445#M911063</link>
    <description>Hello!&lt;BR /&gt;&lt;BR /&gt;For this problem start to use NIS&lt;BR /&gt;or you a hard way is to copy the passwd file&lt;BR /&gt;to all stations, create directorys and so on.&lt;BR /&gt;&lt;BR /&gt;Run the creation of user on all the station&lt;BR /&gt;(you can made a script)&lt;BR /&gt;&lt;BR /&gt;The best is NIS!&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
    <pubDate>Thu, 26 Jun 2003 21:02:27 GMT</pubDate>
    <dc:creator>Caesar_3</dc:creator>
    <dc:date>2003-06-26T21:02:27Z</dc:date>
    <item>
      <title>creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006436#M911054</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;How do i create few user id in few servers (10 servers) at the same time, without using sam?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 25 Jun 2003 02:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006436#M911054</guid>
      <dc:creator>Joyce Suganthy</dc:creator>
      <dc:date>2003-06-25T02:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006437#M911055</link>
      <description>Hi,&lt;BR /&gt;1. NIS/NIS+ is prefered if you want;&lt;BR /&gt;2. If .rhosts file is correctly configured, you can use "rexec" to achieve it! That is, you can make a script use multiple "rexec" command!&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;-ux</description>
      <pubDate>Wed, 25 Jun 2003 02:58:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006437#M911055</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-06-25T02:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006438#M911056</link>
      <description>If you have lots of machines to administrate, I believe NIS is the way to go. It's really straight forward to setup, in fact you can do it right from SAM.&lt;BR /&gt;A good documentation here on configuring NIS. &lt;BR /&gt;&lt;A href="http://docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html" target="_blank"&gt;http://docs.hp.com/hpux/onlinedocs/B1031-90048/B1031-90048.html&lt;/A&gt;</description>
      <pubDate>Wed, 25 Jun 2003 03:19:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006438#M911056</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-06-25T03:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006439#M911057</link>
      <description>Hi Joyce,&lt;BR /&gt;&lt;BR /&gt;I would say write a small script containing series of useradd commands. Copy this script to all your 10 machines (you have to logon to them anyway to setup ssh or .rhosts) and run it. Your script may look like&lt;BR /&gt;&lt;BR /&gt;useradd -u 1000 -g 500 -d /home/user1 -s /usr/bin/ksh -C "User1, xxx-xxx-xxxx" -m -k /etc/skel user1&lt;BR /&gt;passwd -df user1&lt;BR /&gt;&lt;BR /&gt;useradd -u 1000 -g 500 -d /home/user2 -s /usr/bin/ksh -C "User2, xxx-xxx-xxxx" -m -k /etc/skel user2&lt;BR /&gt;passwd -df user2&lt;BR /&gt;useradd -u 1000 -g 500 -d /home/user3 -s /usr/bin/ksh -C "User3, xxx-xxx-xxxx" -m -k /etc/skel user3&lt;BR /&gt;passwd -df user3&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;This isn't a real secured way of setting passwords. But you don't have much choice here to get it accomplished in a short time.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 25 Jun 2003 03:49:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006439#M911057</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-06-25T03:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006440#M911058</link>
      <description>&lt;BR /&gt;If you are using one machine as a master-host and the other as clients, and you're going to use the same username/UID, group/GID, password, home directory etc... (identical setup)&lt;BR /&gt;&lt;BR /&gt;WARNING: This is not recommended if you are keeping separate/individual setup of the machines.&lt;BR /&gt;&lt;BR /&gt;You could grep the user out of the passwd file from the master and add it directly into the passwd file of the client...&lt;BR /&gt;I think this is better than copying the file itself.&lt;BR /&gt;root@client# remsh master grep newuser &amp;gt;&amp;gt; /etc/passwd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then create the home directory simply by rcp it from the master to the client&lt;BR /&gt;&lt;BR /&gt;Copy the home directory:&lt;BR /&gt;root@client# rcp -pr master:/home/newuser /home/&lt;BR /&gt;&lt;BR /&gt;Copy group file:&lt;BR /&gt;not a good idea if you're keeping individual groups on the servers&lt;BR /&gt;root@client# rcp -p master:/etc/group /etc/group&lt;BR /&gt;&lt;BR /&gt;Not an elegant way to do it...</description>
      <pubDate>Thu, 26 Jun 2003 13:50:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006440#M911058</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2003-06-26T13:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006441#M911059</link>
      <description>here is another solution:&lt;BR /&gt;&lt;BR /&gt;use sudo on all your boxes:&lt;BR /&gt;in your sudoers file add, commands.&lt;BR /&gt;&lt;BR /&gt;useradd,usermod,/usr/lbin/modprpw,/usr/bin/passwd etc&lt;BR /&gt;&lt;BR /&gt;then use remsh &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for x in `cat serverlist`&lt;BR /&gt;do&lt;BR /&gt;echo $x&lt;BR /&gt;remsh $x "sudo /usr/bin/useradd -u 400 -m -k /etc/skel -d /home/&lt;USERNAME&gt; -c "First LAst names" &lt;USERNAME&gt;"&lt;BR /&gt;remsh $x "sudo /usr/bin/usermod -g users -G &lt;OTEHRGROUPS&gt; &lt;USERNAME&gt;"&lt;BR /&gt;remsh $x "sudo /usr/lbin/modprpw -x &lt;USERNAME&gt;"&lt;BR /&gt;done &amp;gt;myresults_with_passwords&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hey that will take you less than 2 minutes to complete.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;peace&lt;BR /&gt;donny&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/USERNAME&gt;&lt;/USERNAME&gt;&lt;/OTEHRGROUPS&gt;&lt;/USERNAME&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Thu, 26 Jun 2003 14:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006441#M911059</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-06-26T14:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006442#M911060</link>
      <description>sorry, fogot to add -s /usr/local/bin/bash"&lt;BR /&gt;&lt;BR /&gt;remsh $x "sudo /usr/bin/usermod -g users -G &lt;OTHER groups=""&gt; -s /usr/local/bin/bash &lt;USERNAME&gt;"&lt;/USERNAME&gt;&lt;/OTHER&gt;</description>
      <pubDate>Thu, 26 Jun 2003 14:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006442#M911060</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-06-26T14:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006443#M911061</link>
      <description>think about creating a flat file with your usernames and uid listed.&lt;BR /&gt;&lt;BR /&gt;user1     1000    adam eve&lt;BR /&gt;user2     1001    joe soap&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;user100   1100    rudy juliani&lt;BR /&gt;&lt;BR /&gt;save the file as "mynewusers"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;same for loop with a twist.&lt;BR /&gt;&lt;BR /&gt;for x in `cat serverlist`&lt;BR /&gt;do&lt;BR /&gt;echo $x&lt;BR /&gt;   while read loginid uid first last&lt;BR /&gt;     do&lt;BR /&gt;     remsh $x "sudo /usr/bin/useradd -u ${uid} -m -k /etc/skel -d /home/${loginid} -s /usr/local/bin/bash -c \"${first} ${last}\" ${loginid}; sudo /usr/lbin/modprpw -x ${loginid}; sudo /usr/bin/usermod -g users ${loginid}"&lt;BR /&gt;    done &lt;MYNEWUSERS&gt;&lt;/MYNEWUSERS&gt;done &amp;gt; outputfile&lt;BR /&gt;&lt;BR /&gt;say that does'nt work&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jun 2003 14:50:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006443#M911061</guid>
      <dc:creator>Donny Jekels</dc:creator>
      <dc:date>2003-06-26T14:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006444#M911062</link>
      <description>Joyce,&lt;BR /&gt;&lt;BR /&gt;   You may want to think ahead and make sure the users' UID numbers are unique accross all Unix nodes on your LAN if you plan to share filesystems via NFS or DCE. The same needs to be insured for the users' GID numbers. I have built a cron'd script that pulls the /etc/passwd file from each NIS server on our network. I then process each /etc/passwd file to produce a "normalized" passwd file. I check this normalized passwd file for logical inconsistencies: A user(identified by his or her login "handle") with more than one UID number assigned to him/her. A UID number possessed by more than one User "handle". Both of these inconsistencies must be resolved to maintain the integrity of the /etc/passwd files among our NIS servers. In our shop a user's handle consists of a single alpha character, followed by their 5 digit employee badge number. We have regular and temporary employees and the alpha character differentiates these. We also provide an editable file, the uid.register, to enable controlling the assignment of unique UID numbers to new users. This register is regenerated daily by the scripts I built. The register contains: User's handle, user's UID, user's name and NIS_Platform.&lt;BR /&gt;&lt;BR /&gt;    This may be more than you need, but networks have a way of growing and becoming more complex</description>
      <pubDate>Thu, 26 Jun 2003 18:04:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006444#M911062</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2003-06-26T18:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006445#M911063</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;For this problem start to use NIS&lt;BR /&gt;or you a hard way is to copy the passwd file&lt;BR /&gt;to all stations, create directorys and so on.&lt;BR /&gt;&lt;BR /&gt;Run the creation of user on all the station&lt;BR /&gt;(you can made a script)&lt;BR /&gt;&lt;BR /&gt;The best is NIS!&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Thu, 26 Jun 2003 21:02:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006445#M911063</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-06-26T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: creating new user id in few servers at the same time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006446#M911064</link>
      <description>I hate NIS, NIS+ and its variants.  We don't use it here.  &lt;BR /&gt;&lt;BR /&gt;Here's a quick-and-dirty shell script (real syadmins do it from the prompt!)&lt;BR /&gt;&lt;BR /&gt;for HOST in HOST1 HOST2 HOST3 HOST4......&lt;BR /&gt;do&lt;BR /&gt;echo $HOST&lt;BR /&gt;ssh $HOST "useradd -u UID -g GID -s /bin/sh -d /home/USERNAME -c COMMENT USERNAME"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This, of course assumes you have secure shell set up, all your GID's, UID's and such are non-duplicating, and that you're fairly sure this won't break anything (here, it doesn't: we're careful).  You could use remsh instead of ssh if necessary.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Thu, 26 Jun 2003 21:38:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/creating-new-user-id-in-few-servers-at-the-same-time/m-p/3006446#M911064</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-06-26T21:38:16Z</dc:date>
    </item>
  </channel>
</rss>

