Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-28-2013, 12:21 AM   #1
Registered: Mar 2011
Location: Philadelphia, PA
Distribution: Kubuntu 12.10
Posts: 255

Rep: Reputation: 4
Problems with setting password over eight characters; Kubuntu 12.10

The password is longer than 8 characters. On some systems, this can cause problems. You can truncate the password to 8 characters, or leave it as it is.
I'm a rather paranoid guy, so I like to set a really long password. Although I re-use my passwords a lot, I have four from 8 alphanumerical characters to 28 alphanumerical characters, the longest one is for crucial things like login password and other stuff... and I wanted to make my root password the 28 character one, but apparently it has problems with that. Is there a way to force a longer password, and if so, what difficulties could arise while doing so? Although having to type the ridiculously long password whenever I type in sudo, and since logging in as root is a no-no on Ubuntu, it's going to be very often, but I'd rather have to take extra time than have someone break into my laptop (Yes, I'm paranoid) and doing what he wants to it, and of course threats via online/hackers and whatnot. I am aware the possibilities of that happening are rather slim, but I like to be prepared.

Anyway: Clarification -- Limits to 8 characters, when I try to set longer, it truncates it to the first eight characters and anything past that becomes invalid. I want to set at least a 10 character password, but ideally I want a 28 character password.
Old 02-28-2013, 12:37 AM   #2
Registered: May 2004
Location: India
Distribution: openSUSE Tumbleweed and SLED 12 SP2
Posts: 94

Rep: Reputation: 31 Cracklib PAM module seems to be one way to enforce or change the minimum password length. Perhaps 8 characters is already set there.
Old 02-28-2013, 01:29 AM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
Have a look to see if you have a file /etc/login.defs. The 8 char limit is due to using the old Unix crypt function.
These days various hash fns are available for much longer passwd eg on RHEL 6.3, default setting is
# Use SHA512 to encrypt password.
See note here for max


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
[SOLVED] Installed newest Ubuntu setting a weak password. Changed password now buggered? lugoteehalt Ubuntu 1 05-29-2010 09:51 PM
Problems setting Password policies kentrimble Linux - Newbie 2 01-31-2010 07:36 PM
problems setting up sendmail for kontact in kubuntu 6.10 nicdee Linux - Software 1 11-12-2006 04:52 PM
how do u check if password has enough characters?? luxpops Programming 4 09-12-2004 04:30 AM
encrypted password 64 characters? uribo Programming 1 04-22-2003 07:51 AM > Forums > Linux Forums > Linux - Newbie

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