Re: Lost root password



On Nov 28, 1:52 pm, mark.salam...@xxxxxxxxx wrote:
Hi, I have UnixWare 7.1.1 and have misplaced the root password. The
system has not been used in quite some time, so the password has 'been
expired for too long' on the only other user account. So, I can boot
the machine, but cannot access the shell. Does anyone know a way to
get access to the shell, and then to change the root password? I do
have all the media, but cannot find any emergency disks.

TIA

In general UnixWare is pretty secure. You may be able to download and
use the recut UW71.1.4 CD1 and follow this:

1. Boot the machine with the UnixWare Release 7.1.4 CD1

2. Proceed through the installation choosing a locale and a
keyboard language.

3. Press <F8> to defer licensing and choose to use an evaluation
license.

4. If necessary, load an additional HBA driver for your system, or
proceed
with the installation using a standard HBA.

5. Enter the DCU, if necessary, on your system. Otherwise, press <F10>
to
continue.

6. When you get to the "System Node Name" screen, switch to VT0 by
pressing
the <Alt><SysRq> keys together, then the <H> key.

7. Mount the CD-ROM:

mount -F cdfs -r /dev/cdrom1 /cd-rom

8. Assuming your root filesystem is vxfs, register the vxfs filesystem
module:

modreg 4 vxfs

9. Register the bfs filesystem module using:

modreg 4 bfs

10. Load the vxfs and bfs filesystem modules:

modadmin -l /cd-rom/.extra.d/etc/conf/mod.d/vxfs
modadmin -l /cd-rom/.extra.d/etc/conf/mod.d/bfs

11. Mount the root filesystem of the hard disk; the entry below
assumes that
your hard disk is on Controller 0, Bus 0, Target ID 0 and LUN 0. If
not, use
the correct device node for your hard disk.

NOTE:

Root for UnixWare 7 is
always slice 1.

sh_mount -F vxfs /dev/dsk/c0b0t0d0s1 /mnt

12. Mount the boot filesystem of the hard disk; the entry below
assumes that
your hard disk is on Controller 0, Bus 0, Target ID 0 and LUN 0. If
not, use
the correct device node for your hard disk.


That may give you access to your root hard drive so you can edit /etc/
shadow
and remove the root password hash.

Mike
.



Relevant Pages

  • Re: Read-only root (/) except /et
    ... in other words, again root is compromised. ... That means that in a standard config the root filesystem cannot be made ... backup, and fewer writes means less likelihood of corruption eg if power ... Note that all my live partitions are rsync'd with identical ...
    (Debian-User)
  • Re: Read-only root (/) except /et
    ... in other words, again root is compromised. ... That means that in a standard config the root filesystem cannot be made ... backup, and fewer writes means less likelihood of corruption eg if power ... Note that all my live partitions are rsync'd with identical ...
    (Debian-User)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... I don't think anyone is arguing whether or not this is a bug. ...
    (FreeBSD-Security)
  • Re: Disk Druid - Fedora flame #1
    ... >Gene Heskett wrote: ... > be part of a minimal boot environment. ... >And the root filesystem should be as small as reasonably possible, ... as long as root is trusted. ...
    (Fedora)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... They have physical access to the machine. ...
    (FreeBSD-Security)