Stamm-UID in Ubuntu geändert

317
L00PeR

Ich bastelte an der Datei / etc / passwd, als aus Versehen die Root-UID und die GID geändert wurden. Wenn ich in den Wiederherstellungsmodus gehe, habe ich noch keine Superbenutzer-Fähigkeiten, da in der passwd-Datei ein Benutzer mit UID und GID 0 vorhanden ist. Ich habe etwas über das Booten des PCs von einer Live-CD und das Einhängen einer Partition gelesen, aber ich weiß es nicht vollständig verstehen, was das bedeutet. Vielleicht können Sie mir eine Lösung und einen Link zu einem Tutorial geben oder es hier nur Schritt für Schritt erklären. Danke im Voraus :)

0
So etwas wie dieses (http://www.webupd8.org/2014/01/how-to-fix-non-bootable-ubuntu-system.html) xenoid vor 6 Jahren 0

1 Antwort auf die Frage

0
jvb

A little bit like this: https://help.ubuntu.com/community/LiveCdRecovery

You boot Linux from the Live CD (not using it as a replacement boot loader, but booting into the Live CD installation).

Then mount the partition containing / of your hard disk installation, similar to the tutorial.

Stop before doing chroot! Just cd the the directory where you mounted it, enter etc, cp passwd passwd.backup for good measure (in case your cat jumps on the keyboard one moment later) and vi passwd.