Re: password recovery in RAID1

From: Hakki Aydin Ucar (haucar@gmail.com)
Date: Mon Dec 10 2007 - 08:54:42 EST


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@bwin.org> 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@sunmanagers.org
> > http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:35 EDT