[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to change root passwd (if forgotten)



you forgot chroot. might also need to do ldconfig -v to make sure the path to shared libraries is correct (but i don't think so).

you used to be able to clear out the field in the shadow file or clear out the x (iirc) in passwd, but i think default pam will stop you from doing this :)

On Wed, Aug 10, 2011 at 11:25, abdelkader belahcene <abelahcene@gmail.com> wrote:
Hi,
I ve forgotten my root passwd on centos 6 (red hat based),

I tried to change it as I used in debian (in debian it works perfectly) ,  that is:

use a cd live (or installation cd1), to access the hd,
I mount  my root partition and mount proc and devices

I tried  the command passwd, no error reprorted, but after reboot the passwd had´t changed.
then I decided to remove passwd from /etc/shadow (delete the
second field).

OK,  now I can access my machine  without passwd,  BUT I CAN´T GIVE ANY PASSWORD!!!!  I RECEIVE THIS ERROR

# passwd

Changing password for user root.
New password:
Retype new password:
passwd: Authentication token manipulation error

any idea to fix the problem.
thanks a lot



Reply to: