LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-21-2009, 02:20 PM   #1
sbtiwari
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!
Cheers,
Swati
 
Old 07-21-2009, 06:00 PM   #2
Tinkster
Moderator
 
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, 06:34 PM   #3
sbtiwari
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.

Cheers,
Swati
 
  


Reply


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 09:38 PM
automatically prompt user to change password guy_ripper Linux - Security 7 01-18-2007 01:57 PM
How do you change login/password prompt? cnewtonne Linux - Security 7 11-16-2006 02:54 PM
no password prompt after root login taboo Linux - General 1 12-22-2003 01:01 PM
Unable to login (no password prompt) T4urus Linux - General 1 12-21-2003 01:47 PM


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

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