czwartek, 13 sierpnia 2015

Red Hat & Ubuntu reset root password

REDHAT
 
- init.d
W Grub Press "e"
linia kernel... Press "e" na końcu space i 1
Enter
Pres "b"
passwd

- system.d
W Grub Press "e"

linia linux16....znajdz
rhgb quite LANG
i zmien na
rhgb quite rd.break LANG
Ctrl + x

Jak wyskoczy Promt #
mount -o remount,rw /sysroot/
chroot /sysroot/
passwd


UBUNTU 14

Albo tryb recovery i potem
mount -o remount,rw /
chroot /

Albo:
  1. Select (highlight) the GRUB boot menu entry you wish to use.
  2. Press e to edit the GRUB boot commands for the selected boot menu entry.
  3. Look near the bottom of the list of commands for lines similar to

    linux /boot/vmlinuz-3.2.0-24-generic root=UUID=bc6f8146-1523-46a6-8b\
    6a-64b819ccf2b7 ro quiet splash
    initrd /boot/initrd.img-3.2.0-24-generic
  4. Change the middle line in (3) by adding the kernel boot parameter single to the end of the line (i.e. after ro quiet splash).

    For this example you would change
    6a-64b819ccf2b7 ro quiet splash
    to
    6a-64b819ccf2b7 ro quiet splash single
  5. Press either Ctrl+X or F10 to boot using these kernel options.

Brak komentarzy:

Prześlij komentarz