Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    3

    Default WHM root login lost - ssh still OK

    This is on a FreeBSD box.

    After running /scripts/rebuildetcpasswd I can no longer access WHM as root. SSH access was not affected. When I run /scripts/chcpass I get:
    rawchpass: fixme: freebsd please report this on support.cpanel.net at /scripts/chcpass line 4.

    The root password isn't different, but apparently now cpanel has it recorded someplace as something else. How can I recover from this?

    Thanks.

  2. #2
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,596

    Default Re: WHM root login lost - ssh still OK

    Originally posted by dennism
    This is on a FreeBSD box.

    After running /scripts/rebuildetcpasswd I can no longer access WHM as root. SSH access was not affected. When I run /scripts/chcpass I get:
    rawchpass: fixme: freebsd please report this on support.cpanel.net at /scripts/chcpass line 4.

    The root password isn't different, but apparently now cpanel has it recorded someplace as something else. How can I recover from this?

    Thanks.
    Try changing it with passwd

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    3

    Default Re: Re: WHM root login lost - ssh still OK

    Originally posted by bdraco
    Try changing it with passwd
    I did. I also (briefly) removed the root password altogether.

    I've had a couple of customer calls on this now. It appears that it may be all WHM logins that are not working.

    Where is Web Host Manager looking for login information, or how is it validating logins? The cPanel logins are working fine.

  4. #4
    Registered User
    Join Date
    Mar 2004
    Location
    Russia. Moscow
    Posts
    1

    Default

    Hello! At me absolutely same problem! FreeBSD 4.9, cPanel CURRENT
    All WHM-logins don't work!

    Before there was a problem: the user could get access on FTP, using any password! I have tried to solve this problem by /scripts/rebuildetcpasswd but instead of it have received one more! This problem was solved updating cPanel, but the problem with access to WHM has remained!

    With me has remained accesshash to cPanel, therefore I can be connected to it, using WHM-authorization. I have changed the Root-password means WHM, the real root-password has changed (in ssh), but WHM still does not let.


    Help, please!
    Last edited by JetPrograms; 06-22-2004 at 01:25 PM.

  5. #5
    Registered User
    Join Date
    Jan 2004
    Posts
    3

    Default

    Originally posted by JetPrograms
    [B]Hello! At me absolutely same problem! FreeBSD 4.9, cPanel CURRENT
    All WHM-logins don't work!

    Before there was a problem: the user could get access on FTP, using any password! I have tried to solve this problem by /scripts/rebuildetcpasswd but instead of it have received one more! This problem was solved updating cPanel, but the problem with access to WHM has remained!

    With me has remained accesshash to cPanel, therefore I can be connected to it, using WHM-authorization. I have changed the Root-password means WHM, the real root-password has changed (in ssh), but WHM still does not let.
    I finally solved this. I took a close look at what that script does and it's clear it shouldn't be there on a FreeBSD box. Here's what I did:

    1) remove /etc/shadow
    2) edit /etc/group - deleted all the duplicate lines
    3) remove /etc/passwd and vipw - edit - save to generate a new /etc/passwd
    4) reboot

    When it came back up it was back to normal.

Similar Threads & Tags
Similar threads

  1. E-mail Alert on Root SSH Login
    By crazyaboutlinux in forum New User Questions
    Replies: 6
    Last Post: 06-09-2009, 05:42 AM
  2. I lost my WHM password (root)..how do I retrieve it?
    By dwh2 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-07-2007, 06:55 AM
  3. SSH root login DENIED
    By Lestat in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-18-2006, 12:29 AM
  4. Replies: 2
    Last Post: 09-29-2006, 12:27 PM
  5. how to change root login user to other for Cpanel WHM login page?
    By onnetsupport in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-07-2006, 09:21 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube