• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 802
  • Last Modified:

Forgot Root Password - Have FTP Access

I'm in quite a bind here

I forgot my root password to my centos linux remote server, however I have ftp access

Is there a way to use ftp access to the server to change or find out the root password to the server?

This is VERY urgent, so I'm giving 500 points for any assistance.

Thanks, Brad
1 Solution
You're going to need console access to the box.
Do you have physical access? would be the fastest thing to reset it...
mindlessactsAuthor Commented:
no I do not have physical access

I'm able to execute scripts on this server though, anyway to change the pw with a script?
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

If you do not have any physical access then it's quite hard to reset the password. If you had physical access, you would just need to pop in the distribution CD and boot in recovery mode, then use the passwd command to change the password.

If you could run the scripts with root privileges, then it should be alright. If you can't, then I don't think there's any way that you can reset the root password.
Unless you can FTP as root you won't be able to hack your way in.  If you think about it - if you could do this there would be a BIG security problem.

Can you SSH to the machine as your ftp account?  You might have more of a chance that way - and you'd be all set if you're in a group that has sudo access.

Otherwise you don't need to boot from a recovery CD, but you do need to reboot the machine, hit "a" at the grub prompt and append "single" to the boot arguments.  That'll get you in single user mode as root, bypassing the login.  You can then "passwd root" to change the password and reboot.  Should be easy to talk someone through that over the phone.
Without the root password known to you, you can not do such thing.

What do you mean by having ftp access and can run scripts ?

mindlessactsAuthor Commented:
The datacenter was able to reset it for mw with those directions arrkerr

Thanks, Brad

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now