Operating System - Linux
1833562 Members
3468 Online
110061 Solutions
New Discussion

Re: Set password to expire immediately.

 
joseph wholey
Regular Advisor

Set password to expire immediately.

RHEL AS3. Trying to add user where there password expires as soon as they log in (forcing them to change it... similar to the way it works in AIX). Can't seem to figure out how to do it. Any help would be greatly appreciated. thx.
12 REPLIES 12
Ivan Ferreira
Honored Contributor

Re: Set password to expire immediately.

Use:

chage -d 0 username

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Sergejs Svitnevs
Honored Contributor

Re: Set password to expire immediately.

chage -M 0

and the user will be prompted to come up with a new password at next login.

Regards
joseph wholey
Regular Advisor

Re: Set password to expire immediately.

When I do that, it prompts me for the new password, I enter it and I get the following message:

passwd: Authentication token manipulation error
Connection to rhel2312 closed.
Ivan Ferreira
Honored Contributor

Re: Set password to expire immediately.

Edit /etc/ssh/sshd_config and set UsePrivilegeSeparation to "no". Restart/reload the service with service sshd reload.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
joseph wholey
Regular Advisor

Re: Set password to expire immediately.

chage -d 0 does not work. I no longer get the error message, but when prompted to put in a new password, I put it in, hit enter and immediately get "bumped" off the server and the new password does not take.
Ivan Ferreira
Honored Contributor

Re: Set password to expire immediately.

Then you have a buggy version:

http://rhn.redhat.com/errata/RHSA-2005-106.html

Update your package.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vipulinux
Respected Contributor

Re: Set password to expire immediately.

Hi
What is ur version of lib-laus library?

Cheers
joseph wholey
Regular Advisor

Re: Set password to expire immediately.

I don't have a lib-laus library
Sergejs Svitnevs
Honored Contributor

Re: Set password to expire immediately.

Joseph

Try out:
chage -M 0
joseph wholey
Regular Advisor

Re: Set password to expire immediately.

Sergejs,

I tried that... it has 0 effect. I get the message:

cognos@rhel01233 password:
Warning: your password will expire in 0 days

However, I'm not forced to change the password. Hmmmmm!!!

Vitaly Karasik_1
Honored Contributor

Re: Set password to expire immediately.

I agree with Ivan - "chage -d 0 username" should be a answer to your question. If it doesn't work, something wrong with your installation. BTW, in your second questions we're speaking about the same linux box?
joseph wholey
Regular Advisor

Re: Set password to expire immediately.

Correct... I've brought to the attention of our engineering team... I think we may be back leveled on ssh. I'll report when I find out. thx for all the help.