Problem beim ändern des root passwort
Problem beim ändern des root passwort
Hallo,
ich versuche das Passwort des root zu ändern. Dabei benutze ich beim Anmelden des root ein Notfallpasswort.
Um das Passwort selber zu ändern, lege ich ein neues Verzeichnis an. mkdir mnt. das klappt auch.
Danach versuche ich das vVerzeichnis zu mounten. mount /dev/hda3 /mnt.
Dabei kommt die Meldung mount: you must specify the filesystem type.
Ich habe dabei keine Ahnung wo da der Fehler ist und wie ich es beheben kann.
Mfg
ich versuche das Passwort des root zu ändern. Dabei benutze ich beim Anmelden des root ein Notfallpasswort.
Um das Passwort selber zu ändern, lege ich ein neues Verzeichnis an. mkdir mnt. das klappt auch.
Danach versuche ich das vVerzeichnis zu mounten. mount /dev/hda3 /mnt.
Dabei kommt die Meldung mount: you must specify the filesystem type.
Ich habe dabei keine Ahnung wo da der Fehler ist und wie ich es beheben kann.
Mfg
- garibaldi
- Beiträge: 2443
- Registriert: 17.09.2004 02:31:12
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Berlin
Hi baltazahr und Willkommen im Forum!
Willst du ein Reservepasswort, kannst du einfach einen weiteren Benutzer mit Rootprivilegien anlegen.
Falls du mal das PW vergesssen soltest, kommst du aber auch über eine Live-CD in das System und kannst dann das alte PW löschen oder ändern.
Gruß, garibaldi
- Das ändern des Rootpassworts geht einfach mit
Code: Alles auswählen
# passwd
- Das Verzeichnis /mnt ist doch standardmäßig schon vorhanden, wieso neu Anlegen
- Der Befehl mount sagt die selbst, was er verlangt, nämlich die Spezifizierung des Dateisystems, also zB.:
Code: Alles auswählen
# mount /dev/hda3 -t ext3 /mnt
Willst du ein Reservepasswort, kannst du einfach einen weiteren Benutzer mit Rootprivilegien anlegen.
Falls du mal das PW vergesssen soltest, kommst du aber auch über eine Live-CD in das System und kannst dann das alte PW löschen oder ändern.
Gruß, garibaldi
Was einer im Reiche der Wahrheit erwirbt, hat er allen erworben... -- Schiller
-
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
Willkommen im Forum!
Meine Vermutung ist, das es um einen Rootserver geht und du dich im Rettungssytem befindest. Poste mal die Ausgabe von
Meine Vermutung ist, das es um einen Rootserver geht und du dich im Rettungssytem befindest. Poste mal die Ausgabe von
Code: Alles auswählen
fdisk -l
Hi,
hier der Inhalt.
Disk /dev/hda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 124 995998+ fd Linux raid autodetect
/dev/hda2 125 373 2000092+ 82 Linux swap / Solaris
/dev/hda3 374 20023 157838625 5 Extended
/dev/hda5 374 995 4996183+ fd Linux raid autodetect
/dev/hda6 996 1617 4996183+ fd Linux raid autodetect
/dev/hda7 1618 2737 8996368+ fd Linux raid autodetect
/dev/hda8 2738 10207 60002743+ fd Linux raid autodetect
/dev/hda9 10208 20023 78846988+ fd Linux raid autodetect
Disk /dev/hdc: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 124 995998+ fd Linux raid autodetect
/dev/hdc2 125 373 2000092+ 82 Linux swap / Solaris
/dev/hdc3 374 20023 157838625 5 Extended
/dev/hdc5 374 995 4996183+ fd Linux raid autodetect
/dev/hdc6 996 1617 4996183+ fd Linux raid autodetect
/dev/hdc7 1618 2737 8996368+ fd Linux raid autodetect
/dev/hdc8 2738 10207 60002743+ fd Linux raid autodetect
/dev/hdc9 10208 20023 78846988+ fd Linux raid autodetect
Disk /dev/md0: 1019 MB, 1019805696 bytes
2 heads, 4 sectors/track, 248976 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md5: 80.7 GB, 80739237888 bytes
2 heads, 4 sectors/track, 19711728 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md5 doesn't contain a valid partition table
Disk /dev/md4: 61.4 GB, 61442686976 bytes
2 heads, 4 sectors/track, 15000656 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md4 doesn't contain a valid partition table
Disk /dev/md3: 9212 MB, 9212198912 bytes
2 heads, 4 sectors/track, 2249072 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md3 doesn't contain a valid partition table
Disk /dev/md2: 5116 MB, 5116002304 bytes
2 heads, 4 sectors/track, 1249024 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1: 5116 MB, 5116002304 bytes
2 heads, 4 sectors/track, 1249024 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
@spasswolf, ich befinde mich im Rettungssystem.
hier der Inhalt.
Disk /dev/hda: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 124 995998+ fd Linux raid autodetect
/dev/hda2 125 373 2000092+ 82 Linux swap / Solaris
/dev/hda3 374 20023 157838625 5 Extended
/dev/hda5 374 995 4996183+ fd Linux raid autodetect
/dev/hda6 996 1617 4996183+ fd Linux raid autodetect
/dev/hda7 1618 2737 8996368+ fd Linux raid autodetect
/dev/hda8 2738 10207 60002743+ fd Linux raid autodetect
/dev/hda9 10208 20023 78846988+ fd Linux raid autodetect
Disk /dev/hdc: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 124 995998+ fd Linux raid autodetect
/dev/hdc2 125 373 2000092+ 82 Linux swap / Solaris
/dev/hdc3 374 20023 157838625 5 Extended
/dev/hdc5 374 995 4996183+ fd Linux raid autodetect
/dev/hdc6 996 1617 4996183+ fd Linux raid autodetect
/dev/hdc7 1618 2737 8996368+ fd Linux raid autodetect
/dev/hdc8 2738 10207 60002743+ fd Linux raid autodetect
/dev/hdc9 10208 20023 78846988+ fd Linux raid autodetect
Disk /dev/md0: 1019 MB, 1019805696 bytes
2 heads, 4 sectors/track, 248976 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md5: 80.7 GB, 80739237888 bytes
2 heads, 4 sectors/track, 19711728 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md5 doesn't contain a valid partition table
Disk /dev/md4: 61.4 GB, 61442686976 bytes
2 heads, 4 sectors/track, 15000656 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md4 doesn't contain a valid partition table
Disk /dev/md3: 9212 MB, 9212198912 bytes
2 heads, 4 sectors/track, 2249072 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md3 doesn't contain a valid partition table
Disk /dev/md2: 5116 MB, 5116002304 bytes
2 heads, 4 sectors/track, 1249024 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
Disk /dev/md1: 5116 MB, 5116002304 bytes
2 heads, 4 sectors/track, 1249024 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
@spasswolf, ich befinde mich im Rettungssystem.
-
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
Dann hat meine Glaskugel also funktioniert
Deine Rootpartition liegt also auf einem Software Raid, das mountest du so:
Falls /dev/md0 nicht dein / Verzeichnis enthält, nimm das passende mdX. Dann muss du noch ein chroot ausführen:
und kannst dann dein Passwort mit passwd neu setzen.

