LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 02-05-2008, 11:12 AM   #1
sachinh
Member
 
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, 04:02 PM   #2
jantman
Member
 
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, 04:50 AM   #3
sachinh
Member
 
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, 05:32 AM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,281

Rep: Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802
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:
Code:
!#/bin/bash

echo "This is some text"
/usr/bin/passwd1
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 05:33 AM.
 
Old 02-06-2008, 05:51 AM   #5
sachinh
Member
 
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.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux - scheduling policies cathiejcm Linux - Software 3 01-14-2006 07:59 AM
Slashdot policies question vharishankar General 2 08-02-2005 10:03 PM
W2K policies kasols1 Linux - Networking 1 11-29-2002 02:43 AM
Windows Policies TheSockMonster Linux - Networking 0 07-16-2002 03:47 AM
IPTable Policies Concerning DNS... Help. SpookMonkey Linux - Networking 2 05-15-2002 01:32 PM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration