Re: Password Expiry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Oct 18, 2010 at 10:21 PM, Scott Robbins <scottro@xxxxxxxxxx> wrote:
> On Mon, Oct 18, 2010 at 09:42:59PM +0530, Manish Kathuria wrote:

>> Is there any command / option available on CentOS to expire a user's
>> password immediately ? I remember using  "passwd -e" on some other
>> distribution but the -e option does not seem to be present on CentOS
>> 5.x.
> If you want to make them change their password right now
>
> chage -d 0 username
>
> Which gives a message
>
>
> Password:
> You are required to change your password immediately (root enforced)
> Changing password for test2
> (current) UNIX password:
>
>
> --
> Scott Robbins

Thanks, this is precisely what I was looking for. Thank you Eero too.

--
Manish
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux