Find the answer to your Linux question:
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.
  1. #1
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136

    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

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Exclamation

    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

  3. #3
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136
    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

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Post

    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.org
    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

  5. #5
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    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:
    Code:
    su -
    <enter root password>
    passwd <username>
    You may still get a warning, but perhaps you'll get what you need out of it.
    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.

  6. #6
    Linux Newbie
    Join Date
    Dec 2008
    Location
    Luxembourg
    Posts
    136

    ..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

  7. #7
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •