LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-22-2020, 11:01 AM   #1
rtrfamjr2
LQ Newbie
 
Registered: May 2020
Posts: 2

Rep: Reputation: Disabled
passwd - error message can someone explain - BAD PASSWORD: it is derived from your password entry


when some users attempt to change there password with 'passwd' they are receiving this message
example:
Changing password for axgadmd.
(current) UNIX password:
New password:
BAD PASSWORD: it is derived from your password entry

Last edited by rtrfamjr2; 05-22-2020 at 11:05 AM. Reason: Make it more understandable
 
Old 05-22-2020, 11:25 AM   #2
sxy
Member
 
Registered: Aug 2019
Posts: 43

Rep: Reputation: Disabled
Hi,

Likely it's a PAM feature. Copied from my /etc/pam.d/system-auth:
Quote:
#############################
# Password quality checking #
#############################
#
# Please note that unless cracklib and libpwquality are installed, setting
# passwords will not work unless the lines for the pam_pwquality module are
# commented out and the line for the traditional no-quality-check password
# changing is uncommented.
#
# The pam_pwquality module will check the quality of a user-supplied password
# against the dictionary installed for cracklib. Other tests are (or may be)
# done as well - see: man pam_pwquality
#
# Default password quality checking with pam_pwquality. If you don't want
# password quality checking, comment out these two lines and uncomment the
# traditional password handling line below.

password requisite pam_pwquality.so minlen=6 retry=3
password sufficient pam_unix.so nullok sha512 shadow minlen=6 try_first_pass use_authtok

# Traditional password handling without pam_pwquality password checking.
# Commented out by default to use the two pam_pwquality lines above.
#password sufficient pam_unix.so nullok sha512 shadow minlen=6

# ATTENTION: always keep this line for pam_deny.so:
password required pam_deny.so
and
Code:
man pam_pwquality
If you want to use that password anyway, try 'sudo passwd username' of change PAM settings accordingly.

Hope this helps.

Last edited by sxy; 05-22-2020 at 11:27 AM.
 
1 members found this post helpful.
Old 05-22-2020, 03:31 PM   #3
rtrfamjr2
LQ Newbie
 
Registered: May 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Post

Thanks for the info. We already used the 'sudo passwd username' to force the password change.
It does seem to be related to the PAM either pam_pwquality or pam_cracklib.

It's not documented or at least I currently can not find it documented on what it actually means unlike some of the other "BAD PASSWORD" messages.
 
Old 05-22-2020, 04:01 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
I believe that particular error is caused by a violation of the difok option...that the new password is not different from the old password by the difok number of characters. The man page says that defaults to 5.

I'm not able to find definitive documentation for the error either, however.
 
1 members found this post helpful.
  


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
can't someone help me i'am trying to install idevicerestore and when i do the sudo make i get this error can someone help me please shawn7226791 Linux - Software 4 09-18-2019 07:25 AM
Can someone explain message raydona Linux - Networking 6 04-05-2018 02:50 AM
Could someone explain wireless kernel message "TKIP: received packet without ExtIV" jschiwal Linux - Wireless Networking 2 12-17-2007 01:01 PM
can someone explain this error plz? santasballz Linux - Newbie 5 02-10-2004 01:18 PM
Is someone can explain me this error message haploxi Programming 0 01-30-2002 09:58 AM

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

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