<?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: Create new user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581026#M229897</link>
    <description>Hi Pat,&lt;BR /&gt;&lt;BR /&gt;by SAM you will do it.&lt;BR /&gt;Otherwise I usually use two quick commands (pippo is a new user for example):&lt;BR /&gt;&lt;BR /&gt;1.&lt;BR /&gt;useradd -m pippo&lt;BR /&gt;2.&lt;BR /&gt;passwd pippo&lt;BR /&gt;&lt;BR /&gt;-m option on useradd command creates an home directory following contents of /etc/skel.&lt;BR /&gt;&lt;BR /&gt;Hope this helps you.&lt;BR /&gt;Please don't forget to assign points. Thanks for that!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Fabio</description>
    <pubDate>Wed, 13 Jul 2005 06:45:41 GMT</pubDate>
    <dc:creator>Fabio Ettore</dc:creator>
    <dc:date>2005-07-13T06:45:41Z</dc:date>
    <item>
      <title>Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581019#M229890</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can anyone please tell me how to create a new user, assign a home directory for the user and create a login, password for the user.&lt;BR /&gt;&lt;BR /&gt;Is there any scripts available which would do this job.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Pat</description>
      <pubDate>Tue, 12 Jul 2005 14:53:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581019#M229890</guid>
      <dc:creator>Pat Peter</dc:creator>
      <dc:date>2005-07-12T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581020#M229891</link>
      <description>Hi Pat,&lt;BR /&gt;Th easiest way is to use SAM, unless you want to do it from the command line using the useradd command &lt;SEE the="" man="" page="" for="" the="" other="" options="" you="" want="" to="" set=""&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;/SEE&gt;</description>
      <pubDate>Tue, 12 Jul 2005 14:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581020#M229891</guid>
      <dc:creator>Ameer Dixit</dc:creator>
      <dc:date>2005-07-12T14:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581021#M229892</link>
      <description>Hi pat&lt;BR /&gt;&lt;BR /&gt;SAM will guide you for a user creation with all the options you can select.&lt;BR /&gt;&lt;BR /&gt;from command line you can use useradd with switch -u for UID, -g for GID , -d for home directory, -s for shell etc.&lt;BR /&gt;&lt;BR /&gt;For more options look man useradd</description>
      <pubDate>Tue, 12 Jul 2005 14:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581021#M229892</guid>
      <dc:creator>saju_2</dc:creator>
      <dc:date>2005-07-12T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581022#M229893</link>
      <description>Hi Pat&lt;BR /&gt;&lt;BR /&gt;SAM is the easiest tool to create new user and set its environment&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mahesh</description>
      <pubDate>Tue, 12 Jul 2005 23:58:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581022#M229893</guid>
      <dc:creator>Mahesh Kumar Malik</dc:creator>
      <dc:date>2005-07-12T23:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581023#M229894</link>
      <description>Pat,&lt;BR /&gt;i am using such a kind of syntax and upto now&lt;BR /&gt;never faced a problem;&lt;BR /&gt;&lt;BR /&gt;useradd -u $(expr $(cat /etc/passwd|cut -d ':' -f3|sort -n|tail -1) + 1) -g groupname -d/homedir/loginname -s/usr/bin/sh -c"username,deptname" -m &lt;BR /&gt;loginname&lt;BR /&gt;&lt;BR /&gt;let's say;&lt;BR /&gt;username:Ted Brown&lt;BR /&gt;Dept:Finance&lt;BR /&gt;loginname:ut0tb (convention what you want)&lt;BR /&gt;group:fnc (from /etc/group which you want add user)&lt;BR /&gt;&lt;BR /&gt;so my syntax must be;&lt;BR /&gt;&lt;BR /&gt;useradd -u $(expr $(cat /etc/passwd|cut -d ':' -f3|sort -n|tail -1) + 1) -g fnc -d/homedir/ut0tb -s/usr/bin/sh -c"Ted Brown,Finance" -m ut0tb&lt;BR /&gt;&lt;BR /&gt;My syntax goes to last id and increase 1&lt;BR /&gt;and get new id for my new user(ut0tb)...so this means&lt;BR /&gt;let's say My last user id is 878 for user&lt;BR /&gt;XYX then My new user Ted Brown(ut0tb) got&lt;BR /&gt;879 automatically.&lt;BR /&gt;&lt;BR /&gt;-g means groupname&lt;BR /&gt;-d dir (path for the users homedir)&lt;BR /&gt;-s users running shell&lt;BR /&gt;-c comments(username,surname,dept,Pbx,etc)&lt;BR /&gt;-m creates the home directory if not exist...&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;i think deserved the points!&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2005 00:21:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581023#M229894</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-07-13T00:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581024#M229895</link>
      <description>hi, &lt;BR /&gt;&lt;BR /&gt;you can create user in two ways one is executing commands in command line and another is using SAM .&lt;BR /&gt;&lt;BR /&gt;before creating a new user , you should know all details&lt;BR /&gt;&lt;BR /&gt;Logon name : &lt;BR /&gt;&lt;BR /&gt;user id :&lt;BR /&gt;&lt;BR /&gt;gorup id : &lt;BR /&gt;&lt;BR /&gt;home directory &lt;BR /&gt;&lt;BR /&gt;shell....&lt;BR /&gt;&lt;BR /&gt;------------xxxxxxxxxxxxxxxx------------------&lt;BR /&gt;syntax :&lt;BR /&gt;# useradd -u &lt;UID&gt; -g &lt;GROUP id=""&gt; -d &lt;HOME directory=""&gt;&lt;BR /&gt;&lt;BR /&gt;---------xxxxxxxxxxxxxxxxxx---------------&lt;BR /&gt;example : &lt;BR /&gt;# useradd -u 100 -g test -d /home/test test&lt;BR /&gt;&lt;BR /&gt;here in the above example the logon name is : test , userid is :100 , group id is : test , home directory is : /home/test.&lt;BR /&gt;&lt;BR /&gt;----------xxxxxxxxxxxxxxxxxxx--------------&lt;BR /&gt;&lt;BR /&gt;if you are executing in command prompt then you have to create the home directory manually and after creating user , execute passwd command to assign the password for the user....&lt;BR /&gt;&lt;BR /&gt;....or else &lt;BR /&gt;if you are using SAM then make sure....create home directory option is checked...and it will ask for password option , where you can issue the password....&lt;BR /&gt;&lt;BR /&gt;now check with the new user's logon id : u will be able to logon to the system&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;&lt;BR /&gt;Venkatesan.&lt;/HOME&gt;&lt;/GROUP&gt;&lt;/UID&gt;</description>
      <pubDate>Wed, 13 Jul 2005 01:02:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581024#M229895</guid>
      <dc:creator>Venkatesan_5</dc:creator>
      <dc:date>2005-07-13T01:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581025#M229896</link>
      <description>Hi,&lt;BR /&gt;   You can use use SAM to do it in better way. When you use sam for adding a user it gives you a option for selecting whether you want to creat a home directory or not and while creating a user it allows you to set the passwd too. &lt;BR /&gt;If you want to create a user through command promt so you can use useradd command with -m option to create a home directory for the use and can use passwd command to set the passwd for that user.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Manoj</description>
      <pubDate>Wed, 13 Jul 2005 06:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581025#M229896</guid>
      <dc:creator>Manoj_36</dc:creator>
      <dc:date>2005-07-13T06:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581026#M229897</link>
      <description>Hi Pat,&lt;BR /&gt;&lt;BR /&gt;by SAM you will do it.&lt;BR /&gt;Otherwise I usually use two quick commands (pippo is a new user for example):&lt;BR /&gt;&lt;BR /&gt;1.&lt;BR /&gt;useradd -m pippo&lt;BR /&gt;2.&lt;BR /&gt;passwd pippo&lt;BR /&gt;&lt;BR /&gt;-m option on useradd command creates an home directory following contents of /etc/skel.&lt;BR /&gt;&lt;BR /&gt;Hope this helps you.&lt;BR /&gt;Please don't forget to assign points. Thanks for that!&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Fabio</description>
      <pubDate>Wed, 13 Jul 2005 06:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581026#M229897</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2005-07-13T06:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581027#M229898</link>
      <description>Hi Pat, try this;&lt;BR /&gt;&lt;BR /&gt;useradd -g &lt;GROUP name=""&gt; -d [or use -m to cretae home directory and copy standard files to it] &lt;FULL path="" to="" home="" directory="" or="" defaults="" to="" current_base_dir=""&gt; -c &lt;FULL_NAME&gt; &lt;USERNAME&gt;.&lt;BR /&gt;&lt;BR /&gt;You can put the -u &lt;UID&gt; switch before the -g &lt;GROUP_NAME&gt; if you want to specify a UID but usually its easier to let it default to the next highest unused UID.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;/GROUP_NAME&gt;&lt;/UID&gt;&lt;/USERNAME&gt;&lt;/FULL_NAME&gt;&lt;/FULL&gt;&lt;/GROUP&gt;</description>
      <pubDate>Wed, 13 Jul 2005 21:21:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581027#M229898</guid>
      <dc:creator>Brendan McDonald</dc:creator>
      <dc:date>2005-07-13T21:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create new user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581028#M229899</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;standard command I use:&lt;BR /&gt;&lt;BR /&gt;useradd -g &lt;GROUP&gt; -G &lt;SECONDARY group=""&gt; -s /usr/bin/ksh -c "name in full, dept info, ext " -m &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;hth&lt;/USERNAME&gt;&lt;/SECONDARY&gt;&lt;/GROUP&gt;</description>
      <pubDate>Wed, 13 Jul 2005 21:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/create-new-user/m-p/3581028#M229899</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2005-07-13T21:37:51Z</dc:date>
    </item>
  </channel>
</rss>

