LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-06-2010, 01:46 AM   #1
asw
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, 03: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.
http://www.novell.com/communities/no...asswords-email

In general, PAM handles authentication:
http://www.linuxdocs.org/HOWTOs/User...OWTO/x101.html


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

0fgtmr2mapgoalb

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

f14w04gw

put this as a policy on a public server someplace.
 
  


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


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