>Как снять пароль с солярки? SunOS 5.5.1? при загрузке просит ввести пароль
>? можно ли его как либо обойти? у машины есть флоп
>и CDROM!! оригинального компакта с осью нет!!
Все просто :)
1. You need to have physical access to the machine's console.
2. Note the root partition; Solaris 8 uses /dev/dsk/c0t0d0s0 on the Ultra5/10 and Blade 100, /dev/dsk/c0t1d0s0 for Blade 1000.
3. Press the STOP and A keys simultaneously, or, on an ASCII terminal or emulator, send a <BREAK>) to halt the operating system, if it's running.
4. Boot single-user from CD-ROM (boot cdrom -s) or network install/jumpstart server (boot net -s). For Solaris 8 use the CD-ROM labeled "Installation". (If it asks you for a prom password, see below.)
5. Mount the root partition on "/a". "/a" is an empty mount point that exists at this stage of the installation procedure. For example: #mount /dev/dsk/c0t0d0s0 /a
6. If the mount command fails and since "/a" always exists, then you either typed in the wrong device, OR the system is seeing the root partition as something else. Do a "ls /tmp/dev/dsk" and see what is there. "c0t6" things are the CD-ROM, what is left is what one needs to try. On a Blade 1000/2000, choose /dev/dsk/c1t1d0s0, and execute: #mount /dev/dsk/c1t1d0s0 /a
7. Set your terminal type so you can use a full-screen editor, such as vi. You can skip this step if you know how to use "ex" or "vi" from open mode. If you're on a sun console, type "TERM=sun; export TERM"; If you are using an ascii terminal or terminal emulator on a PC for your console, set TERM to the terminal type for example: TERM=vt100; export TERM.
8. Edit the passwd file, /a/etc/shadow (or perhaps in older versions, /etc/passwd) and remove the encrypted password entry for root.
9. Type: "cd /; then "umount /a"
10. Reboot as normal in single-user mode ("boot -s"). The root account will not have a password. Give it a new one using the passwd command.
Образы компактов Solaris можно скачать с www.sun.com; для того, чтобы загрузиться с CD, подмонтировать диск и отредактировать /etc/shadow & /etc/passwd можете смело использовать любую версию дистрибутива.
Если рядом есть еще одна машина с Solaris, можно переставить диск в нее :)