How to reset root password of old Unix System V


 
Thread Tools Search this Thread
Special Forums Cybersecurity How to reset root password of old Unix System V
# 1  
Old 11-29-2008
How to reset root password of old Unix System V

Hi all,

This is first time I met unix in my life. I purchased old Scanning Elecron Microscope which came with 486/33MHz PC running Unix System V, ver. 3.6. The one simple user name/passw is known so I can boot and login. But can not shutdown! It asks root or su passw. I'm very sensitive not to destroy any configuration. As advised on this foum I found /etc/passwd file but inside is only 'x' in places of passwords - means they are in shadow file. I found it however I was not allowed even to look in to it.
My idea is such - to boot from floppy, take this shadow file and then try to use JtR cracker. Or take out HDD, put on another Unix machine and copy or look in to shadow file then.
Can somebody advise - would it work to go this way?
- would all configuration and startup information survive if I would access HDD booted not from it?
- can somebody recomend where to download light bootable floppy version of suitable for me Unix?
# 2  
Old 11-29-2008
You will need bootable media that was used to install the os or that came with the os. The problem you will have is that your file system may not be readable by any other os. Attaching the HD to another box might be worth a try though. If you get access to shadow file, you will be able to read and write to it. Just remove the encrypted password. Or copy the encrypted password from the account whose password you know. If you give JtR, say, 500 passwords, it can quickly break a few most of the time. But if your root password is a good one, it can take many weeks.

Can't the guy who sold you the system tell you the password?
# 3  
Old 11-29-2008
Quote:
Originally Posted by Perderabo
You will need bootable media that was used to install the os or that came with the os. The problem you will have is that your file system may not be readable by any other os. Attaching the HD to another box might be worth a try though. If you get access to shadow file, you will be able to read and write to it. Just remove the encrypted password. Or copy the encrypted password from the account whose password you know. If you give JtR, say, 500 passwords, it can quickly break a few most of the time. But if your root password is a good one, it can take many weeks.

Can't the guy who sold you the system tell you the password?
The seller is just a surplus dealer. He does not know what the unix is. Also he dont know (dont tell) the real prev user.

So I dont have any bootable media, and to hook HDD on another box looks the best option. Do you think a current Linux'es would be able to talk to Sys5 UNIX file system?

I'm still not sure if UNIX uses some encrypted files or general? Means If I would have same OS loaded on another box would I be able to read files from new hooked HDD?
# 4  
Old 11-29-2008
Remove the hard drive with the root file system on it and mount it using another system, and then edit the password file.

When you have physical access to a hard drive, you can, generally speaking, always change the root password.

So, first you need to find out what type of filesystem you have. If the filesystem is one supported by the Linux kernal, you can simply boot from a Linux kernal and then mount the disk partition with the password file, and then edit it.

That is how I would do it.
# 5  
Old 11-30-2008
Unix SVR3 came out from AT&T about 20 years ago and the last major release was 3.2.
You need to know which company marketed your unix, the version, and the medium.
Please post the output from unix commands:
Code:
uname -a

Code:
cat /etc/copyright

Any useful messages before you get before the login prompt (if not the same as above) ?

PS. What size is your floppy drive? Is is this a server with a SCSI disc?

Last edited by Yogesh Sawant; 08-07-2011 at 06:51 PM.. Reason: added code tags
# 6  
Old 12-01-2008
yes it appeared to be more complicated. The HDD is scsi.
I found Adaptec scsi adapter, connected my traget HDD and booted another machine with puppy linux CD. The HDD was found at boot and there what I could see with dmesg :

# dmesg
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
<Adaptec 2940 SCSI adapter>
aic7870: Single Channel A, SCSI Id=7, 16/253 SCBs
scsi 0:0:0:0: Direct-Access MAXTOR LXT-340S 6.73 PQ: 0 ANSI: 1 CCS
target0:0:0: Beginning Domain Validation
target0:0:0: Ending Domain Validation
SCSI device sda: 665154 512-byte hdwr sectors (341 MB)
sda: Write Protect is off
sda: Mode Sense: 57 00 00 08
SCSI device sda: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 665154 512-byte hdwr sectors (341 MB)
sda: Write Protect is off
sda: Mode Sense: 57 00 00 08
SCSI device sda: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: unknown partition table
sd 0:0:0:0: Attached scsi disk sda

The disk was not listed on desktop for ones available to mount. I guess prelast message "sda: unknown partition table" was the reason. This was on my new linux box.

On the native machine during boot message pops up:

UHC UNIX System V Rel. 4.0 Version 3.6

then many messages about loaded modules

The uname -a returns:
fib1 4.0 3.6 i386 386/AT (fib1 - is user )

/etc/copyright - does not exist

With this original box flopies are formated at 1.44M and also I managed to make tar backups of some data. But my puppy linux could not mount them either.

Any ideas how to move on?
# 7  
Old 01-22-2009
UHC was UHC Corp out of Houston, TX. They were selling a rebadged version of SVR4 for i386. i.e. USL's Destiny product which later became the basis for SCO UNIXware.
Any SCO UNIXware platform should be able to mount and read the filesystem.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Linux root Password Reset

Hi , I ve a question about the Linux system root password change. Which can be done using grub menu without inputting the old password.:confused: So If anybody can change the root password without any password and then how it is secure. Anybody can manipulate the other user using the... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies

2. UNIX for Advanced & Expert Users

NCR UNIX system v/386 release 4 recover root password

we have NCR 3455 system from long time as attached all information for server (images) , so we need your help to assist us to get root password which lost it , really we appreciate your efforts if you can send us the procedure for resting the administrator (root) password which this server... (0 Replies)
Discussion started by: univoip
0 Replies

3. Solaris

How to reset forgotten mysql root password?

Hi All, I just found one thread on this forum on this subject here: Forgot MYSQL password root | Unix Linux Forums | Web Development but unfortunately the issue was not resolved. I have the same problem with the same error message. The background is that I built a Solaris 11 x86 server... (11 Replies)
Discussion started by: hicksd8
11 Replies

4. Solaris

solaris 8 reset root password from OSX

Hello, I have two old Solaris machines $ uname -a SunOS unknown 5.8 Generic_117350-39 sun4u sparc SUNW,UltraAX-e2 unfortunately, it has been so long ago that i have used these that the root password has left my head... i can log into one of the machine as a normal user, but am unable to... (4 Replies)
Discussion started by: Norman Khine
4 Replies

5. Emergency UNIX and Linux Support

Reset AIX root password without shutting down the system

Hi All, I'm stuck in a severe problem here , Someone have changed the root password and he cannot remember it and there is no other user privileged user on the system , But I do have access to a non privileged user. On the top of the system an application which requires a theoretical ... (5 Replies)
Discussion started by: h@foorsa.biz
5 Replies

6. Red Hat

Fedora reset root password

I need some help with Fedora. I am trying to reset the root password. When I tried to login I was not able to. I kept getting the authentication failure message. I got the password reset success message. passwd: all authentication tokens updated successfully. I then thought maybe the root... (6 Replies)
Discussion started by: cokedude
6 Replies

7. UNIX for Advanced & Expert Users

How to reset the ldap root password?

How to change the ldap root password. I have generated the password by using "slappasswd " command, but In my root machine "/etc/ldap/sldap.d" file is not there. instead of the file sldap.d directory only is there. please help me...? (0 Replies)
Discussion started by: ungalnanban
0 Replies

8. UNIX for Advanced & Expert Users

Not able to reset mysql root password

Hi, My root password for mysql has some problem as it dosent allow me to login.... all commands to reset it failed. so I removed mysql yum remove mysql and installed it by yum install mysql mysql-devel mysql-server and it installed fine I gave chkconfig --levels 235 mysqld on... (1 Reply)
Discussion started by: viji19812001
1 Replies
Login or Register to Ask a Question