<?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: How to force a password change? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426826#M85</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think I got a solution:&lt;BR /&gt;&lt;BR /&gt;chage supports an option -d which sets the date of last password change. &lt;BR /&gt;&lt;BR /&gt;So if you want to force your user to change his/her passwort after 90 days, you would enter the following command:&lt;BR /&gt;&lt;BR /&gt;chage -M 90 username&lt;BR /&gt;&lt;BR /&gt;Now you want him to change his passwort immediately, so today (12.03.2002) you would do the following&lt;BR /&gt;&lt;BR /&gt;chage -M 90 -d 12.12.2001 username&lt;BR /&gt;&lt;BR /&gt;I think it would be much easier to let the computer do the work...&lt;BR /&gt;&lt;BR /&gt;I did not test this but possibly this could work to calculated the date in UNIX time format. &lt;BR /&gt;&lt;BR /&gt;bc `date +%s` - (24*60*60*90)&lt;BR /&gt;&lt;BR /&gt;Unfortunately I do not know how to convert this back to a normal date format.&lt;BR /&gt;&lt;BR /&gt;Christoph</description>
    <pubDate>Tue, 12 Mar 2002 10:44:50 GMT</pubDate>
    <dc:creator>Christoph Rothe_3</dc:creator>
    <dc:date>2002-03-12T10:44:50Z</dc:date>
    <item>
      <title>How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426815#M74</link>
      <description>O.K.  I posted this message in the RedHat newsgroup but no go.&lt;BR /&gt;&lt;BR /&gt;On HP-UX, setting someone's password with an -f parameter, will force that user to change his/her password next time the log on, like so:&lt;BR /&gt;&lt;BR /&gt;passwd -f user&lt;BR /&gt;&lt;BR /&gt;In Linux, it has a completely different meaning.  I was browsing through man pages on passwd but could not find anything that would remotely resemble my "passwd -f" from HP-UX.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 20 Jun 2000 18:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426815#M74</guid>
      <dc:creator>Bolek Mynarski</dc:creator>
      <dc:date>2000-06-20T18:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426816#M75</link>
      <description>Boleslaw,&lt;BR /&gt;&lt;BR /&gt;The command you are looking for is called chage.  I believe that you need the shadow password package inorder to manipulate the password age and expiration dates.&lt;BR /&gt;&lt;BR /&gt;I have attached the man Page for you.&lt;BR /&gt;&lt;BR /&gt;Chage is part of the Shadow Utils Package.&lt;BR /&gt;&lt;BR /&gt;I am running Linux Mandrake 7.0, but I'm sure there are similar tools available at your local RedHat RPM Mirror.&lt;BR /&gt;&lt;BR /&gt;[root@offsite1 /root]# which chage&lt;BR /&gt;/usr/bin/chage&lt;BR /&gt;[root@offsite1 /root]# rpm -qf /usr/bin/chage&lt;BR /&gt;shadow-utils-19990827-3mdk&lt;BR /&gt;[root@offsite1 /root]# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps!&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jun 2000 19:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426816#M75</guid>
      <dc:creator>Albert E. Whale, CISSP</dc:creator>
      <dc:date>2000-06-20T19:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426817#M76</link>
      <description>Hi Albert,&lt;BR /&gt;&lt;BR /&gt;That's not what I'm looking for.  "chage" would be an equivalent of secure accounts on HP-UX.  What I am looking for is something as simple as (taken from HP-UX):&lt;BR /&gt;&lt;BR /&gt;passwd -f user&lt;BR /&gt;&lt;BR /&gt;which will force that user to change his/her password at the next logon.  No fooling around with password age, minimum and maximum number of days and so on.  :-(&lt;BR /&gt;&lt;BR /&gt;So far, this is the only shortcoming I've seen on part of Linux in comparison to HP-UX (except for LVM which would be a killer app if Linux had it).</description>
      <pubDate>Tue, 20 Jun 2000 23:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426817#M76</guid>
      <dc:creator>Bolek Mynarski</dc:creator>
      <dc:date>2000-06-20T23:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426818#M77</link>
      <description>to my surprise: you seem to be right. &lt;BR /&gt;but you can handle it, by adding :&lt;BR /&gt;-----&lt;BR /&gt;if [ -e .pw_lock ] &lt;BR /&gt;then &lt;BR /&gt; passwd&lt;BR /&gt; rm .pw_lock&lt;BR /&gt;fi&lt;BR /&gt;-----&lt;BR /&gt;to users .profile.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;then write a script "pwforce" or s'thing&lt;BR /&gt;containing:&lt;BR /&gt;-----&lt;BR /&gt;touch /home/$1/.pw_lock&lt;BR /&gt;chown $1 /home/$1/.pw_lock&lt;BR /&gt;-----&lt;BR /&gt;$1 being your user and assuming your HOME-dirs have the naming-convention &lt;BR /&gt;/home/&lt;USERNAME&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Wed, 21 Jun 2000 08:39:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426818#M77</guid>
      <dc:creator>Dan Am</dc:creator>
      <dc:date>2000-06-21T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426819#M78</link>
      <description>BTW: &lt;BR /&gt;&lt;BR /&gt;Suse-Distro has LVM. Bit shaky still, esp. &lt;BR /&gt;when you set it up, but works on this very machine, striping and all.</description>
      <pubDate>Wed, 21 Jun 2000 08:43:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426819#M78</guid>
      <dc:creator>Dan Am</dc:creator>
      <dc:date>2000-06-21T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426820#M79</link>
      <description>Boleslaw,&lt;BR /&gt;&lt;BR /&gt;I believe that if you use:&lt;BR /&gt;chage -M 0 &lt;USER&gt; &lt;BR /&gt;&lt;BR /&gt;you will acheive the same functionality.&lt;BR /&gt;&lt;BR /&gt;Here's the excerpt I am reading from the man pages.&lt;BR /&gt;&lt;BR /&gt;With  the  -M  option, the value of maxdays is the maximum number of days during which a  password  is  valid.   When maxdays  plus  lastday  is  less than the current day, the user will be required to change her password before  being able  to  use  her account.  This occurance can be planned for in advance by use of the -W option, which provides the user with advance warning.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/USER&gt;</description>
      <pubDate>Wed, 21 Jun 2000 12:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426820#M79</guid>
      <dc:creator>Albert E. Whale, CISSP</dc:creator>
      <dc:date>2000-06-21T12:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426821#M80</link>
      <description>Hi Albert,&lt;BR /&gt;&lt;BR /&gt;I read man pages too.  After trying it (last night) and today (one more time with chage -M 0 user), I'm getting this:&lt;BR /&gt;&lt;BR /&gt;Warning: your password will expire in -2 days&lt;BR /&gt;&lt;BR /&gt;and you can happily login with the same password over and over again.&lt;BR /&gt;&lt;BR /&gt;I'll take a look at the script way later on but it already seems like it's going to be a lot of hassle.  I miss my passwd -f user from HP-UX :-(</description>
      <pubDate>Wed, 21 Jun 2000 18:38:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426821#M80</guid>
      <dc:creator>Bolek Mynarski</dc:creator>
      <dc:date>2000-06-21T18:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426822#M81</link>
      <description>Boleslaw,&lt;BR /&gt;&lt;BR /&gt;We're going to solve this yet, but I need a few points to conitnue this train ....&lt;BR /&gt;&lt;BR /&gt;Then send us the following &lt;BR /&gt;&lt;BR /&gt;chage -l &lt;USER&gt;&lt;BR /&gt;&lt;BR /&gt;I want to see what the 2 days is, Probably a warnign field which needs to be reset in order to take effect immediately.&lt;BR /&gt;&lt;BR /&gt;Don't give up on chage yet.&lt;BR /&gt;&lt;BR /&gt;&lt;/USER&gt;</description>
      <pubDate>Wed, 21 Jun 2000 19:00:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426822#M81</guid>
      <dc:creator>Albert E. Whale, CISSP</dc:creator>
      <dc:date>2000-06-21T19:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426823#M82</link>
      <description>Take a look at &lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt; and search for 'password aging'. Note that this can only be done on Linux systems that are using shadowed passwords. &lt;BR /&gt;&lt;BR /&gt;For addition reference, check:&lt;BR /&gt;&lt;A href="http://www.cis.ohio-state.edu/~mamrak/CIS762/unix_encryption_tut.html" target="_blank"&gt;http://www.cis.ohio-state.edu/~mamrak/CIS762/unix_encryption_tut.html&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.linux.com/howto/Shadow-Password-HOWTO-7.html" target="_blank"&gt;http://www.linux.com/howto/Shadow-Password-HOWTO-7.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2001 17:24:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426823#M82</guid>
      <dc:creator>Michael Worsham</dc:creator>
      <dc:date>2001-10-02T17:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426824#M83</link>
      <description>CHANGELOG FROM shadow-utils:&lt;BR /&gt;shadow-960129 =&amp;gt; shadow-960810&lt;BR /&gt;- SunOS4-like passwd -e (force change on next login) (isexpired.c, passwd.c)&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Dec 2001 22:06:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426824#M83</guid>
      <dc:creator>Brian Roberson</dc:creator>
      <dc:date>2001-12-18T22:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426825#M84</link>
      <description>try&lt;BR /&gt;&lt;BR /&gt;passwd -x user&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;John</description>
      <pubDate>Thu, 17 Jan 2002 18:27:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426825#M84</guid>
      <dc:creator>Jonathan Pulfer</dc:creator>
      <dc:date>2002-01-17T18:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426826#M85</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think I got a solution:&lt;BR /&gt;&lt;BR /&gt;chage supports an option -d which sets the date of last password change. &lt;BR /&gt;&lt;BR /&gt;So if you want to force your user to change his/her passwort after 90 days, you would enter the following command:&lt;BR /&gt;&lt;BR /&gt;chage -M 90 username&lt;BR /&gt;&lt;BR /&gt;Now you want him to change his passwort immediately, so today (12.03.2002) you would do the following&lt;BR /&gt;&lt;BR /&gt;chage -M 90 -d 12.12.2001 username&lt;BR /&gt;&lt;BR /&gt;I think it would be much easier to let the computer do the work...&lt;BR /&gt;&lt;BR /&gt;I did not test this but possibly this could work to calculated the date in UNIX time format. &lt;BR /&gt;&lt;BR /&gt;bc `date +%s` - (24*60*60*90)&lt;BR /&gt;&lt;BR /&gt;Unfortunately I do not know how to convert this back to a normal date format.&lt;BR /&gt;&lt;BR /&gt;Christoph</description>
      <pubDate>Tue, 12 Mar 2002 10:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426826#M85</guid>
      <dc:creator>Christoph Rothe_3</dc:creator>
      <dc:date>2002-03-12T10:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426827#M86</link>
      <description>The man page is not written particularly well, but the following has been tested and works...&lt;BR /&gt;&lt;BR /&gt;prompt&amp;gt; chage -d 0 username&lt;BR /&gt;&lt;BR /&gt;or...&lt;BR /&gt;&lt;BR /&gt;chage the third field in /etc/shadow entry to a 0 (zero, not capital "o").  &lt;BR /&gt;&lt;BR /&gt;I hope this helps.</description>
      <pubDate>Thu, 14 Mar 2002 05:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426827#M86</guid>
      <dc:creator>Christopher C. Weis</dc:creator>
      <dc:date>2002-03-14T05:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426828#M87</link>
      <description>This should work:&lt;BR /&gt; # chage -m0 -M99999 -d0 login_name</description>
      <pubDate>Thu, 14 Mar 2002 15:22:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426828#M87</guid>
      <dc:creator>Bjoern Myrland</dc:creator>
      <dc:date>2002-03-14T15:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to force a password change?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426829#M88</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;On my linux work:&lt;BR /&gt;&lt;BR /&gt;passwd -e username</description>
      <pubDate>Fri, 09 Aug 2002 10:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-force-a-password-change/m-p/2426829#M88</guid>
      <dc:creator>solution42</dc:creator>
      <dc:date>2002-08-09T10:11:28Z</dc:date>
    </item>
  </channel>
</rss>

