Results 1 to 9 of 9
  1. #1

    Can't 'su' to root after updating WHM

    I just ran the WHM update to the latest RELEASE version for the Exim problem, and now I can't su to root in SSH. I used WHM's add to wheel group page on my username but it still can't su. It also doesn't list anyone in the wheel group except root in WHM, as if the page isn't working or something's wrong with the server. RH9.

    -bash-2.05b$ su
    -bash: /bin/su: Permission denied

    -bash-2.05b$ ls -al su
    -rwsr-x--- 1 root wheel 363105 May 4 23:20 su

    Any advice? I am not a web host, chastising for not having a proper system admin not required
    Dan Grossman - dan @ awio.com
    My Blog | Affiliate Program for Web Hosts

  2. #2
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,290
    have you tried logging into root directly? sshd_config might have been changed around
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  3. #3
    I have root login disabled for security reasons..
    Dan Grossman - dan @ awio.com
    My Blog | Affiliate Program for Web Hosts

  4. #4
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,290
    i am aware of that, but if cpanel attempts to reinstall sshd the config is usually over written
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  5. #5
    No, it does not let me log in as root to SSH still
    Dan Grossman - dan @ awio.com
    My Blog | Affiliate Program for Web Hosts

  6. #6
    I'm going to force a reinstall of openssh through WHM see if that overwrites the conf, thanks for the idea.
    Dan Grossman - dan @ awio.com
    My Blog | Affiliate Program for Web Hosts

  7. #7
    That didnt work either, time for angelnetworkz support :/
    Dan Grossman - dan @ awio.com
    My Blog | Affiliate Program for Web Hosts

  8. #8
    Join Date
    Oct 2003
    Location
    Georgetown, Ontario
    Posts
    1,761
    This happened to us once. Do the following.

    1) Create a new account in WHM, which in turn will create a new user.
    2) Give the user wheel group privilages.
    3) Login with that user, and it should allow you to su into root.
    4) Delete all the accounts that do not allow you to su, and recreate them.


    That worked for us at least. Give it a try.
    ии Repeat after me... ProSupport is the best... Prosupport is... ии
    ProSupport Host Support System - OUT NOW! Grab a copy yourself and see what the hype is about!
    VertiHost Inc. - We run a quality business. Do you?

  9. #9
    Yes, I just figured that out too. I tried adding a new account to wheel and it actually worked, so I used that one to edit the group manually and add back my normal users.

    Damn WHM. Thanks for the help.
    Dan Grossman - dan @ awio.com
    My Blog | Affiliate Program for Web Hosts

Posting Permissions

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