Re: password recovery in RAID1



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



Relevant Pages

  • [Trouble Ticket #190335] AutoReply: freebsd-questions Digest, Vol 246, Issue 26
    ... please edit your Subject line so it is more specific ... you need to open a root xterm or even a root shell, ... boot manager is installed for this mirror and I would like to remove it ... was that NFS mount managwed ...
    (freebsd-questions)
  • More RAID-1 problems
    ... Mounting root filesystem. ... setuproot: error mounting /proc: No such file or directory ... Mount failed for selinuxfs on /selinux: ... I am still unable to get the system to boot. ...
    (Fedora)
  • Re: Password
    ... I ran a quick search on Ask with the phrase "linux lost ... Have you ever forgotten your root password? ... Fortunately, it wasn't a boot password, so I did have ... (although "mount" may say it is). ...
    (alt.os.linux)
  • Re: Problems with booting from external USB drive
    ... I tried to boot, but it failed with kernel panic. ... Knoppix could mount both partitions. ... Switching to a new root ... Linux needs a "root partition" the '/' partition as it is called, ...
    (comp.os.linux.setup)
  • Re: lost root password on solaris 8 V880 with disksuite OS drive(s)
    ... doing this incorrectly can completely trash both of your boot disks! ... just modifying one side of the mirror will work. ... to mount one side of the mirror read-write. ...
    (comp.unix.solaris)