Deine Rootpartition liegt also auf einem Software Raid, das mountest du so:
Code: Alles auswählen
mount /dev/md0 /mnt
Code: Alles auswählen
chroot /mnt
Habe ich nun mit
gemountet.
danach chroot ausgeführt.
komme da jetzt nicht weiter.
Code: Alles auswählen
mount /dev/md1 /mnt
danach chroot ausgeführt.
Code: Alles auswählen
root@h777777:~# chroot /mnt
bash: dircolors: command not found
h777777:/# screen
-
- Beiträge: 3472
- Registriert: 30.11.2005 10:32:22
- Lizenz eigener Beiträge: MIT Lizenz
- Wohnort: Wald
passwd liegt in /usr/bin, was bei dir eventuell auf einer eigenen Partition liegt. Die muss du auch noch einbinden. Also raus aus dem chroot und nochmal von vorne:
Rootpartition einhängen:
Dies sorgt dafür, dass du auch im chroot auf deine devices zugreifen kannst;
Chroot:
/usr einhängen(ersetze mdX durchs passende md Device):
Und dann:
Rootpartition einhängen:
Code: Alles auswählen
mount /dev/md1 /mnt
Code: Alles auswählen
mount -o bind /dev /mnt/dev
Code: Alles auswählen
chroot /mnt
Code: Alles auswählen
mount /dev/mdX /usr
Code: Alles auswählen
passwd