LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon
User Name
Password
Sabayon This forum is for the discussion of Sabayon Linux.

Notices


Reply
  Search this Thread
Old 01-07-2011, 03:18 PM   #1
InvRa
Member
 
Registered: Dec 2010
Posts: 59

Rep: Reputation: 0
removing password restriction to 6 characters


hello guys is there aa way to remove the password restrictions? i would liek to setup a 4 character password
 
Old 01-07-2011, 03:22 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Possibly it will vary by distro, but I expect most distros have a /etc/login.defs file, which goes along with the Shadow Password suite. Inside my file, I see this:
Code:
# Password aging controls:
#
#       PASS_MAX_DAYS   Maximum number of days a password may be used.
#       PASS_MIN_DAYS   Minimum number of days allowed between password changes.
#       PASS_MIN_LEN    Minimum acceptable password length.
#       PASS_WARN_AGE   Number of days warning given before a password expires.
#
PASS_MAX_DAYS   99999
PASS_MIN_DAYS   0
PASS_MIN_LEN    5
PASS_WARN_AGE   7
I would begin by setting that value as you wish. Of course, we don't need to tell you that a 4 character password would be VERY relatively easy to crack, so hopefully this is not for a root account or production machine, right?
 
Old 01-07-2011, 05:10 PM   #3
InvRa
Member
 
Registered: Dec 2010
Posts: 59

Original Poster
Rep: Reputation: 0
i am the only one using this pc and i dont think there will be any problem if i set both user and root password to 4 characters
 
Old 01-07-2011, 05:14 PM   #4
InvRa
Member
 
Registered: Dec 2010
Posts: 59

Original Poster
Rep: Reputation: 0
i just changed the pass min lenght to 5 and now when logging in on terminal as root i get this error
su
Password:
configuration error - unknown item 'PASS_MIN_LEN' (notify administrator)

this is my config
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
 
  


Reply



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] Removing characters from file name clstanton Linux - Newbie 3 09-06-2009 02:15 AM
removing characters from variable? hateseven Programming 6 02-24-2009 09:34 PM
Removing special characters from filenames PlymWS Linux - Software 1 08-09-2007 05:11 AM
Python - Removing first x characters Mithrilhall Programming 3 01-16-2007 09:52 AM
Removing Characters when outputting to a script thedarkdestroyer Linux - Newbie 3 03-21-2006 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Sabayon

All times are GMT -5. The time now is 07:28 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