EvilZone
General Tech => Operating System => : WYSIATI March 29, 2013, 01:14:19 PM
-
Hi, guys. My tutor just gave me a server, which had been installed CentOS. He told me to learn Linux with it, but first of all, I should enter it and back up data without username and password!!! Cuz he forgot all of them....... Now I am running this noisy server, there are only 4 items I can choose: Language, Session, Restart or Shut Down. Also, a field to enter user's info. Could you please tell me how to do? THANK YOU!!!
(The first thing I wanna do is to backup all data on this server)
-
Since you have physical access to the server, maybe boot up a liveUSB distro, grab a passwd file and crack it with JtR (John the Ripper)?
-
Since you have physical access to the server, maybe boot up a liveUSB distro, grab a passwd file and crack it with JtR (John the Ripper)?
It would be easier to just boot a LiveCD/USB, mount the server's drive and backup everything.
-
I think instead of mounting the hdd and copying the root password hash from the shadow file and cracking it, just blank out the root hash in the shadow file, write the changes, reboot into the hdd and login with a blank root password. Then put the hash back into the shadow file (after maybe creating a new admin user for your self [sudo or something maybe] ) .
-
init=/bin/bash
Append that ^ to your grub entry.
Then remount the / as with r+w .
Either remove the root user's password from shadow as mentioned or add a user with same privs and work from there.
Pretty doable.
-
init=/bin/bash
Append that ^ to your grub entry.
Then remount the / as with r+w .
Either remove the root user's password from shadow as mentioned or add a user with same privs and work from there.
Pretty doable.
I think instead of mounting the hdd and copying the root password hash from the shadow file and cracking it, just blank out the root hash in the shadow file, write the changes, reboot into the hdd and login with a blank root password. Then put the hash back into the shadow file (after maybe creating a new admin user for your self [sudo or something maybe] ) .
It would be easier to just boot a LiveCD/USB, mount the server's drive and backup everything.
THANK YOU!!!!
I found it was not so complicated. I entered single user mode, and changed the root's pwd, done. Now I am mounting an external hard drive, when I typed [yum search fuse] or [yum install fuse] on terminal, I only got [Loaded plugins fastestmirror Loading mirror speeds from cached hostfile]. I am search for solution.