Re: how to change root passwd (if forgotten)



On Thu, 11 Aug 2011 15:48:02 -0600
Aaron Toponce <aaron.toponce@xxxxxxxxx> wrote:

sulogin is easy enough to bypass.

* Boot Live CD
* Mount /
* Edit /etc/inittab
* Comment out si::sysinit:/etc/init.d/rcS
* Reboot into single user mode

Much easer than chroots, or any of the other previous suggestion, IMO.


Easier than:

* Add init=/bin/bash to the end of kernel in grub
* mount -o remount,rw /
* passwd
* sync & reboot

? Most people I know would rather blindly type commands than edit a
file, and I for one lose my Live CDs a lot :D

--
rbmj


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20110811224731.27c483b7@xxxxxxxxxxxxxxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Re: Sid: Grub2 faling to boot: Unknown device UUID
    ... failed to boot default entries. ... If I press any key I see the edit screen of Grub and it only contains the one ... If I reboot it with CTRL+ALT+DEL and restore the default script I can edit ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: encrypted partition question
    ... We are using luks extension and at each reboot we need to ... Then we can mount /dev/mapper/mappername. ... /dev/hda6 (entered passphrase twice) ... subject of "unsubscribe". ...
    (Debian-User)
  • Re: encrypted partition question
    ... a far as I know the mapping should be recreated each time you reboot using /sbin/cryptsetup. ... Then we can mount /dev/mapper/mappername. ... Moodle services site: http://mediatouch.moodle.com ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: move a lv
    ... Edit /etc/fstab and reboot? ... but this is a device not a mount point ... Cant see why it matters though, since nearly all operations will be to a mounted device..and even if you want the raw partition, you can fake a symlink to it IIRC. ...
    (comp.os.linux.misc)
  • Re: Why /dev/cdrom1 rather than /dev/cdrom
    ... Jonathan Ryshpan wrote: ... You should be able to edit it and reboot. ... To unsubscribe or change subscription options: ...
    (Fedora)