Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-17-2002, 11:31 PM   #1
Registered: Sep 2002
Location: fdas
Posts: 100

Rep: Reputation: 15
Change password

How to force the user to change password when the next time login ? Thx.
Old 12-18-2002, 12:21 AM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
man chage

may not be the exact one that you are looking for but it'll do
Old 12-18-2002, 12:29 AM   #3
Registered: Sep 2002
Location: fdas
Posts: 100

Original Poster
Rep: Reputation: 15
Hi all,

I didn't find the command 'chage' has this function, do you have other suggests?
Old 12-18-2002, 03:34 AM   #4
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
That's right chage won't allow you to tell a user to change it's password everytime they log in. It's used for setting the amount of days in which a user should change it's password.
But what exactly are you trying to accomplish by making users change their password everytime they log in? A user will never be able to remember his password if he has to change it that often, depending on how often the user logs in ofcourse. So if they can't remember the password they will have to write it down or keep record of it some other way. Is that really safer?
Besides what if the connection breaks and the user has to log in again (usually only if they login remote). The user will have to change their password again in that case? And what if you log in a second or a third time, will you have to change it again. Maybe some context of what you are gonna use it for would help.
There is no standard way to get what you want accomplished, although it is possible to get it done. But there is probably a very logical reason why people don't need this.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
How can I change e-mail password(or linux account password) with php in website?? yusuf Programming 1 05-28-2004 10:39 AM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 08:36 PM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 08:52 PM
How do i change my password im1crazyassmofo Linux - General 2 03-19-2003 10:30 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:39 AM.

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
Open Source Consulting | Domain Registration