|
Navigation
Artikel
Stuff
Registrieren
Mit einem klick auf Send bestätigen Sie, das Sie die Bedingungen gelesen haben, und das Sie damit einverstanden sind. Newsletter
RSS Feeds
|
Tutorials - Root-Rechte auf einem System per physikalischem Zugang erlangenSprachenübersicht/Betriebssysteme/Linux/Security Keywords: Root-rechte, Rootrechte, Root, grub, lilo Root erlangen Top
Code: kernel /boot/vmlinuz root=/dev/hda6 ro init=/bin/bash
Code: cp /etc/shadow /backup-shadow passwd root Enter new UNIX password: Retype new UNIX password:
Gegenmaßnahmen Top
CD-ROM erstellen Top
Code: mkdir -p iso/boot/grub
Code: cp /boot/vmlinuz iso/boot/ cp /boot/System.map iso/boot/ cp /boot/config iso/boot
Code: simon@Cottonmouth:/home/simon$ locate stage2_eltorito /usr/lib/grub/i386-pc/stage2_eltorito simon@Cottonmouth:/home/simon$ cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub Anzeigen
Code: simon@Cottonmouth:/home/simon$ cat >> iso/boot/grub/menu.lst << EOF color yellow/red white/red timeout 10 default 1 fallback 2 title ****** This is Grub loaded from CD ****** title ****** Kernel /bin/vmlinuz ****** root title Linux Kernel hda1 with init=/bin/bash root (hd0,0) kernel /boot/vmlinuz root=/dev/hda1 init=/bin/bash title Linux Kernel hda2 with init=/bin/bash root (hd0,1) kernel /boot/vmlinuz root=/dev/hda2 init=/bin/bash title Linux Kernel hda3 with init=/bin/bash root (hd0,2) kernel /boot/vmlinuz root=/dev/hda3 init=/bin/bash title Linux Kernel hda4 with init=/bin/bash root (hd0,3) kernel /boot/vmlinuz root=/dev/hda4 init=/bin/bash title Linux Kernel hda5 with init=/bin/bash root (hd0,4) kernel /boot/vmlinuz root=/dev/hda4 init=/bin/bash title Linux Kernel hda6 with init=/bin/bash root (hd0,5) kernel /boot/vmlinuz root=/dev/hda4 init=/bin/bash title *** CD Kernel 2.6.20.4 *** title *** Type e and and init=/bin/bash for root *** root title Linux Kernel 2.6.20.4 /dev/hda1 # root (hd0,0) kernel (cd)/boot/vmlinuz root=/dev/hda1 title Linux Kernel 2.6.20.4 /dev/hda2 kernel (cd)/boot/vmlinuz root=/dev/hda2 title Linux Kernel 2.6.20.4 /dev/hda3 kernel (cd)/boot/vmlinuz root=/dev/hda3 title Linux Kernel 2.6.20.4 /dev/hda4 kernel (cd)/boot/vmlinuz root=/dev/hda4 title Linux Kernel 2.6.20.4 /dev/hda5 kernel (cd)/boot/vmlinuz root=/dev/hda5 title Linux Kernel 2.6.20.4 /dev/hda6 kernel (cd)/boot/vmlinuz root=/dev/hda6 EOF
Code: mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size 4 -boot-info-table -o grub.iso iso
Gibt es noch irgendwelche Fragen, oder wollen Sie über den Artikel diskutieren?
Sprachenübersicht/Betriebssysteme/Linux/Security/Root-Rechte auf einem System per physikalischem Zugang erlangen |