Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-21-2009, 03:20 PM   #1
LQ Newbie
Registered: Jun 2009
Posts: 8

Rep: Reputation: 0
chage -d 0 does not prompt for password change on first login

Hello All,

I know this post may be silly but I am unable to find any solution to my problems. I have created a new user janedoe using the useradd command. And after that I have used the chage command in this way

chage -d 0 janedoe

However, when I ssh to the box, and try to login as janedoe, it does not prompt me for password change. It just asks for the password that I never set and hence I am unable to login.

Any help will be appreciated. I apologize if this post is too silly.

Thanks a ton!
Old 07-21-2009, 07:00 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
and what does

chage -l janedoe

tell her once she's logged in?
Old 07-21-2009, 07:34 PM   #3
LQ Newbie
Registered: Jun 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Ok, my silliness. What I had assumed is that after issuing the chage command, the user will be immediately prompted for a password change when he/she tries to log in. What I had not known is that the user must be "given" a password which he/she must know to login and as soon as the user is logged in, he/she can change it.

I am sorry for the confusion and thanks a lot.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot login, no password prompt! gti666 Linux - General 1 10-23-2007 10:38 PM
automatically prompt user to change password guy_ripper Linux - Security 7 01-18-2007 02:57 PM
How do you change login/password prompt? cnewtonne Linux - Security 7 11-16-2006 03:54 PM
no password prompt after root login taboo Linux - General 1 12-22-2003 02:01 PM
Unable to login (no password prompt) T4urus Linux - General 1 12-21-2003 02:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration