LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-13-2002, 07:48 AM   #1
Rig24
LQ Newbie
 
Registered: Dec 2002
Location: McLean
Posts: 28

Rep: Reputation: 15
Configure password


With concerns to the login is there any way to make it require at least 2 numbers and at least one capital letter? Also, can you have it lock out the user with 5 bad attempts?

Thanks
 
Old 12-13-2002, 10:04 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
In the /etc/login.defs file there should be a line like:
PASS_ALWAYS_WARN yes

This will prevent users from setting weak passwords. Only root will still be allowed to set weak passwords but will still be warned.
I don't know if it will force the use of a capitol letter but it at least forces to use relatively good passwords.

There should also be a line like:
LOGIN_RETRIES 3

There was a way to catch that event with some kind of pam module and then totally lock out the user but I don't remember where I read that.
 
Old 12-13-2002, 10:08 AM   #3
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
It's questionable wether locking out a user is really reasonable since it can easily be used as a denial of service attack.
 
Old 12-13-2002, 10:15 AM   #4
Rig24
LQ Newbie
 
Registered: Dec 2002
Location: McLean
Posts: 28

Original Poster
Rep: Reputation: 15
The Linux system is in a lab with no outside connections, I need the lockout and certain restrictions on the password to get the system certified.
 
Old 12-14-2002, 09:03 AM   #5
DcEnT
LQ Newbie
 
Registered: Dec 2002
Location: in perth, western australia
Distribution: red hat
Posts: 1

Rep: Reputation: 0
i would like to know how to get around a login with redhat as i got a new box from my dad's office and it has redhat and it keeps on asking for login & password but i don't know and neither does my dad, does anyone know or will/canhelp me with this?
 
Old 12-14-2002, 09:11 AM   #6
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
If you can add parameters in the bootmanager at startup, just put init=/bin/sh or init=/bin/bash there. The System will boot and drop you in a shell. You have root permissions but the filesystem will probably be readonly.

Do a

mount / -n -o remount,rw

and it is readwrite. After that you can change the password. Reboot the box and use that pw.
 
Old 12-14-2002, 09:12 AM   #7
dazk
Member
 
Registered: Dec 2002
Location: Germany
Distribution: Gentoo Linux 1.4
Posts: 43

Rep: Reputation: 15
Another possibility of course is booting with some kind of rescue floppy or cd and mount the relevant partition.
 
  


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
shadow password - password field ayhopkins Linux - Security 8 11-17-2005 06:25 AM
when i try to configure mandrake 10.0 the window crashes when i put in password ethereal9 Mandriva 5 11-14-2004 07:55 AM
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


All times are GMT -5. The time now is 08:27 AM.

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