Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a fedora core 4 whose password is unknown, I reset the password using the following commands :

in grub boot loader I put rw and init=/bin/bash and then I executed

mount -o remount,rw /

then

passwd

and finally

mount -o remount,ro /

and rebooting ctrl+alt+delete

yet when I try to run fedora normally, after startup process I will get "incorrect password" message.

I want to know what is the cause of such message, or is there any possibility that the computer hdd is encrypted or something like that?

share|improve this question
    
Update. Fedora Core 4 is long past sell-by date. –  vonbrand Apr 4 '13 at 21:02
add comment

1 Answer

I'm not sure what your commands in the GRUB environment would do. I can see you are mounting /, but the kernel is not loaded. What user are you running passwd as? Why would that affect the installed system? I am not saying it doesn't, I just don't know and it looks like it won't.

You can do this via GRUB but you will need to actually boot the system at some point. See here for more information.

I recommend you boot into a live session. Then do (as root):

  1. Mount Fedora's root partition (change dev/sdaX with the Fedora /):

    mkdir oldroot
    mount /dev/sdaX oldroot
    
  2. chroot into this directory:

    chroot oldroot
    
  3. Now run passwd and change the password.

  4. Reboot.

share|improve this answer
    
thanks for your input, I investigate a little bit more on this peculiar case, and find out there is a custom drive installed(place unknown to me) by a programmer on this PC and whenever you type 3 wrong passwords in a row the values of /etc/passwd will be changed now I am curious to know, is it possible to change the way of authenticating FC4? if so what files are going to be changed? –  austin powers Mar 27 '13 at 13:20
1  
Don't really know, sorry. I suggest you ask a new question. –  terdon Mar 27 '13 at 13:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.