The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

shell over whm !!help!!

Discussion in 'General Discussion' started by dpozitif, Jan 5, 2007.

  1. dpozitif

    dpozitif Member

    Joined:
    May 25, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hi. My /etc/passwd file is scrambled and i can't access ssh with my root password. But i can access WHM, i need to run one command '# chmod a+w /etc/passwd' can i run this command over whm? or is there a file manager that i can access /etc/passwd ?
    Thanks :)
     
  2. nerdzoll

    nerdzoll Well-Known Member

    Joined:
    Oct 4, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    you know

    Heya dude,
    I seem to remember chirpy having a solution for this, one that could be installed when this happened then used to run ssh commands.
    Let me see if I can dig it up.
    Stu
     
  3. nerdzoll

    nerdzoll Well-Known Member

    Joined:
    Oct 4, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    sorry duudue

    Heya again, I am really sorry I cannot seem to find it anywhere on his website.
    Stu
     
  4. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
  5. dpozitif

    dpozitif Member

    Joined:
    May 25, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    yeah i know this but i can't access ssh with root password :( my /etc/passwd file is scrambled
    i can only access WHM with root password and i need to do one of these
    -chmod a file
    -run a command over root account
    -edit a file

    i can't access ssh with root password, i can only access whm with root password..
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,461
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    have you tried to change your root pass in WHM?
     
  7. dpozitif

    dpozitif Member

    Joined:
    May 25, 2006
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    yes i've tried it.
    the first 2 lines of file /etc/password must be:
    Code:
    root:x:0:0:root:/root:/bin/bash
    bin:x:1:1:bin:/bin:/sbin/nologin
    but it is
    Code:
    root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin
    this is the problem. someone accessed my server with root and scrambled this file so i can't access root account on ssh, i can only access root account with WHM
     
  8. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I'd just hire Chirpy to fix it for you and to install his security package so you don't get hacked next time. www.configserver.com. Others do similar services. Don't just fix it this time without making sure your system is secure for next time.
     
  9. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    In your WHM, add or create a new account. Then add that user to the WHEEL group and you got root ssh access.
     
Loading...

Share This Page