root password reset

Giorgos Keramidas keramida at ceid.upatras.gr
Thu May 18 13:09:43 EEST 2006


On 2006-05-18 12:48, john.z at freemail.gr wrote:
> kalimera , exo ena provlima me ena linux mandrake 7,2(boot loader
> lilo) den xeroume to root password kai theloume na paroume kapoia
> arxeia apo mia palia efarmogi
>
> exo fisiki prosvasi sto pc me to linux , mporei kapoios na mou thimisi
> tin diadikasia reset tou root password kata to boot?

De xreiazetai na ginei ayto ``kata to boot''.  Pare to disko apo to
mhxanhma kai peta ton se ena allo Linux pou ksereis to root password.
Kane mount to disko sto neo mhxanhma, kata protimhsh me thn idia domh
filesystems, alla katw apo to /mnt/foo, p.x.:

        Palio filesystem        Mount point
        ----------------        -----------
        /                       /mnt/foo
        /var                    /mnt/foo/var
        /usr                    /mnt/foo/usr
        /home                   /mnt/foo/home
        swap                    -

Tote mporeis na `deis' to palio systhma, eite apla douleuontas mesa ston
katalogo `/mnt/foo', eite me xrhsh ths entolhs chroot(8).  Egw synh8ws,
as poume, xrhsimopoiw kati san ayto:

        # env PS1='chroot# ' chroot /mnt/foo /bin/sh

Etsi mporeis, gia paradeigma, na trekseis `passwd' kai na allakseis to
password tou root *mesa* apo to chroot (afou exeis hdh superuser rights,
logw toy ektos chroot systhmatos, de tha se rwthsei to palio password).

Bges apo to chroot, pare oti arxeia theleis apo to `/mnt/foo' systhma,
kai eisai etoimos.




More information about the Linux-greek-users mailing list