LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-05-2005, 04:57 PM   #1
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
Howto change system password policies (passwd length, complexity)


This is probably a very stupid question, but as an administrator, where would I go to change linux password policy settings (length, complexity, etc)?

I know many distros have GUI tools that do this, but I'd rather learn it from the console so I'm not dependant on the GUI (because not all distros have the same GUIs).
 
Old 09-05-2005, 06:33 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"as an administrator, where would I go to change linux password policy settings (length, complexity, etc)?
I know many distros have GUI tools that do this, but I'd rather learn it from the console"

Essentially you have a choice of md5 rules or not md5 rules. SuSE has a readme that explains how to do it by editing files in the /etc/pam.d directory.

/usr/share/doc/packages/pam/README.md5


-------------------------
Steve Stites
 
Old 09-05-2005, 09:02 PM   #3
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
My apologies.... I don't think I'm getting my question across.

For example, lets say I want to remove the password complexity requirements (when users change their password with the passwd command). Or, maybe I want to change the minimum password length (when users change their password with the passwd command).

I guess I'm talking about password changing, not so much what happens at login.

With that said, where do I go to configure this?
 
Old 09-06-2005, 12:01 AM   #4
jayemef
Member
 
Registered: Aug 2005
Location: Juniata College, PA
Distribution: Ubuntu, Slackware
Posts: 67

Rep: Reputation: 15
There is a config file you can edit for this. In most RedHat systems it is located at /etc/pam.d/system-auth. Being in Ubuntu at the moment, I can tell you it is at /etc/pam.d/common-password. Once you open the file, you should see a line that begins with the words password required. Here, you should hopefully see a min= or minlen= variable. Set it to the length you prefer.
 
  


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
howto change samba password remotely from a windows client? yafrank Linux - Networking 8 08-04-2013 12:16 PM
Linux PAM minimum password and complexity reemo73 Linux - Software 3 06-01-2005 03:22 PM
ow to create script change a user's password? passwd expects input from keyboard.. Arodef Linux - General 1 03-02-2005 10:40 PM
howto change samba password remotely from a windows client? yafrank Linux - Software 2 01-21-2005 12:14 PM
Can't Change Min Password Length in RHL7.2 MikHud Linux - Security 2 04-16-2002 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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