Results 1 to 6 of 6

Thread: Linux passwd command

  1. #1
    Join Date
    Apr 2008
    Posts
    49

    Linux passwd command

    When I try to modify an existing account as root I get the following:
    #passwd Blake
    Changing password for user Blake
    New password:
    Retype new password:
    passwd: Failed preliminary check by password service

    What might be causing this problem?
    The user was created using the create-account command.

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: Linux passwd command

    Is the password long enough to be accepted? A 4 digit password is rather weak. I would expect a more informative message though, if that were the case.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,295

    Re: Linux passwd command

    Old passwd from redhat (maybe that's the one you use) had a nice option -N just for this purpose. Read passwd man page for details.

  4. #4
    Join Date
    May 2008
    Posts
    2,680

    Re: Linux passwd command

    Using the explicit name "root" shouldn't have changed anything. I would also guess that PAM might be enforcing some strict password checking here.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,267

    Re: Linux passwd command

    If your old NIS based password was longer then 8 characters and was set with an older version (RH6.2 for example) it does give you an authentication failure with RH7.2. Resetting the password with the yppasswd command (to the same string) seems to fix the problem.

  6. #6
    Join Date
    May 2008
    Posts
    4,085

    Re: Linux passwd command

    By Default the minimum password length is 5 characters. This can be changed but is not recommended. Try a password at least 5 characters. You could get into the shadowed password files and change it manually to a shorter password, but we won't go there, as it can corrupt your entire user file.

Similar Threads

  1. Question about -F Linux Command
    By Tynan in forum Operating Systems
    Replies: 3
    Last Post: 14-01-2011, 04:32 AM
  2. /etc/passwd permissions keep resetting to 600
    By Aashirya in forum Operating Systems
    Replies: 5
    Last Post: 25-04-2010, 01:24 AM
  3. How to use linux dd command
    By Rubeen in forum Operating Systems
    Replies: 5
    Last Post: 02-04-2010, 10:59 AM
  4. passwd: authentication token manipulation error
    By Knopper in forum Operating Systems
    Replies: 3
    Last Post: 29-07-2009, 11:16 PM
  5. Linux history command and fc command
    By Alkesh jain in forum Operating Systems
    Replies: 3
    Last Post: 26-05-2009, 07:53 PM

Tags for this Thread

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
  •  
Page generated in 1,713,243,488.69907 seconds with 17 queries