<?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 SAM, TCB &amp;amp; Changing a users Password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515769#M22795</link>
    <description>Right ... I am needing some help guys ....&lt;BR /&gt;&lt;BR /&gt;I have a little problem when using SAM to add a new user ...&lt;BR /&gt;&lt;BR /&gt;1. I add the user&lt;BR /&gt;2. I get a password for the user from SAM/TCB.&lt;BR /&gt;3. I have to then find the user, and Modify the password to a standard new password (something like newpassword)&lt;BR /&gt;4. And then manually tell SAM to set the expiration to now (so the user will have to change the password).&lt;BR /&gt;&lt;BR /&gt;Now I managed to script a part of SAM to expire the password staright after I created the account (using the POST conditions), but I can not find a way to automate the change of password.&lt;BR /&gt;&lt;BR /&gt;I have to go find the user (I have over a 1000), and then manually change. Or I have to go out into shell and run passwd.&lt;BR /&gt;&lt;BR /&gt;I tried running passwd in the POST condition script, but that just hangs SAM.&lt;BR /&gt;&lt;BR /&gt;I know it doesn't seem like much, but when you have to create 200 users it gets very tiring.&lt;BR /&gt;&lt;BR /&gt;Is there any way that I can use a command (without interaction) to create a new password??&lt;BR /&gt;&lt;BR /&gt;Or, Is there a setting that will tell SAM to let me pick the password at creation (not the Security Setting "Let User decide" , because that still gives me the SAM generated password) ...??&lt;BR /&gt;&lt;BR /&gt;HELP ... HELP</description>
    <pubDate>Tue, 10 Apr 2001 18:54:45 GMT</pubDate>
    <dc:creator>Ivan A. Marshall</dc:creator>
    <dc:date>2001-04-10T18:54:45Z</dc:date>
    <item>
      <title>SAM, TCB &amp; Changing a users Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515769#M22795</link>
      <description>Right ... I am needing some help guys ....&lt;BR /&gt;&lt;BR /&gt;I have a little problem when using SAM to add a new user ...&lt;BR /&gt;&lt;BR /&gt;1. I add the user&lt;BR /&gt;2. I get a password for the user from SAM/TCB.&lt;BR /&gt;3. I have to then find the user, and Modify the password to a standard new password (something like newpassword)&lt;BR /&gt;4. And then manually tell SAM to set the expiration to now (so the user will have to change the password).&lt;BR /&gt;&lt;BR /&gt;Now I managed to script a part of SAM to expire the password staright after I created the account (using the POST conditions), but I can not find a way to automate the change of password.&lt;BR /&gt;&lt;BR /&gt;I have to go find the user (I have over a 1000), and then manually change. Or I have to go out into shell and run passwd.&lt;BR /&gt;&lt;BR /&gt;I tried running passwd in the POST condition script, but that just hangs SAM.&lt;BR /&gt;&lt;BR /&gt;I know it doesn't seem like much, but when you have to create 200 users it gets very tiring.&lt;BR /&gt;&lt;BR /&gt;Is there any way that I can use a command (without interaction) to create a new password??&lt;BR /&gt;&lt;BR /&gt;Or, Is there a setting that will tell SAM to let me pick the password at creation (not the Security Setting "Let User decide" , because that still gives me the SAM generated password) ...??&lt;BR /&gt;&lt;BR /&gt;HELP ... HELP</description>
      <pubDate>Tue, 10 Apr 2001 18:54:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515769#M22795</guid>
      <dc:creator>Ivan A. Marshall</dc:creator>
      <dc:date>2001-04-10T18:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAM, TCB &amp; Changing a users Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515770#M22796</link>
      <description>Ivan, when you're creating the user there is an option called Modify password options. This option allows you to a) leave the password with no restrictions(this is the default), b) force password change at next login, c) allow only super user to change password or d) enable password aging. &lt;BR /&gt;on the command line you can also force password change at next login by typing:&lt;BR /&gt;passwd -f username&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Jim Moffitt</description>
      <pubDate>Tue, 10 Apr 2001 19:14:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515770#M22796</guid>
      <dc:creator>Jim Moffitt_1</dc:creator>
      <dc:date>2001-04-10T19:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAM, TCB &amp; Changing a users Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515771#M22797</link>
      <description>Nope ...&lt;BR /&gt;&lt;BR /&gt;You are talking about normal systems ...&lt;BR /&gt;&lt;BR /&gt;Not TCB ...&lt;BR /&gt;&lt;BR /&gt;Anyone else ....??&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2001 19:20:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515771#M22797</guid>
      <dc:creator>Ivan A. Marshall</dc:creator>
      <dc:date>2001-04-10T19:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAM, TCB &amp; Changing a users Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515772#M22798</link>
      <description>The modprpw command (/usr/lbin/modprpw) may be of some use on a trusted system.  I believe it is still unsupported but I found a manpage through searching the IT resource center.  It allows a "-w" option to supply an encrypted password for a user.  I have not used this feature however.</description>
      <pubDate>Wed, 11 Apr 2001 12:41:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515772#M22798</guid>
      <dc:creator>Bob Hochstetler</dc:creator>
      <dc:date>2001-04-11T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAM, TCB &amp; Changing a users Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515773#M22799</link>
      <description>OK .. I know of modprpw ....&lt;BR /&gt;&lt;BR /&gt;But I can not find reference to a -w on the HP web site ....&lt;BR /&gt;&lt;BR /&gt;So I can supply a password in normal text ...&lt;BR /&gt;&lt;BR /&gt;e.g. modprpw -w testpassword&lt;BR /&gt;&lt;BR /&gt;????</description>
      <pubDate>Wed, 11 Apr 2001 12:55:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515773#M22799</guid>
      <dc:creator>Ivan A. Marshall</dc:creator>
      <dc:date>2001-04-11T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAM, TCB &amp; Changing a users Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515774#M22800</link>
      <description>I just found a man page for you from this question today. Hope it's helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe505a22d6d27d5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xe505a22d6d27d5118fef0090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Thu, 12 Apr 2001 18:44:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515774#M22800</guid>
      <dc:creator>Jim Moffitt_1</dc:creator>
      <dc:date>2001-04-12T18:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAM, TCB &amp; Changing a users Password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515775#M22801</link>
      <description>Unfortunately, supported HP-UX mechanisms make the task of adding a user w/o operator intervention (i.e. totally by script) are virtually non-existant.&lt;BR /&gt;&lt;BR /&gt;To accomplish your task, you'll want to sharpen up your C pencil.&lt;BR /&gt;&lt;BR /&gt;Depending on the options you chose for Trusted HP-UX, we've done something like&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/useradd.sam -g &lt;USERNAME&gt; -d /home/&lt;USERNAME&gt; -c "&lt;COMMENTFIELD&gt;" -s/usr/bin/&lt;SHELL&gt;  -p "&lt;PASSWD&gt;" -o -u &lt;UID&gt; &lt;USERNAME&gt;&lt;BR /&gt;&lt;BR /&gt;where password is an already crypted password returned by C's crypt() function.  In our setup, we also had to "activate" the account by making the password's last changed date current, so that the user isn't prompted to change their password during login.  Here's a snippet of code that did the trick:&lt;BR /&gt;&lt;BR /&gt;        localpr_passwdent=*mypr_passwdent;&lt;BR /&gt;        localpr_passwdent.ufld.fd_schange=time(NULL);&lt;BR /&gt;        localpr_passwdent.uflg.fg_schange=1;&lt;BR /&gt;        if (putprpwnam(localpr_passwdent.ufld.fd_name, &amp;amp;localpr_passwdent)==0) {&lt;BR /&gt;                printf("activate: password modify failed\n");&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;Note, if you extract existing passwords from the TCB of one host to bulk build accounts on another host, you don't need the crypt function.  The passwords are already crypted.  &lt;BR /&gt;&lt;BR /&gt;We used a C program to extract the old account information into a tab delimited file.  Then we used a script in conjunction with the "activate" code to set up the accounts on the new system.&lt;/USERNAME&gt;&lt;/UID&gt;&lt;/PASSWD&gt;&lt;/SHELL&gt;&lt;/COMMENTFIELD&gt;&lt;/USERNAME&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Thu, 12 Apr 2001 19:29:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sam-tcb-amp-changing-a-users-password/m-p/2515775#M22801</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2001-04-12T19:29:05Z</dc:date>
    </item>
  </channel>
</rss>

