<?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: new users script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078350#M810639</link>
    <description>Matthew,&lt;BR /&gt;  As Patrick pointed out, useradd is the right way to add new users.  Create a wrapper script with useradd.&lt;BR /&gt;  useradd -u &lt;UID&gt; -m &lt;LOGIN_NAME&gt;.&lt;BR /&gt;&lt;BR /&gt;  man useradd for more details.&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;/LOGIN_NAME&gt;&lt;/UID&gt;</description>
    <pubDate>Thu, 25 Sep 2003 10:05:13 GMT</pubDate>
    <dc:creator>Umapathy S</dc:creator>
    <dc:date>2003-09-25T10:05:13Z</dc:date>
    <item>
      <title>new users script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078348#M810636</link>
      <description>I am writing a script that will add 50 new users but I am using a secure system and when I go to modidy the password I get â  password cannot be changed.  Reason: Cannot access protected password entry.â    I am simply adding the user to /etc/passwd.  What else do I need to do?    The script works great but how do I add the user to the protected password database? also, can I script in the password? This is part of the script: &lt;BR /&gt;&lt;BR /&gt;CT=104&lt;BR /&gt;for i in  for i in `ls *.prt`&lt;BR /&gt;do&lt;BR /&gt;NEWUSER="`echo ${i} |sed -e 's/..\.prt//'`"&lt;BR /&gt;echo "$NEWUSER:*:$CT:104:,,,:/ftp/ftproot/./$NEWUSER:/usr/bin/false" &amp;gt;&amp;gt; /etc/passwd&lt;BR /&gt;CT=`expr $CT + 1`&lt;BR /&gt;done&lt;BR /&gt;thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Ma</description>
      <pubDate>Thu, 25 Sep 2003 09:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078348#M810636</guid>
      <dc:creator>matthew mills</dc:creator>
      <dc:date>2003-09-25T09:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: new users script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078349#M810638</link>
      <description>You really should be using the 'useradd' command to do this.  All the users that you add must also be added to the /tcb/files/auth/ structure as well.  I would not want to try to create each users entry in that structure manually.&lt;BR /&gt; &lt;BR /&gt;# man useradd&lt;BR /&gt; &lt;BR /&gt;for more information.</description>
      <pubDate>Thu, 25 Sep 2003 09:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078349#M810638</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-09-25T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: new users script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078350#M810639</link>
      <description>Matthew,&lt;BR /&gt;  As Patrick pointed out, useradd is the right way to add new users.  Create a wrapper script with useradd.&lt;BR /&gt;  useradd -u &lt;UID&gt; -m &lt;LOGIN_NAME&gt;.&lt;BR /&gt;&lt;BR /&gt;  man useradd for more details.&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;/LOGIN_NAME&gt;&lt;/UID&gt;</description>
      <pubDate>Thu, 25 Sep 2003 10:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078350#M810639</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-09-25T10:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: new users script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078351#M810640</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;I believe when you mention "secure system", you meant "trusted system". For trusted system, the protected password entry resides in /tcb/auth/files/...&lt;BR /&gt; &lt;BR /&gt;Thus, any script that modifies /etc/passwd will need to modify the equivalent userid file in /tcb/auth/files/...&lt;BR /&gt; &lt;BR /&gt;I do agree with the rest however that using robust system commands is cleanest.&lt;BR /&gt; &lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt; &lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 25 Sep 2003 11:45:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/new-users-script/m-p/3078351#M810640</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2003-09-25T11:45:03Z</dc:date>
    </item>
  </channel>
</rss>

