Re: how to change root passwd (if forgotten)
On 8/10/11, Lucas Lima <lcs.freirelima@gmail.com> wrote:
> the passwords are stored in /etc/shadow and you deleted the file, you should
> restore it.
I just removed the second field , the password for th root. no more things
restore it ?? how??
starting with level 1, (single ) is not a solution, the password is required.
regards
> And to set a new root password read more, its quite easy
>
> 2011/8/10 abdelkader belahcene <abelahcene@gmail.com>
>
>> *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: