Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I force the user to change the password , the user will prompt the message (BAD PASSWORD: it is based on a dictionary word) , I understand this is a security reason to probit simple password , but if I want to disable this restriction ( that means the linux system allow any dictionary word ) , what can I do ? thx.
You should provide more information on which distro you are using. Does your system use PAM for authentication?
If so, look in the file /etc/security/pam_pwcheck.conf. It may have it's own manpage. Also, your distro may have GUI configuration for something like Users & Security where you can set it there.
Code:
# pam_pwcheck config file
#
# This file contains options for the pam_pwcheck.so module.
#
# At first, pam_pwcheck will read this file and then uses the local
# options.
#
# Please read the pam_pwcheck.8 manual page for a list of valid
# options.
#
# Example:
# password: nullok cracklib remember=8
#
password: remember=6 minlen=6 cracklib nullok
The pam_pwcheck.so module may be used on one of the files in /etc/pam.d/.
I think u need to change cracklib in sytem-auth file.
But better take backup before doing it.
Its not my advice.. I read it somewhere... Check where the file is present and modify...
If remove this line , the system will allow any kind of password that means all insecure password eg. too short , too simple , similiar password are allowed , if I only want to disable the restriction (BAD PASSWORD: it is based on a dictionary word) , what can I do ? thx
Maybe you could change the dictionary path that cracklib uses. However doing away with this restriction is a very bad idea. It would open up your computer to a simple dictionary attack.
I would like to have one more requirement , the default password length is at least 7 characters, if I want to change the default setting , that the system accept the password length is 6 characters , what can i do ? thx
Change the minlength setting in /etc/security/pam_pwcheck
Code:
# pam_pwcheck config file
#
# This file contains options for the pam_pwcheck.so module.
#
# At first, pam_pwcheck will read this file and then uses the local
# options.
#
# Please read the pam_pwcheck.8 manual page for a list of valid
# options.
#
# Example:
# password: nullok cracklib remember=8
#
password: remember=6 minlen=6 cracklib nullok
I would like to ask again , now my system accept the numerics only or characters only password , for example , the password can be 741852 ( all numerics ) or poiuyt ( all characters ) , if I want to control the password MUST have BOTH characters AND numerics , what can I do ? thx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.