<?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: useradd command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797573#M392285</link>
    <description>&amp;gt; i want to creat 20 user account in one single command .it is possible ?&lt;BR /&gt;&lt;BR /&gt;No, it is not possible to create 20 user accounts in one single command unless you create series of commands in a script file as given by rariasn. But this way you will have very limited/common options for each users and after creating all users, you will have to supply passwords one by one, can't do this in one go.&lt;BR /&gt;&lt;BR /&gt;I would use simple way, copy previous command and edit to change username and other options instead writing scripts unless you have to use it frequently to create bunch of users on daily basis!!!</description>
    <pubDate>Sat, 11 Jun 2011 04:03:33 GMT</pubDate>
    <dc:creator>Hiren N Dave</dc:creator>
    <dc:date>2011-06-11T04:03:33Z</dc:date>
    <item>
      <title>useradd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797567#M392279</link>
      <description>i want to creat 20 user account in one single command .it is possible ?</description>
      <pubDate>Fri, 10 Jun 2011 02:40:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797567#M392279</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2011-06-10T02:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: useradd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797568#M392280</link>
      <description>&lt;!--!*#--&gt;Sure, it's possible, but it may not be very&lt;BR /&gt;smart.  How do you intend to specify all the&lt;BR /&gt;different parameters for all these accounts?&lt;BR /&gt;Why would one command be better than N&lt;BR /&gt;commands for creating N user accounts?</description>
      <pubDate>Fri, 10 Jun 2011 03:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797568#M392280</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-10T03:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: useradd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797569#M392281</link>
      <description>ok. as per your messge ,one by one only we able to create. thats corect</description>
      <pubDate>Fri, 10 Jun 2011 04:57:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797569#M392281</guid>
      <dc:creator>rajesh73</dc:creator>
      <dc:date>2011-06-10T04:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: useradd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797570#M392282</link>
      <description>Hi Rajesh,&lt;BR /&gt;&lt;BR /&gt;Yes, its very correct u can create N no of user in single command.&lt;BR /&gt;&lt;BR /&gt;But its best practice is to create user one by one, so that if u want to give different parameters u can provide. like shell ,group etc.&lt;BR /&gt;&lt;BR /&gt;Hope ur query resolved.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Vishnu Khandare</description>
      <pubDate>Fri, 10 Jun 2011 07:32:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797570#M392282</guid>
      <dc:creator>vishnu.khandare</dc:creator>
      <dc:date>2011-06-10T07:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: useradd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797571#M392283</link>
      <description>Hi Rajesh:&lt;BR /&gt;&lt;BR /&gt;Creatre user file sample:&lt;BR /&gt;&lt;BR /&gt;# cat /tmp/users.txt&lt;BR /&gt;user1&lt;BR /&gt;user2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;# for USER in $(cat /tmp/user,txt)&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;useradd -g XX -s /usr/bin/ksh -m -d /home/$USER $USER&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;# man useradd&lt;BR /&gt;&lt;BR /&gt;rgs,&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jun 2011 10:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797571#M392283</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2011-06-10T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: useradd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797572#M392284</link>
      <description>saludos&lt;BR /&gt;&lt;BR /&gt;As given above, a simple "for" loop would do it for you, however with common options. In the other hand, you can have a more complex script which runs interactively and asks for the 'list' of user names and to choose options for them like group, shell etc.(many admins use scripts of this sort for user admin)&lt;BR /&gt;Still these will be creating the users "one by one" , not in a single shot. :D&lt;BR /&gt;&lt;BR /&gt;todo lo mejor&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Jun 2011 13:03:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797572#M392284</guid>
      <dc:creator>點燃</dc:creator>
      <dc:date>2011-06-10T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: useradd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797573#M392285</link>
      <description>&amp;gt; i want to creat 20 user account in one single command .it is possible ?&lt;BR /&gt;&lt;BR /&gt;No, it is not possible to create 20 user accounts in one single command unless you create series of commands in a script file as given by rariasn. But this way you will have very limited/common options for each users and after creating all users, you will have to supply passwords one by one, can't do this in one go.&lt;BR /&gt;&lt;BR /&gt;I would use simple way, copy previous command and edit to change username and other options instead writing scripts unless you have to use it frequently to create bunch of users on daily basis!!!</description>
      <pubDate>Sat, 11 Jun 2011 04:03:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd-command/m-p/4797573#M392285</guid>
      <dc:creator>Hiren N Dave</dc:creator>
      <dc:date>2011-06-11T04:03:33Z</dc:date>
    </item>
  </channel>
</rss>

