Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Jan 2004
    Location
    OHIO
    Posts
    18

    Default Can't change password via cpanel

    Here's a weird problem.. suddenly, people unable to change their password via cpanel. When they login to cpanel and attempt to change their password they get an error message that says:

    "There was an error manipulating the password file. This generally means you entered your old password incorrectly."

    If we login to their cpanel as root via WHM we don't get the error, but if we login with their username/password we are indeed able to duplicate the problem..

    Does anybody have any ideas on how to fix this? Could it be a permissions problem?

    Thanks
    Kirk

  2. #2
    Member
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    300

    Default

    Try changing the password using the command line with the 'passwd' command. Check this as both root and a user and see what errors if any you receive as root and as the user.

    As root:

    Code:
    passwd USERNAME
    As a user
    Code:
    su USERNAME
    passwd
    -Todd Shipway

  3. #3
    Member
    Join Date
    Jan 2004
    Location
    OHIO
    Posts
    18

    Default

    It works if I do it via the command line as root.

    When I SU to the user and try it, it says "passwd: Only root can specify a user name."

    Kirk

  4. #4
    Member
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    300

    Default

    Login as root and try using the command below:

    Code:
    sudo -u USERNAME passwd
    However if it works as root, the passwd binary is probably missing the suid bit.

    Check permissions on /usr/bin/passwd they should be set at below.

    Code:
    -r-s--x--x  1 root root 21200 Jun 17  2005 /usr/bin/passwd*
    -Todd Shipway

  5. #5
    Member
    Join Date
    Jan 2004
    Location
    OHIO
    Posts
    18

    Default

    Ah yes, how would I go about setting this correctly - I assume umask? I'm not sure what the "s" stands for..

  6. #6
    Member
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    300

    Default

    You can set this using the command below

    Code:
    chmod +s /usr/bin/passwd
    -Todd Shipway

  7. #7
    Member
    Join Date
    Jan 2004
    Location
    OHIO
    Posts
    18

    Default

    Awesome - that fixed it! Thank you!

    Kirk

  8. #8
    Member
    Join Date
    Jun 2005
    Posts
    20

    Default

    Quote Originally Posted by cPanelTodd View Post
    You can set this using the command below

    Code:
    chmod +s /usr/bin/passwd
    I got the exact same issue, and that command did the trick!

    Thank you.

  9. #9
    Member
    Join Date
    Dec 2004
    Location
    Edinburgh, Scotland
    Posts
    37

    Default

    This worked for me too, but my permissions on /etc/bin/passwd are now:
    r-s--s--x

    Is that still OK?
    G.
    Last edited by grindlay; 09-17-2007 at 08:50 AM.
    Webmaster, Verinote Internet Solutions
    All Futures are Possible...and Inevitable

  10. #10
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Default

    This worked for me too

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-18-2011, 09:08 AM
  2. Why I don't have change password in my cpanel Password?
    By tukangcorlogam in forum New User Questions
    Replies: 4
    Last Post: 10-04-2010, 10:47 AM
  3. Change password in cpanel
    By big_bull in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 03-11-2010, 04:31 AM
  4. Changing password in Cpanel does not change the password for FTP
    By WMS in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 07-23-2008, 08:02 AM
  5. Changing Password in Cpanel: Does FTP Password change too?
    By silversurfer in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-19-2003, 03:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube