[CentOS] Password Expiry
Hello, 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. Thanks, Manish ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Password Expiry
2010/10/18 Manish Kathuria mkathu...@tuxtechnologies.co.in: Hello, 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. See: http://linux.about.com/library/cmd/blcmdl1_chage.htm -- Eero ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Password Expiry
On Mon, Oct 18, 2010 at 09:42:59PM +0530, Manish Kathuria wrote: Hello, 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. passwd -l (that's a lower case L) as in lock will immediately leave the account available. 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 PGP keyID EB3467D6 ( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 ) gpg --keyserver pgp.mit.edu --recv-keys EB3467D6 The Master: You were destined to die, it was written. Buffy: What can I say? I flunked the written. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Password Expiry
On Mon, Oct 18, 2010 at 10:21 PM, Scott Robbins scot...@nyc.rr.com 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@centos.org http://lists.centos.org/mailman/listinfo/centos