<?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: Modifying a user questions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681125#M245396</link>
    <description>&lt;BR /&gt;I am still having problems. I ran the following command &lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -m exptm=60 &lt;BR /&gt;&lt;BR /&gt;but when I checked in SAM, where it says:&lt;BR /&gt;&lt;BR /&gt;Set user-specific password aging policies  ...&lt;BR /&gt;&lt;BR /&gt;the following field was not modified.&lt;BR /&gt;&lt;BR /&gt;Password Expiration Time (days):  60&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why is this happening and what can be done about it?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Nov 2005 09:14:07 GMT</pubDate>
    <dc:creator>dictum9</dc:creator>
    <dc:date>2005-11-30T09:14:07Z</dc:date>
    <item>
      <title>Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681109#M245380</link>
      <description>&lt;BR /&gt;What exactly happens when a user gets modified with SAM?  &lt;BR /&gt;I need to change the user name from one login to another and:&lt;BR /&gt;(1) I modify it in SAM&lt;BR /&gt;(2) Run vipw and change the home directory to new username&lt;BR /&gt;(3) rename the home directory from old login to new login&lt;BR /&gt;&lt;BR /&gt;Is there a way to script the whole thing?&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2005 14:58:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681109#M245380</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-29T14:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681110#M245381</link>
      <description>I'm not sure what SAM does, but this is a simple one-liner from the command line.&lt;BR /&gt;&lt;BR /&gt;usermod -l newusername oldusername&lt;BR /&gt;&lt;BR /&gt;That's the basic one for just changing the username. You can use -m to create the new home directory also. Several other options for changing the shell, GECOS field, UID, etc. See usermod(1M).</description>
      <pubDate>Tue, 29 Nov 2005 15:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681110#M245381</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-29T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681111#M245382</link>
      <description>Yes, of course there is a way to script the whole thing. However, it matters whether or not this is a trusted system as to exactly what happens. The key to your task is the usermod command which will work in both Trusted abnd unTrusted environments. Man usermod for details.</description>
      <pubDate>Tue, 29 Nov 2005 15:02:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681111#M245382</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-29T15:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681112#M245383</link>
      <description>BTW... the man page says -m option moves the home directory. That's not really accurate from my experience with the command. It copies the contents of the old home directory into the new one and modifies /etc/passwd accordingly, but the old home directory remains and you must remove it manually if so desired to clean up.</description>
      <pubDate>Tue, 29 Nov 2005 15:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681112#M245383</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-29T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681113#M245384</link>
      <description>Thank you... Another question.&lt;BR /&gt;&lt;BR /&gt;I want to set password aging to 90 days and prompt for password change upon login.&lt;BR /&gt;&lt;BR /&gt;I am looking at modprpw and it has these options, what's the difference?&lt;BR /&gt;&lt;BR /&gt;          exptm=value         database u_exp=(value*86400).&lt;BR /&gt;&lt;BR /&gt;                               Set password expiration time interval (days).&lt;BR /&gt;                               0 = expired.  Same as non-trusted mode&lt;BR /&gt;                               maximum time.&lt;BR /&gt;&lt;BR /&gt;           lftm=value          database u_life.&lt;BR /&gt;&lt;BR /&gt;                               Set password life time interval (days).  0 =&lt;BR /&gt;                               infinite.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2005 15:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681113#M245384</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-29T15:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681114#M245385</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;How do I make the system prompt the user for a new password with the next login?&lt;BR /&gt;&lt;BR /&gt;In SAM, it is called immediate password change.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2005 15:49:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681114#M245385</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-29T15:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681115#M245386</link>
      <description>You "age" the password via the "passwd -f login" command. Man passwd for details.</description>
      <pubDate>Tue, 29 Nov 2005 15:51:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681115#M245386</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-11-29T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681116#M245387</link>
      <description>Set the maximum password time:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -m exptm=90 username&lt;BR /&gt;&lt;BR /&gt;Expire immediately:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -e username&lt;BR /&gt;&lt;BR /&gt;Set password to random value (user forced to change on next login):&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -x username</description>
      <pubDate>Tue, 29 Nov 2005 15:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681116#M245387</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-29T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681117#M245388</link>
      <description>Hi etc ,&lt;BR /&gt;&lt;BR /&gt;You can also set the password age , with SAM.&lt;BR /&gt;&lt;BR /&gt;SAM --&amp;gt; Accounts for Users and Groups -&amp;gt; Users --&amp;gt; Select user --&amp;gt; Action --&amp;gt; Modify --&amp;gt; Modify Password Options --&amp;gt; Select " Password Options: " to : Enable Password Aging.&lt;BR /&gt;&lt;BR /&gt;And you will get the following options:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Password Options:  [ Enable Password Aging ]  &lt;BR /&gt;           &lt;BR /&gt;                                                                 &lt;BR /&gt;             Password Expiration Time (1-63 weeks):               &lt;BR /&gt;                                                                 &lt;BR /&gt; Minimum Time Between Password Changes (0-63 weeks):  0            &lt;BR /&gt;                                                                &lt;BR /&gt;[ ] Force Password Change At Next Login              &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy ,&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Raj.</description>
      <pubDate>Tue, 29 Nov 2005 16:03:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681117#M245388</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-11-29T16:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681118#M245389</link>
      <description>passwd -x &lt;MAX days=""&gt;&lt;BR /&gt;&lt;BR /&gt;rounds it up to the week, ie. passwd -x 60 results in the actual value being set to 63 if checked in sam. How can I override that?&lt;BR /&gt;&lt;BR /&gt;&lt;/MAX&gt;</description>
      <pubDate>Tue, 29 Nov 2005 17:25:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681118#M245389</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-29T17:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681119#M245390</link>
      <description>You can't. That's the way it works.</description>
      <pubDate>Tue, 29 Nov 2005 17:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681119#M245390</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-29T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681120#M245391</link>
      <description>In other words, if I want the precise value of say 60 says for password expiration, I have to use SAM?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2005 17:33:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681120#M245391</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-29T17:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681121#M245392</link>
      <description>Let me restate that... the passwd man page seems to indicate that behavior is what to expect from a nontrusted system. It doesn't explicitly say that it behaves differently on a trusted system, however. "/usr/lbin/modprpw -e exptm=60 username" will set the expiration period to exactly 60 days.</description>
      <pubDate>Tue, 29 Nov 2005 17:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681121#M245392</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-29T17:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681122#M245393</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;I did -m exptm=60 but when I looked in sam, the old value was still there... Is that -m option equivalent to password -x?</description>
      <pubDate>Tue, 29 Nov 2005 17:35:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681122#M245393</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-29T17:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681123#M245394</link>
      <description>Oops... sorry about a typo in that last message. The command is:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -m exptm=60 username</description>
      <pubDate>Tue, 29 Nov 2005 17:35:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681123#M245394</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-29T17:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681124#M245395</link>
      <description>That seems to work.. thank you.</description>
      <pubDate>Tue, 29 Nov 2005 17:53:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681124#M245395</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-29T17:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681125#M245396</link>
      <description>&lt;BR /&gt;I am still having problems. I ran the following command &lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -m exptm=60 &lt;BR /&gt;&lt;BR /&gt;but when I checked in SAM, where it says:&lt;BR /&gt;&lt;BR /&gt;Set user-specific password aging policies  ...&lt;BR /&gt;&lt;BR /&gt;the following field was not modified.&lt;BR /&gt;&lt;BR /&gt;Password Expiration Time (days):  60&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why is this happening and what can be done about it?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2005 09:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681125#M245396</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-30T09:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681126#M245397</link>
      <description>PS in the above example, the two values are the same (60) but in SAM, it stayed 60 no matter what value I used on the command line.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2005 09:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681126#M245397</guid>
      <dc:creator>dictum9</dc:creator>
      <dc:date>2005-11-30T09:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681127#M245398</link>
      <description>Shalom etc,&lt;BR /&gt;&lt;BR /&gt;Suggestion.&lt;BR /&gt;&lt;BR /&gt;After doing something in sam, take a look at the commands that it used.&lt;BR /&gt;&lt;BR /&gt;You may see some differences between what you were doing on the command line and what sam does.&lt;BR /&gt;&lt;BR /&gt;options&lt;BR /&gt;view SAM log&lt;BR /&gt;choose commands only.&lt;BR /&gt;&lt;BR /&gt;This will help you learn and is quite useful when it comes time to create a script.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 30 Nov 2005 09:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681127#M245398</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-30T09:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying a user questions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681128#M245399</link>
      <description>Seemed to work ok for me just now. Are you completely exiting the "Modify User's Security Policies" window? If you don't, the information is not refreshed from the changes you make with modprpw at the command line.</description>
      <pubDate>Wed, 30 Nov 2005 09:40:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modifying-a-user-questions/m-p/3681128#M245399</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-30T09:40:36Z</dc:date>
    </item>
  </channel>
</rss>

