Results 1 to 2 of 2

Thread: passwd command doesn't work with root after change to common-password

  1. #1
    Join Date
    Jun 2009
    Beans
    2

    passwd command doesn't work with root after change to common-password

    I'm using 10.04.4 Server.

    Distributor ID: Ubuntu
    Description: Ubuntu 10.04.4 LTS
    Release: 10.04
    Codename: lucid

    I changed the common-password file from:
    password [success=1 default=ignore] pam_unix.so obscure sha512

    To this:
    password [success=2 default=ignore] pam_unix.so min=8 obscure sha512

    And now whenever I try to change the root password I get the following:

    root@vpn1:~# passwd
    passwd: Permission denied
    passwd: password unchanged

    If I change the line in common-passwd back to it's original text it will work again.

    Any ideas or help would be appreciated.

    Thanks!

  2. #2
    Join Date
    Mar 2013
    Beans
    1

    Re: passwd command doesn't work with root after change to common-password

    success = 2 means, control will skip the next 2 lines if successfull, probably you might have a duplicate line, because i got the same problem and fixed this by removing the extra line required by other tools (like samba) and everything seems to be working. I know this is old thread but posted here for any googler having the same probem

Bookmarks

Posting Permissions

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