<?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: Adding multiple user accounts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117009#M447124</link>
    <description>Thank you .. just saved me a week of sam work !!</description>
    <pubDate>Tue, 01 Jul 2008 17:32:47 GMT</pubDate>
    <dc:creator>B Wade Moll</dc:creator>
    <dc:date>2008-07-01T17:32:47Z</dc:date>
    <item>
      <title>Adding multiple user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117005#M447120</link>
      <description>I was given a list of about 40 new users to add to 25 servers. What I would like to do is create a text file with the username (users.dat) and run a script to add them to the server.&lt;BR /&gt;&lt;BR /&gt;I have very little knowlege of ksh programming,  does anyone have a script that does something along those lines?&lt;BR /&gt;&lt;BR /&gt;Thank you !!</description>
      <pubDate>Tue, 01 Jul 2008 17:01:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117005#M447120</guid>
      <dc:creator>B Wade Moll</dc:creator>
      <dc:date>2008-07-01T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117006#M447121</link>
      <description>what exactly is in the file?&lt;BR /&gt;&lt;BR /&gt;You can take a simple route like&lt;BR /&gt;&lt;BR /&gt;for i in 'cat users.dat'&lt;BR /&gt;do&lt;BR /&gt;useradd -m $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Then you would have to set the passwords.  I used expect to do a script that would add the user then add a standard password, but most systems dont have Expect.&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Tue, 01 Jul 2008 17:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117006#M447121</guid>
      <dc:creator>Craig A. Sharp</dc:creator>
      <dc:date>2008-07-01T17:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117007#M447122</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;You can do something like this:&lt;BR /&gt;&lt;BR /&gt;# cat addusers&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;OLDIFS=${IFS}&lt;BR /&gt;IFS=":"&lt;BR /&gt;while read USER UID GID GECOS HOMEDIR THESHELL&lt;BR /&gt;do&lt;BR /&gt;    echo useradd -u ${UID} -g ${GID} -c "\""${GECOS}"\"" -d ${HOMEDIR} -m -s ${THESHELL} ${USER}&lt;BR /&gt;done &amp;lt; newusers&lt;BR /&gt;IFS=${OLDIFS}&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;# cat newusers&lt;BR /&gt;wade:500:20:wade at work:/home:/usr/bin/sh&lt;BR /&gt;wade2:501:20:wade at home:/home:/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;...run as:&lt;BR /&gt;&lt;BR /&gt;# ./addusers&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 01 Jul 2008 17:29:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117007#M447122</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-01T17:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117008#M447123</link>
      <description>Sorry, this is assuming that the file is in the form&lt;BR /&gt;&lt;BR /&gt;username1&lt;BR /&gt;username2&lt;BR /&gt;username3&lt;BR /&gt;&lt;BR /&gt;Craig</description>
      <pubDate>Tue, 01 Jul 2008 17:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117008#M447123</guid>
      <dc:creator>Craig A. Sharp</dc:creator>
      <dc:date>2008-07-01T17:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding multiple user accounts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117009#M447124</link>
      <description>Thank you .. just saved me a week of sam work !!</description>
      <pubDate>Tue, 01 Jul 2008 17:32:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/adding-multiple-user-accounts/m-p/5117009#M447124</guid>
      <dc:creator>B Wade Moll</dc:creator>
      <dc:date>2008-07-01T17:32:47Z</dc:date>
    </item>
  </channel>
</rss>

