<?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 help to make a good script to create users in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613769#M104451</link>
    <description>Hi,&lt;BR /&gt;I need to create a solution, to create a range user in a different HP-UX system 11.23. &lt;BR /&gt;The best idea is use one system to run a script that creates users in all others systems, with same userid, to make shore that all passwd are equal. &lt;BR /&gt;I have some knowledge of shell script, but I’ll like to create an interface for my script too.&lt;BR /&gt;I need your opinions. Thanks.</description>
    <pubDate>Mon, 29 Aug 2005 05:29:01 GMT</pubDate>
    <dc:creator>uadm26</dc:creator>
    <dc:date>2005-08-29T05:29:01Z</dc:date>
    <item>
      <title>help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613769#M104451</link>
      <description>Hi,&lt;BR /&gt;I need to create a solution, to create a range user in a different HP-UX system 11.23. &lt;BR /&gt;The best idea is use one system to run a script that creates users in all others systems, with same userid, to make shore that all passwd are equal. &lt;BR /&gt;I have some knowledge of shell script, but I’ll like to create an interface for my script too.&lt;BR /&gt;I need your opinions. Thanks.</description>
      <pubDate>Mon, 29 Aug 2005 05:29:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613769#M104451</guid>
      <dc:creator>uadm26</dc:creator>
      <dc:date>2005-08-29T05:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613770#M104452</link>
      <description>I have a series of scripts that include a library and interface for creating users. I believe I have all of the components on an HP-UX xerver behind me.&lt;BR /&gt;&lt;BR /&gt;The interface needs to build the useradd command to meet your needs. Is that what you are looking for?&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 29 Aug 2005 05:42:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613770#M104452</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-08-29T05:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613771#M104453</link>
      <description>Hi,&lt;BR /&gt;I have a script to run in a single system, with a simple interface using echo command. I'm trying to create a new one, with functions, more elaborated, with an interface that I can navigate, for example, with Tab key.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Aug 2005 06:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613771#M104453</guid>
      <dc:creator>uadm26</dc:creator>
      <dc:date>2005-08-29T06:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613772#M104454</link>
      <description>If someone have scripts with some of that things would help me.</description>
      <pubDate>Mon, 29 Aug 2005 06:03:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613772#M104454</guid>
      <dc:creator>uadm26</dc:creator>
      <dc:date>2005-08-29T06:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613773#M104455</link>
      <description>Create a file called user.dat on the same directory of the create_users script.&lt;BR /&gt;&lt;BR /&gt;Data format of user.dat would be&lt;BR /&gt;&lt;BR /&gt;employee_code First_Name Last_name&lt;BR /&gt;&lt;BR /&gt;#########################################################################&lt;BR /&gt;#create_user script.&lt;BR /&gt;#Created by Syam&lt;BR /&gt;#########################################################################&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;#&lt;BR /&gt;groupadd dbuser&lt;BR /&gt;rm -f passwords.dat&lt;BR /&gt;#read all the data in the file user.dat&lt;BR /&gt;while read data&lt;BR /&gt;do&lt;BR /&gt;#split the fields up&lt;BR /&gt;#first field&lt;BR /&gt;logid=`echo $data | cut -d' ' -f1`&lt;BR /&gt;#second field onwards&lt;BR /&gt;username=`echo $data | cut -d' ' -f2-`&lt;BR /&gt;useradd -c "$username" -g dbuser -m -s /usr/bin/ksh -k /etc/skel -d /home/db$logid db$logid&lt;BR /&gt;/usr/lbin/modprpw -x db$logid &amp;gt;&amp;gt; passwords.dat&lt;BR /&gt;echo "Created user $username"&lt;BR /&gt;done &amp;lt; user.dat&lt;BR /&gt;cat passwords.dat|cut -f2 -d"="&amp;gt;passwords.txt&lt;BR /&gt;rm -f passwords.dat&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Mon, 29 Aug 2005 06:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613773#M104455</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-29T06:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613774#M104456</link>
      <description>The above script is for a trusted system.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam</description>
      <pubDate>Mon, 29 Aug 2005 06:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613774#M104456</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-29T06:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613775#M104457</link>
      <description>Hi,&lt;BR /&gt;Well what I really need is something more elaborated how to build an interface.&lt;BR /&gt;And then the best code to use for create that script. My script itâ  s in attachment.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Aug 2005 08:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613775#M104457</guid>
      <dc:creator>uadm26</dc:creator>
      <dc:date>2005-08-29T08:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613776#M104458</link>
      <description>The script I have created and used is like Syam's.&lt;BR /&gt;&lt;BR /&gt;korn shell with use of master.pass file on one system.&lt;BR /&gt;&lt;BR /&gt;after entering name, it checks for existance and shows entry.  Select if you like or choose different name.  The uids are segregated. daemon uid is 100-199, normal users are 200-499, other could be 500-699, etc each with different settings for password expire etc.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Once completed the script creates a file called /tmp/new.  The contents are the commands of useradd, modprpwx, etc, all the commands you would manually use.  Then as this script is run as non-root user, it rcp it to either a selected system or all systems.&lt;BR /&gt;Then login to each system as root and run the new file with the commands.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Aug 2005 10:49:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613776#M104458</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2005-08-29T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613777#M104459</link>
      <description>If You want to have real menus and such, You should look into either (n)curses or tcl/tk.&lt;BR /&gt;&lt;BR /&gt;a friend of mine also wrote a small widget library in ksh, I've asked him for a link, as I don't remember where to find it at the moment.&lt;BR /&gt;&lt;BR /&gt;florian</description>
      <pubDate>Mon, 29 Aug 2005 12:14:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613777#M104459</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-08-29T12:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613778#M104460</link>
      <description>Here is the link to the library:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://cvs.laladev.org/index.html/laladev/lalaKSHWidgets/" target="_blank"&gt;http://cvs.laladev.org/index.html/laladev/lalaKSHWidgets/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think it can do what You need.</description>
      <pubDate>Mon, 29 Aug 2005 12:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613778#M104460</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-08-29T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: help to make a good script to create users</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613779#M104461</link>
      <description>Joel,&lt;BR /&gt;&lt;BR /&gt;I'ave a similar script that I wrote a while back for adding/deleting/modifying users. It might be of use to you or at the very least it can provide a framework on which you can build yours. This script is parameterized and menu-driven.&lt;BR /&gt;&lt;BR /&gt;Best of luck!!!</description>
      <pubDate>Mon, 29 Aug 2005 15:34:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-to-make-a-good-script-to-create-users/m-p/3613779#M104461</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-29T15:34:04Z</dc:date>
    </item>
  </channel>
</rss>

