<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191400#M164835</link>
    <description>echo "Enter user ID: "&lt;BR /&gt;read UID&lt;BR /&gt;&lt;BR /&gt;echo "Enter user NAME: "&lt;BR /&gt;read UNAME&lt;BR /&gt;&lt;BR /&gt;echo "Enter group ID: "&lt;BR /&gt;read GID&lt;BR /&gt;&lt;BR /&gt;echo "Enter group name: "&lt;BR /&gt;read GNAME&lt;BR /&gt;&lt;BR /&gt;&lt;CHECK duplicate="" user="" and="" group="" id=""&gt;&lt;BR /&gt;&lt;BR /&gt;groupadd -g $GID $GNAME&lt;BR /&gt;useradd -u $UID -o -g $GID  $UNAME&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;This is an overall logic  for the script. &lt;BR /&gt;also you may need to check before adding the login, check for duplicate user ids.&lt;BR /&gt;&lt;BR /&gt;Vijay&lt;BR /&gt;&lt;/CHECK&gt;</description>
    <pubDate>Fri, 13 Feb 2004 06:48:55 GMT</pubDate>
    <dc:creator>Vijaya Kumar_3</dc:creator>
    <dc:date>2004-02-13T06:48:55Z</dc:date>
    <item>
      <title>Useradd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191399#M164834</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I want to add users, I want to write a script for this. &lt;BR /&gt;Idea I want in this script, I have some &lt;SSO id=""&gt; uniq for each user, which I want to provide as input and also GID I want to provide as Input. &lt;USER home=""&gt;, I want to keep according to OS selection. Can some one help please in this. &lt;BR /&gt;Uniq &lt;SSO id=""&gt; is of fixed length&amp;lt;10 digit&amp;gt;, i want to check length also first.&lt;BR /&gt;Please help, I know scripting, but not able to formulate properly. &lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;Prashant&lt;/SSO&gt;&lt;/USER&gt;&lt;/SSO&gt;</description>
      <pubDate>Fri, 13 Feb 2004 06:38:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191399#M164834</guid>
      <dc:creator>Prashant Zanwar_2</dc:creator>
      <dc:date>2004-02-13T06:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Useradd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191400#M164835</link>
      <description>echo "Enter user ID: "&lt;BR /&gt;read UID&lt;BR /&gt;&lt;BR /&gt;echo "Enter user NAME: "&lt;BR /&gt;read UNAME&lt;BR /&gt;&lt;BR /&gt;echo "Enter group ID: "&lt;BR /&gt;read GID&lt;BR /&gt;&lt;BR /&gt;echo "Enter group name: "&lt;BR /&gt;read GNAME&lt;BR /&gt;&lt;BR /&gt;&lt;CHECK duplicate="" user="" and="" group="" id=""&gt;&lt;BR /&gt;&lt;BR /&gt;groupadd -g $GID $GNAME&lt;BR /&gt;useradd -u $UID -o -g $GID  $UNAME&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;This is an overall logic  for the script. &lt;BR /&gt;also you may need to check before adding the login, check for duplicate user ids.&lt;BR /&gt;&lt;BR /&gt;Vijay&lt;BR /&gt;&lt;/CHECK&gt;</description>
      <pubDate>Fri, 13 Feb 2004 06:48:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191400#M164835</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-02-13T06:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Useradd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191401#M164836</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Thanks for reply Vijay, &lt;BR /&gt;&lt;BR /&gt;I want something like below, &lt;BR /&gt;&lt;BR /&gt;useradd -g gid -d /home/u$SSOID -s /bin/ksh -c "email, contact no" -m username&lt;BR /&gt;&lt;BR /&gt;U have given good idea, can it be little more customised. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Prashant</description>
      <pubDate>Fri, 13 Feb 2004 06:58:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191401#M164836</guid>
      <dc:creator>Prashant Zanwar_2</dc:creator>
      <dc:date>2004-02-13T06:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Useradd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191402#M164837</link>
      <description>Here is what "man useradd" says:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;useradd &lt;BR /&gt; [-u uid [-o] ] &lt;BR /&gt; [-g group] &lt;BR /&gt; [-G group [, group...]] &lt;BR /&gt; [-d dir]&lt;BR /&gt; [-s shell] &lt;BR /&gt; [-c comment] &lt;BR /&gt; [-m [-k skel_dir]] &lt;BR /&gt; [-f inactive]&lt;BR /&gt; [-e expire]  &lt;BR /&gt; login&lt;BR /&gt;&lt;BR /&gt;Here, only &lt;LOGIN&gt; is mandatory.&lt;BR /&gt;&lt;BR /&gt;Hoe this helps&lt;BR /&gt;Vijay&lt;/LOGIN&gt;</description>
      <pubDate>Fri, 13 Feb 2004 07:19:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191402#M164837</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-02-13T07:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Useradd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191403#M164838</link>
      <description>So, inside a program, you can say&lt;BR /&gt;&lt;BR /&gt;useradd  -u $UID -o -g $GID -d /home/$LOGIN -s $SHELL -c $COMMENT  $LOGIN&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;vijay</description>
      <pubDate>Fri, 13 Feb 2004 07:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/useradd/m-p/3191403#M164838</guid>
      <dc:creator>Vijaya Kumar_3</dc:creator>
      <dc:date>2004-02-13T07:24:39Z</dc:date>
    </item>
  </channel>
</rss>

