Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a small problem. I have shared keys setup on my domain, so I never type my password to login anymore.

I've forgotten my password now. This is a problem because only my user can sudo. Password authentication for root has been disabled, so without my password, I cannot do maintenance on my web server.

Is there a way to reset my password as my [now only] key-authenticated user?

Specifically, can this be done on CentOS 4?

share|improve this question
up vote 3 down vote accepted

Aside from finding and exploiting a serious security vulnerability in Linux, I can't see how there could be a way to do this without physical access.

share|improve this answer
I was somewhat afraid of that :-\ ...looks like I'l need to open a support case with my host to have them reboot to init 1 and fix the root password for me :( – warren Jun 2 '10 at 14:12

I have not done this in a long time so I might be wrong. You can reset the password by rebooting into single-user mode.

Here are some links:

share|improve this answer
I am aware of the single user mode route.. but the is a remote server, and I ave no console/iLO access :-\ – warren May 28 '10 at 15:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .