[comp.sys.att] 3b2/400

hashemi@leadsv.UUCP (Rahmat O. Hashemi) (03/27/90)

Howdy Net.folk. I have a problem, which requires some experties(which I don't
have).

I have been given a task of setting up an ATT 3B2/400 by a friend. 
I turned on the machine, and after completion of diagnostics, there was the
Console Login prompt. I logged on as sysadmin, and started setting things up
(I assigned a password to the sysadm, the first dumb thing I did in this
process). I was pulled away from the system in middle of this setup session,
and power has been cycled to the system. Now the big problem: I HAVE FORGOTTEN
THE PASSWORDS I HAD ASSIGNED TO THE SYSADMIN AND ROOT... :-( . THe big question
is, HOW DO I GET BACK ON THIS SYSTEM(No Floppy Key was made at the time).

Any advise is greatly appreciated.

root@nebulus.UUCP (Dennis S. Breckenridge) (03/28/90)

In article <10509@leadsv.UUCP> hashemi@leadsv.UUCP (Rahmat O. Hashemi) writes:
> Howdy Net.folk. I have a problem, which requires some experties(which I don't
> have).
> 
> and power has been cycled to the system. Now the big problem: I HAVE FORGOTTEN
> THE PASSWORDS I HAD ASSIGNED TO THE SYSADMIN AND ROOT... :-( . THe big question
> is, HOW DO I GET BACK ON THIS SYSTEM(No Floppy Key was made at the time).
> 
> Any advise is greatly appreciated.

If you have changed the hardware password (mcp) you have to disconnect the
lythium battery inside the machine. This will force a NVRAM sanity failure
and reset whatever the password was back to "mcp". Find disk number one of
the Unix(tm) set and boot the machine. When you see the message "DIAGNOSTICS
PASSED" reach around the back of the computer and press the reset button. Some
machines had a real push button, but most of them have a little hole with a 
recessed switch. Use a paper clip or small screwdriver. Type in the "mcp"
password and you should get a menu of what to boot, etc. If not check the 
parity on your terminal. To verify it is correct (I beleive its 7bit none)
press the return key. You should get the message "System Failure blah blah..."
for each time you press the return key. 
Boot from the floppy (its obvious from the menu's). When the installation
menu comes up type in "magic mode". If all is well you will get the message
POOF!. Now type in "shell" and presto chango you have a super user shell. 
run fsck on the hard disk (/dev/rdsk/c1d0s?) I cannot remember what root
and user slices are. I think c1d0s0 is root and c1d1s2 is usr. Mount the
root partition "mount /dev/dsk/c1d0s0 /mnt" Make sure the /mnt directory
is there first. Here is the rest of the goodies in command format.

# cp /mnt/passwd /mnt/opasswd			# save a copy of the passwd
# cat > /mnt/passwd				# create a new password file
root::0:1::/:					# This is STDIN 
<ctl-d>						# close the passwd file
# cat /mnt/opasswd >> /mnt/passwd		# append the old passwd file
# cd /						# get off the drive
# umount /mnt					# umount it!
# reboot the machine

This will add an additional root entry to the password file. Login searches
sequentially so it finds the first root entry and no password. Presto. Then
vi the password file and remove the duplicate entry. This time set the 
password and WRITE IT DOWN or file it more carefully. I hope this helps.

-- 
-----------------------------------------------------------------------------
Dennis S. Breckenridge  (604) 277-7413   dennis@nebulus.uucp           VE7TCP
               EMACS: Eight Megabytes And Constantly Swapping!
-----------------------------------------------------------------------------

theobald@cbnewsk.ATT.COM (glenn.theobald) (03/29/90)

In article <1990Mar27.175309.2551@nebulus.UUCP> root@nebulus.UUCP (Dennis S. Breckenridge) writes:
>In article <10509@leadsv.UUCP> hashemi@leadsv.UUCP (Rahmat O. Hashemi) writes:
>> Howdy Net.folk. I have a problem, which requires some experties(which I don't
>> have).
>> 
>> and power has been cycled to the system. Now the big problem: I HAVE FORGOTTEN
>> THE PASSWORDS I HAD ASSIGNED TO THE SYSADMIN AND ROOT... :-( . THe big question
>> is, HOW DO I GET BACK ON THIS SYSTEM(No Floppy Key was made at the time).
>> 
>> Any advise is greatly appreciated.
>                                                   Find disk number one of
>the Unix(tm) set and boot the machine. When you see the message "DIAGNOSTICS
>PASSED" reach around the back of the computer and press the reset button. Some
>machines had a real push button, but most of them have a little hole with a 
>recessed switch.

[ Deleted useful text ]

>root partition "mount /dev/dsk/c1d0s0 /mnt" Make sure the /mnt directory
>is there first. Here is the rest of the goodies in command format.

The Essental Utilities Disk #1 does NOT have the mount(1) command.  There
is a comprable command fsys with undocumented options to do this operation.
The devices on the floppy are also different /dev/idsk00 (on the floppy)
is where the / (hard drive) filesystem lives.  The filesystem should be
fsck(1M)'ed before mounted to be on the safe side.
Also the /mnt directory does not exist on the EU #1 disk, use instal.

# fsck /dev/idsk00
# fsys -m /dev/idsk00 /install

># cp /mnt/passwd /mnt/opasswd			# save a copy of the passwd

# cp /install/etc/passwd /install/etc/opasswd

># cat > /mnt/passwd				# create a new password file

		Once root is mounted the editor ed(1) which lives 
		in /bin is now available, thus

# /install/bin/ed /install/etc/passwd		

		Edit with ed and save file before quiting

># umount /mnt					# umount it!

		umount(1) is also not on the EU #1 disk so use fsys again.

# fsys -u /install
# sync
# sync
		Sync the system to update the superblock and assure everything 
		is written to the disk.
# uadmin 2 2
		Uadmin(1) is a very dangerous command. These options cause a
		return to firmware.  From there just boot /unix off of the
		hard drive and you have removed the root password.

>-----------------------------------------------------------------------------
>Dennis S. Breckenridge  (604) 277-7413   dennis@nebulus.uucp           VE7TCP
>               EMACS: Eight Megabytes And Constantly Swapping!
>-----------------------------------------------------------------------------

Glenn Theobald
theobald@inuxy.att.com

root@nebulus.UUCP (Dennis S. Breckenridge) (03/29/90)

Oops forgot about the fsys command, I have been using a 386 too long!
Sigh! Sorry for the confusion

-- 
-----------------------------------------------------------------------------
Dennis S. Breckenridge  (604) 277-7413   dennis@nebulus.uucp           VE7TCP
               EMACS: Eight Megabytes And Constantly Swapping!
-----------------------------------------------------------------------------

ram@attcan.UUCP (Richard Meesters) (03/30/90)

In article <2312@cbnewsk.ATT.COM>, theobald@cbnewsk.ATT.COM (glenn.theobald) writes:
> In article <1990Mar27.175309.2551@nebulus.UUCP> root@nebulus.UUCP (Dennis S. Breckenridge) writes:
> >                                                   Find disk number one of
> >the Unix(tm) set and boot the machine. When you see the message "DIAGNOSTICS
> >PASSED" reach around the back of the computer and press the reset button. Some
> >machines had a real push button, but most of them have a little hole with a 
> >recessed switch.
>
> >root partition "mount /dev/dsk/c1d0s0 /mnt" Make sure the /mnt directory
> >is there first. Here is the rest of the goodies in command format.
> 
> The Essental Utilities Disk #1 does NOT have the mount(1) command.  There
> is a comprable command fsys with undocumented options to do this operation.
> The devices on the floppy are also different /dev/idsk00 (on the floppy)
> is where the / (hard drive) filesystem lives.  The filesystem should be
> fsck(1M)'ed before mounted to be on the safe side.
> Also the /mnt directory does not exist on the EU #1 disk, use instal.
> 

Actually, that depends on the version of UNIX (tm) you are using.  You are
correct, the earlier versions of the O/S did NOT have the mount command 
embedded in magic mode.  But that changed for the later versions, I believe
it was somewhere around SVR2.04.  Any 3.X UNIX for the 3B2 has mount 
within magic mode.

Regards,


------------------------------------------------------------------------------
     Richard A Meesters                |
     Technical Support Specialist      |     Insert std.logo here
     AT&T Canada                       |
                                       |     "Waste is a terrible thing
     ATTMAIL: ....attmail!rmeesters    |      to mind...clean up your act"
     UUCP:  ...att!attcan!ram          |
------------------------------------------------------------------------------