Re: password recovery in RAID1
- From: "Hakki Aydin Ucar" <haucar@xxxxxxxxx>
- Date: Mon, 10 Dec 2007 15:54:42 +0200
MY SOLUTION is:
boot cdrom -s
mount my device /a
delete password in /a/etc/shadow
umount /a
mount my secondary device /a
delete password in /a/etc/shadow
halt
(in prom mode) boot -s
passwd
(add a password to root)
passwd -x -1 root
(turn off passwd aging)
Thanks everyone who involved this issue..
HAkki
On Dec 7, 2007 10:35 AM, Karoly VEGH <karoly.vegh@xxxxxxxx> wrote:
_______________________________________________
I usually unmirror the / filesystem to do this.
You need to:
- boot net -s (or boot cdrom -s )
- fsck the relevant device (for example /dev/rdsk/c0t0d0s0 if that is a
member of your / filesystem's mirror)
- mount the device, chroot into it, edit /etc/vfstab and /etc/system so
that the / filesystem and the bootdevice is no more an md device.
- change password
- exit from chroot
- sync
- umount mounted device
- halt
- boot disk (if this is hte devalias pointing the the device you just
mounted)
system shall be running now with the new password and without a /
mirror, however other mirror shall be intact.
- rebuild mirror.
the other opportunity is (never did that yet though, so if it is a prod
system, better not try), after boot net -s :
fsck, mount device, modunload md kernel module, copy von der device the
kernel/driver/md.conf file to /kernel/driver/md.conf, modload md, and
try to mount metadevice, change password.
HTH
charlie
--
Karoly VEGH - System Engineer Unix
bwin Interactive Entertainment AG
IT Operations Unix
Tel: +43/664/8508069
On Thu, 2007-12-06 at 22:25 +0200, Hakki Aydin Ucar wrote:
Hi,
does anyone know how to do root password recovery for mirrored root
exactly, I tried to delete root passwd in /etc/shadow file but system
again asked me a password.
Do we need to unmirror ? but metastat did not worked..
Thanks in advance
Hakki
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
- References:
- password recovery in RAID1
- From: Hakki Aydin Ucar
- password recovery in RAID1
- Prev by Date: Re: T2000 - raidctl - how to?
- Next by Date: Tip failure
- Previous by thread: password recovery in RAID1
- Next by thread: I try to lock the ports 137 and 139
- Index(es):
Relevant Pages
|