Reset root password
From MEPIS Documentation Wiki
MEPIS 7 and later
The following is an updated procedure for the newer kernels.
GRUB:
1. Choose the kernel image you boot to (don't press Enter yet)
2. Append the command
init=/bin/sh
to the end of options. Delete "quiet" and "splash" from the options if either is present, and hit enter.
3.When boot is complete you will be at a shell with this prompt: "sh-3.2#" At this prompt, enter the following string:
mount -o remount,rw /
4. Then type: passwd root
5. Follow the prompts to change the password.
6. Type: sync; reboot
Another method (using chroot)
- boot your system with the Live CD, ensuring you select the correct keyboard (or your password may be mangled)
- use the root account to log in.
- mount your "/" partition from the harddisk
- open konsole and type
chroot /mnt/partitionname /bin/bash
where, of course, the partition name is the "/" partition name (e.g. chroot /mnt/hda2 /bin/bash)
- type passwd and input a new password
Older MEPIS versions
!!! Warning! The info contained in this article pertains to older versions of MEPIS !!!
GRUB:
- Choose the kernel image you boot to (don't press Enter yet)
- Append the word single to the end of options, hit enter.
- At command prompt type: passwd root
- Follow the prompts to change the password.
- Type: sync; reboot
LILO:
- Boot your machine, then at the LILO prompt enter:linux single
- Type: passwd root
- Follow the prompts to change the password.
- Type: sync; reboot