GuildOfDruids
asked on
(None) Login
Hi,
I was just messing around with CentOS and now when I boot it, it prompts (none) Login: I tried root and every user but none works, I know root password isn't changed.
I even tried to boot into single mode, but it prompts the same thing and wont boot.
It's a test box (VMware), so I can do anything with it, there is nothing to worry about data lost. But I need to know how to fix it.
Any advice would be much appreciated.
Thanks
I was just messing around with CentOS and now when I boot it, it prompts (none) Login: I tried root and every user but none works, I know root password isn't changed.
I even tried to boot into single mode, but it prompts the same thing and wont boot.
It's a test box (VMware), so I can do anything with it, there is nothing to worry about data lost. But I need to know how to fix it.
Any advice would be much appreciated.
Thanks
ASKER
it stopped here: http://i.imgur.com/rS6jh.png
Uh oh - your system has a serious issue.
Can you try init=/bin/sh and see if that works? If not, try booting an ISO image of a rescue CD (RIP Linux is a good one) and see what /bin looks like.
Can you try init=/bin/sh and see if that works? If not, try booting an ISO image of a rescue CD (RIP Linux is a good one) and see what /bin looks like.
ASKER
I'm logged in in rescue mode and chrooted the sysimage but don't know what else to do now as I can't change the pasword.
Did you accidently blow away /bin on the target machine?
Jason
Jason
ASKER
:D
I didn't accidentally the whole machine, I did it on purpose.
Basically, I'm preparing for RHCE exam and I found a tool on internet which could mess things up for you and then you have to fix it. the tool is: rhce-ts-5.0.0-7.noarch.rpm and I found it on thepiratebay.org
The command which does this is: "tsboot 3" and when I boot the machine it prompt (none) login:
I tried the same command on another vm machine and same thing happened. But here is a little clue. The moment I run the above command (to screw things up) and check the logs I find http://i.imgur.com/14R5m.png (check the red circle) When I try to shutdown the computer after the command it doesn't shutdown properly.
I didn't accidentally the whole machine, I did it on purpose.
Basically, I'm preparing for RHCE exam and I found a tool on internet which could mess things up for you and then you have to fix it. the tool is: rhce-ts-5.0.0-7.noarch.rpm
The command which does this is: "tsboot 3" and when I boot the machine it prompt (none) login:
I tried the same command on another vm machine and same thing happened. But here is a little clue. The moment I run the above command (to screw things up) and check the logs I find http://i.imgur.com/14R5m.png (check the red circle) When I try to shutdown the computer after the command it doesn't shutdown properly.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
good to hear I hope I get 100 too :P
at least cross your fingers for me :D
at least cross your fingers for me :D
ASKER
I Got it fixed :D
the /bin/bash was renamed to /bin/bash.gotcha
damnn ..
anyway, I renamed back to /bin/bash and worked!!
fixed now!!
the /bin/bash was renamed to /bin/bash.gotcha
damnn ..
anyway, I renamed back to /bin/bash and worked!!
fixed now!!
are you fucking kidding me , who renamed it that way????
Somebody hacked you .???
Somebody hacked you .???
mount -w -o remount /
passwd root
Then run:
sync;sync;sync
shutdown -r now
That should let you back in. You may have nuked config files in /etc though if the hostname is none. In that case you may have other issues.