dpozitif

Member
May 25, 2006
9
0
151
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 :)
 

nerdzoll

Well-Known Member
Oct 4, 2004
105
0
166
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
 

nerdzoll

Well-Known Member
Oct 4, 2004
105
0
166
sorry duudue

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

dpozitif

Member
May 25, 2006
9
0
151
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..
 

dpozitif

Member
May 25, 2006
9
0
151
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
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
In your WHM, add or create a new account. Then add that user to the WHEEL group and you got root ssh access.