Results 1 to 7 of 7
Hello,
when trying to setup a password with the standard system command 'passwd' I receive following message :
BAD PASSWORD : it is based on a dictionary word
How to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-17-2009 #1Linux Newbie
- Join Date
- Dec 2008
- Location
- Luxembourg
- Posts
- 133
passwd : how to setup it ?
Hello,
when trying to setup a password with the standard system command 'passwd' I receive following message :
BAD PASSWORD : it is based on a dictionary word
How to avoid this ?
More generally, how to setup passwd related to this ?
Note: the account to be change is a very low rights one and a very simple password is indeed desired.
Thanks.
Bye,
Bruno
- 03-17-2009 #2
try to combine numbers and other special characters in your password.that should work,
First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 03-17-2009 #3Linux Newbie
- Join Date
- Dec 2008
- Location
- Luxembourg
- Posts
- 133
Sorry but your answer is not relevant to my question, maybe I was confusing in my first email.
I'm looking how/ where is 'passwd' configured or on which dependency it relies.
I use few and different Linux distros and the behaviour of passwd is different, meaning that very basic work, ie. 'password' will be accepted in some case but refused in others.
So it seems that the command 'passwd' is configurable is some way, or dependent to other services or files : this is what I'm looking for.
Bye,
Bruno
- 03-18-2009 #4
as far as i know, /etc/passwd and /etc/shadow are password files and shadow file will have encrypted (md5 ? algorithm ) password.
if your question is about how the password dictionary works - then i got no idea on that.
i found following links which might be useful for you.
[Blue forest-free software] - how to abolish BAD PASSWORD : it is too simplistic/systematic installed? - Linux
Linux Shadow Password HOWTO: Why shadow your passwd file?
Password Security
Cracking Unix and Linux password files for beginners | Governmentsecurity.orgFirst they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org
- 03-18-2009 #5
I have found, on some distros, that simple passwords (such as 'password') are rejected by the system. But will sometimes be accepted if you login as root.
Example:
You may still get a warning, but perhaps you'll get what you need out of it.Code:su - <enter root password> passwd <username>
Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 03-18-2009 #6Linux Newbie
- Join Date
- Dec 2008
- Location
- Luxembourg
- Posts
- 133
..solved via PAM setup ?
Apparently the PAM (Pluggable Authentication Module) configuration is the way used to define parameters and behaviors of command 'passwd', ie. password length required, dictionary used to check it ...etc..
Bye,
Bruno
- 03-18-2009 #7Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
One way to do this is to use the usermod command to change the password. Problem is the password has to be encrypted. I use perl's crypt function to do this.
Code:#!/bin/bash -vx psswd="abcdef" seed="123" epsswd="`perl -e "print crypt($psswd,$seed);"`" usermod -p $epsswd username


Reply With Quote
