<?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 useradd script on trusted system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982913#M122425</link>
    <description>Hi,&lt;BR /&gt;I need to create 200 users under a trusted system. Is there any script available for this. My biggest concern is the default password for each acct created, how do I capture those from the useradd script. To go thru SAM is just too time consuming. &lt;BR /&gt;&lt;BR /&gt;Thanking you in advance.&lt;BR /&gt;Regards</description>
    <pubDate>Wed, 28 May 2003 02:19:34 GMT</pubDate>
    <dc:creator>Rosli Ahmad</dc:creator>
    <dc:date>2003-05-28T02:19:34Z</dc:date>
    <item>
      <title>useradd script on trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982913#M122425</link>
      <description>Hi,&lt;BR /&gt;I need to create 200 users under a trusted system. Is there any script available for this. My biggest concern is the default password for each acct created, how do I capture those from the useradd script. To go thru SAM is just too time consuming. &lt;BR /&gt;&lt;BR /&gt;Thanking you in advance.&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 28 May 2003 02:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982913#M122425</guid>
      <dc:creator>Rosli Ahmad</dc:creator>
      <dc:date>2003-05-28T02:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: useradd script on trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982914#M122426</link>
      <description>USER=$1 &lt;BR /&gt;GROUP=$2 &lt;BR /&gt;useradd -g $GROUP -d /users/$USER -s /usr/bin/ksh -m -k /etc/skel/$GROUP $USER &lt;BR /&gt;echo "\n\n$USER created and added to $GROUP\n" &lt;BR /&gt;AUTHNUM=`/usr/lbin/modprpw -x $USER|awk -F= '{print $2}'` &lt;BR /&gt;echo "\nAuthorization number for $USER is $AUTHNUM" &lt;BR /&gt;echo "Press return" &lt;BR /&gt;read ans &lt;BR /&gt;return &lt;BR /&gt;&lt;BR /&gt;Try this.This is from :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x72bcd06ed8c8d4118fef0090279cd0f9,00.html." target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x72bcd06ed8c8d4118fef0090279cd0f9,00.html.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;test it out work like charm.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Wed, 28 May 2003 02:45:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982914#M122426</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-05-28T02:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: useradd script on trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982915#M122427</link>
      <description>Word of coutious:&lt;BR /&gt;&lt;BR /&gt;1) you need a skeleton directory called /etc/skel/{GROUPNAME} .&lt;BR /&gt;&lt;BR /&gt;if you don't like this just remove the -k option.Or point it to default skel : /etc/skel.&lt;BR /&gt;&lt;BR /&gt;to run :&lt;BR /&gt;&lt;BR /&gt;./test.sh username1 group1&lt;BR /&gt;&lt;BR /&gt;test.sh = file which contain the script.&lt;BR /&gt;&lt;BR /&gt;this will prompt the initial password.&lt;BR /&gt;&lt;BR /&gt;Need to run using root.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 May 2003 02:53:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982915#M122427</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-05-28T02:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: useradd script on trusted system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982916#M122428</link>
      <description>Thank you for the reply. &lt;BR /&gt;I've tried the script and found out that users' password expired even during 1st login. I checked the /etc/default/useradd and found out the last line was 'EXPIRE'. I then removed this entry and 1st login was fine. &lt;BR /&gt;Any idea how can I play aorund with the /etc/default/useradd, especially in setting the password expiration period for all the users. &lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Wed, 28 May 2003 08:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-script-on-trusted-system/m-p/2982916#M122428</guid>
      <dc:creator>Rosli Ahmad</dc:creator>
      <dc:date>2003-05-28T08:38:34Z</dc:date>
    </item>
  </channel>
</rss>

