<?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: User creation !! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877663#M279541</link>
    <description>Hi JRF, &lt;BR /&gt;&lt;BR /&gt; My requirement is to create 15 users across 50 servers. So i prepared a script will all inputs. But I couldnt set my default passwd through the script.&lt;BR /&gt;&lt;BR /&gt; Anyways to do this.. WH</description>
    <pubDate>Tue, 10 Oct 2006 09:37:07 GMT</pubDate>
    <dc:creator>Whitehorse_1</dc:creator>
    <dc:date>2006-10-10T09:37:07Z</dc:date>
    <item>
      <title>User creation !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877660#M279538</link>
      <description>Gentlemen,,(Doubt in Shell script)&lt;BR /&gt;&lt;BR /&gt; Is ther anyways, I can create username with passwd inputs(non-interactive) through shell script.&lt;BR /&gt;&lt;BR /&gt;Thxs, WH</description>
      <pubDate>Tue, 10 Oct 2006 09:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877660#M279538</guid>
      <dc:creator>Whitehorse_1</dc:creator>
      <dc:date>2006-10-10T09:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: User creation !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877661#M279539</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can create a password with 'crypt' and update the '/etc/passwd' file accordingly for the user(s) in question.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 10 Oct 2006 09:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877661#M279539</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-10T09:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: User creation !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877662#M279540</link>
      <description>Friend if you only desire to have a user, but that it does not effect login in the SO she creates a usuario:   useradd username and blocks the usuario:  passwd - l username</description>
      <pubDate>Tue, 10 Oct 2006 09:27:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877662#M279540</guid>
      <dc:creator>Calandrello</dc:creator>
      <dc:date>2006-10-10T09:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: User creation !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877663#M279541</link>
      <description>Hi JRF, &lt;BR /&gt;&lt;BR /&gt; My requirement is to create 15 users across 50 servers. So i prepared a script will all inputs. But I couldnt set my default passwd through the script.&lt;BR /&gt;&lt;BR /&gt; Anyways to do this.. WH</description>
      <pubDate>Tue, 10 Oct 2006 09:37:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877663#M279541</guid>
      <dc:creator>Whitehorse_1</dc:creator>
      <dc:date>2006-10-10T09:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: User creation !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877664#M279542</link>
      <description>I have a script that creates the commands from a master file.  That file is then distibuted to the proper server.  I log into each server and run the script which creates all the user accounts.  With this exception.  The script runs modprpw -x on the account to gen a temp password for the user.  This may be different from what you are looking for.&lt;BR /&gt;&lt;BR /&gt;One thought if using HPUX Trusted system is to use sed to replace the /tcb/files/auth/X/user encrypted password entry or just copy the file from the already setup entry on another host.</description>
      <pubDate>Tue, 10 Oct 2006 10:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877664#M279542</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2006-10-10T10:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: User creation !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877665#M279543</link>
      <description>Hi,&lt;BR /&gt;did you read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1050251" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1050251&lt;/A&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=188522" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=188522&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you have 50 servers to control, why not use NIS ?</description>
      <pubDate>Tue, 10 Oct 2006 10:15:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877665#M279543</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-10T10:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: User creation !!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877666#M279544</link>
      <description>&lt;!--!*#--&gt;Hey;&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/useradd.sam accepts a -p option for supplying an encrypted password.  Unlike the regular useradd (to which it's soft-linked, figure that one out), it doesn't automatically create the home directories so you'll have to use other steps for that.  &lt;BR /&gt;&lt;BR /&gt;1.  Manually add a user and set the password to what you want as the default.&lt;BR /&gt;&lt;BR /&gt;2.  Obtain that password and store it in your script.&lt;BR /&gt;&lt;BR /&gt;3.  Inline function (w/assumptions on what your datafile looks like)&lt;BR /&gt;&lt;BR /&gt;cat ${file} | while read user pwd uid gid Groups gecos home shell&lt;BR /&gt;do&lt;BR /&gt;   /usr/sam/lbin/useradd.sam -p ${pwd} \&lt;BR /&gt;      -u ${uid} \&lt;BR /&gt;      -g ${gid} \&lt;BR /&gt;      -G ${Groups} \&lt;BR /&gt;      -c "${gecos}" \&lt;BR /&gt;      -s ${shell} \&lt;BR /&gt;      -d ${home} ${user}&lt;BR /&gt;   mkdir -p ${home}&lt;BR /&gt;   cp /etc/skel/.[A-z]* ${home}&lt;BR /&gt;   chown -R ${user}:${gid} ${home}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Note that you'll want to protect this script as you would the shadow password file - ie root read only, in a directory structure that is accessible only by root.&lt;BR /&gt;&lt;BR /&gt;HTH;&lt;BR /&gt;&lt;BR /&gt;Doug</description>
      <pubDate>Tue, 10 Oct 2006 10:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-creation/m-p/3877666#M279544</guid>
      <dc:creator>Doug O'Leary</dc:creator>
      <dc:date>2006-10-10T10:23:30Z</dc:date>
    </item>
  </channel>
</rss>

