A multiple account transfer between cPanel servers suddenly stopped. The problem was that the root password (I was using the su escalation) suddenly was not recognised. Oh well, WHM has a change root password options so I did that from a wheel account. It did not work. No matter what I changed it to - I could not login to WHM as root or SSH in directly or by su-ing from another account. Restarted SSH of course to no effect.
It is at these times you think you have a borked server.
Luckily I had key authentication from another server and was able to get into root that way. Did a passwd, tokens were updated but it didn't actually deliver a working password. I was really panicking now. I eventually solved the issue by creating (as root) another user then giving it root powers AND UID 0. I then SSH into this other account and passwd root. It worked!!!
Password access is back on both SSH and WHM. How crazy was that? And without key authentication the server would have been effectively bricked.
Any ideas on what went wrong and hence how can I avoid a repetition? I'm guess its really a Linux/Centos 6.3 issue but cPanel was probably the cause and cPanel Root password change could not bring it back.
Meanwhile I'm going to have a few stiff whiskies and preach key authentication to anybody who will listen. Saved my day!
It is at these times you think you have a borked server.
Luckily I had key authentication from another server and was able to get into root that way. Did a passwd, tokens were updated but it didn't actually deliver a working password. I was really panicking now. I eventually solved the issue by creating (as root) another user then giving it root powers AND UID 0. I then SSH into this other account and passwd root. It worked!!!
Password access is back on both SSH and WHM. How crazy was that? And without key authentication the server would have been effectively bricked.
Any ideas on what went wrong and hence how can I avoid a repetition? I'm guess its really a Linux/Centos 6.3 issue but cPanel was probably the cause and cPanel Root password change could not bring it back.
Meanwhile I'm going to have a few stiff whiskies and preach key authentication to anybody who will listen. Saved my day!