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 01-06-2010, 02:46 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 3

Rep: Reputation: 0
Smile Linux password expiry message

we have set up password expiry for our users, but the new passwords that they want to use are so easy that linux rejects them. i want to add a line or 2 when they get the message "You are required to change your password immediately (root enforced)" that will have a password example.
in which file can i add such a message?
Old 01-06-2010, 04:15 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You don't want to do that anyway - users will just copy the example with minor changes.

There is not much you can do about poor choice passwords - at least your system keeps rejecting the choices until they get one that passes. Just type up a standard response to complaints.

Though you can set up an email message to notify users their password is about to expire.

In general, PAM handles authentication:

Alternately, assign random passwords and advise users to write them down and keep the slip of paper in their wallets. These passwords do not expire unless you know they need to.

The trouble with password policy is that strong passwords are hard to remember. So far, best (tested) compromise has been to tell users to think of a sentence they can easily remember and use that as a wmeumonic for their passwords. eg:

oh freddled gruntbuggly thy micturations are to me as plurdled gabbleblotchets on a lurgid bee


real strong

though it is stronger if it is not a famous quotation - and it only needs to be 8 words long:

fishing is a waste of a good weekend


put this as a policy on a public server someplace.


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
password policy expiry in the user sammee Linux - Newbie 5 09-16-2008 09:51 AM
password expiry notification through mail? dsids Linux - Newbie 2 06-02-2006 03:48 PM
SAmba Password Expiry bally Linux - General 0 11-29-2004 11:42 PM
Password expiry klmn1 Linux - Networking 0 12-29-2002 11:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 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