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 07-07-2004, 12:55 PM   #1
t3___
Member
 
Registered: Sep 2003
Posts: 240

Rep: Reputation: 30
Passwords limited to 8 characters


I would like to change the root password on my suse 9.1 box to an alphanumeric/upperandlower/hard to crack password. Unfortunately when I do so, it says that "passwords are limited to 8 characters, would you like to truncate your password..."

I there a way, post install, to change the password type or schema? I dont remember if I selected MD5, shadow, etc when I installed the box, and know nothing about the topic.

Any help would be greatly appreciated...
 
Old 07-07-2004, 01:02 PM   #2
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Edit /etc/login.defs. There is an entry called PASS_MAX_LEN
 
Old 07-07-2004, 01:14 PM   #3
t3___
Member
 
Registered: Sep 2003
Posts: 240

Original Poster
Rep: Reputation: 30
thank you very much for the info.

located the file, but it does not have the PASS_MAX_LEN field.... Im assuming it is safe to add it?
 
Old 07-08-2004, 12:11 PM   #4
t3___
Member
 
Registered: Sep 2003
Posts: 240

Original Poster
Rep: Reputation: 30
Anyone? is this entry safe to add? Normally I'd just try it, but I'd hate to loser root access on a production box...

thanks
 
Old 07-09-2004, 01:28 PM   #5
comp12345
Member
 
Registered: Feb 2004
Posts: 467

Rep: Reputation: 30
Sorry, I jumped the gun on PASS_MAX_LEN. I should have read more carefully. PASS_MAX_LEN sets the number of significant characters in the password for crypt().

If you are using PAM, in /etc/pam.d, there is a file called passwd or common-password. On my system, the entry in common-password is

Code:
password   required   pam_unix.so nullok obscure min=4 max=8 md5
Check if you have md5 at the end of your entry. If it is missing, add it and you will be able to have longer password lengths.
 
  


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
Sync MySQL passwords with local account passwords? turbine216 Linux - Software 2 02-18-2005 03:15 AM
Copy Paste of data from word to Yahoo/rediff in opera is limited to few characters sachin_keluskar Linux - Software 0 08-19-2004 09:46 AM
Use chpasswd for passwords more than 8 characters ? artak_am Linux - General 1 08-09-2004 03:30 AM
No scandinavian characters in passwords? Huh? Bamse123 Linux - Newbie 3 05-26-2004 02:20 PM
passwords with trailing characters murray_linux Slackware 4 04-08-2004 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 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
Open Source Consulting | Domain Registration