Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-05-2008, 12:12 PM   #1
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Rep: Reputation: 30
Passsword Policies

Hi All,

We have currently setup the Password Policies on our RedHat Linux 4.0 Systems.
Now question is how do we convey this to huge no. of Users we have? Like suppose now the password needs to be more complex alpha-numeric or so. Now how the users will come to know about these settings. On some other unix flavors, system indicates the kind of settings required by the password while changing. Like this ,

The required password characteristics are:
a maximum of 8 repeated characters.
a minimum of 2 alphabetic characters.
a minimum of 2 non-alphabetic characters.
a minimum of 8 characters in length.

3004-603 Your password must have:
a minimum of 2 non-alphabetic characters.

by any chane, can we have such provision on Linux? In case we are to write a script for this, what would be its location ?? From where should we execute this script??

Any guidance would be welcome!!
Old 02-05-2008, 05:02 PM   #2
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Well, I guess that depends on how your server is used. If people login to a shell, i.e. via SSH, you could add a note to display on login via MOTD or the SSH banner.

Do you want this to display when they enter a (new) password, or in general as information? If you want it to show up when they enter a password, maybe there's some configuration or option to passwd.

The easiest approach is probably to email all of your users.
Old 02-06-2008, 05:50 AM   #3
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks Jantman. You sure is right, we have this last option to put the required information in MOTD / SSH Banner. But we really are seeking for putting this info at the time of changing the password. As it would be the best place to do so. I looked at passwd man page. But no help.

Any experts out there???????
Old 02-06-2008, 06:32 AM   #4
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,683

Rep: Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956Reputation: 956
As a simple hack, create an executable script called 'passwd' that echoes the message you want then calls the passwd program, which has been renamed.

That is:
Create a script like this:

echo "This is some text"
Then, as root:
mv /usr/bin/passwd /usr/bin/passwd1
mv <script> /usr/bin/passwd
chmod 755 /usr/bin/passwd

Last edited by allend; 02-06-2008 at 06:33 AM.
Old 02-06-2008, 06:51 AM   #5
Registered: Jul 2004
Location: india
Distribution: RH
Posts: 189

Original Poster
Rep: Reputation: 30
Hi Allend,

Smart move!! Have not actually tested it. But on paper it looks GOOD. Thanks a ton !!
Will revert back.


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
linux - scheduling policies cathiejcm Linux - Software 3 01-14-2006 08:59 AM
Slashdot policies question vharishankar General 2 08-02-2005 11:03 PM
W2K policies kasols1 Linux - Networking 1 11-29-2002 03:43 AM
Windows Policies TheSockMonster Linux - Networking 0 07-16-2002 04:47 AM
IPTable Policies Concerning DNS... Help. SpookMonkey Linux - Networking 2 05-15-2002 02:32 PM

All times are GMT -5. The time now is 02:34 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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration