Fortgot root password SCO 5.0.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Fortgot root password SCO 5.0.
# 1  
Old 07-22-2005
Fortgot root password SCO 5.0.

hello guys The company i work for just got a new client, there old datebase is in Unix SCO openserver 5.0.5.
The manager of this new client can login but not as a root , they forgot there own root password. There old IT company never gave it to them and they have no way of getting a hold of them


I hope you guys can understand me , i'm not trying to hack into this systems, we are just trying to get there datebase to put it in our server.


Please this is a big client for our company , i hope you guys can help me with this problem.


Thanks a lot.
# 2  
Old 07-22-2005
Maybe this link will help.
From sap-basis-abap.com sco-unix-root-password
Quote:
SCO Unix Root Password

Adapted from the Unix Discussion Forum:

I want to know if there is any command to reset root password in SCO Unix. I'll be very grateful for the help.

This are the typical perms on a SCO dubba..

# ls -ld /tcb
8 drwxr-xr-x 5 root system 8192 Aug 10 02:28 /tcb
# ls -ld /tcb/files
8 drwxrwx--x 3 bin auth 8192 Aug 10 02:29 /tcb/files
# ls -ld /tcb/files/auth
8 drwxrwx--- 28 auth auth 8192 Oct 14 06:48 /tcb/files/auth
# ls -ld /tcb/files/auth/r
8 drwxrwx--- 2 auth auth 8192 Oct 14 07:00 /tcb/files/auth/r
# ls -l /tcb/files/auth/r/root
1 -rw-rw---- 1 auth auth 627 Aug 9 13:33 /tcb/files/auth/r/root

If you have any other logins coressponding to these owners of these files, su to them, rename the dir. recreate the root file,
(with a null password field) and simply log on!

Else:

First you need a SCO boot floppy with a minimal kernal, vi or ed, and mount on it. If you don't already have one, you can use a custom tailored Unix bootdisk for another UNIX (like Linux or FreeBSD) but this may a) not work or b) destroy your filesystem.

Boot the SCO from the boot disk and login to the default shell as root. At this point, none of the internal drives should be mounted.

Make a subdirectory on the floppy filesystem called recover or some such.
Mount the root partition of the drive to the recover subdirectory on the boot floppy in read/write mode.
You may have to use the FORCE mount option (which can KILL your root partition!) to get it to mount

After the root partition is mounted, it should be trivial to remove the password for the root account from the password table, save, unmount, reboot and remove the boot floppy.

Don't try to reset the root password, just clear out the password field.
Once you can bring the SCO back up (in single user!) then login as root, which may give you warnings but shouldn't ask for a password, and use the admin shell to set a new root password and rebuild the password file(s) correctly.

I have used a variant of this procedure to regain access to my firewall in similar circumstances.

Using a DOS driver for NTFS, much the same effect can be accomplished (with much more work) on an NT system.

Variants of this work for any system you can build the appropriate boot disk for. Also, afterwards, keep a spare "recovery" disk like this handy, but guard it well (i.e. a safe).

It is not a problem if you have emergency root and boot floppies for your SCO machines - if not, you are stuck. The only way around is to reload your os and reload your ''full'' system backups.

The problem lies in the fact that you need the root password to enter maintenance mode.

There are two ways to bypass the root password. The first is if the root entry in tcb is corrupt, and secondly if you have root and boot floppies so that you can purposely corrupt roots tcb entry.

I am going to assume that you do have a root and boot.

Firstly, as you cannot log in as root, power your system off.

Load the boot floppy into the drive and power on.

When prompted, load the root floppy.

At the prompt, check the bootdisk by:

# fsck -y /dev/hd0root

hd0root is a special device file purely for disaster recovery. Once fsck has finished, mount it

# mount /dev/hd0root /mnt

change to /mnt/tcb/files/auth/r rename root

# mv root root.old
# cd /
# umount /mnt
# halt

boot the machine.

When the machine comes up, sysinit is run from inittab and when it finds a problem with roots account, it starts up in single user mode without a password.

When you get control,

# cd /tcb/files/auth/r
# mv root.old root
# passwd root

Don't forget the password!

# cd /
# shutdown -y -go -i6

But of course, you need your emergency boot and root floppies!

I hope that this has been of some help to you.

P.S. SCO 5 is a lot easier as you can do it from the install media.

Last edited by RTM; 04-05-2006 at 10:22 AM..
# 3  
Old 07-25-2005
Quote:
Originally Posted by Perderabo
Maybe this link will help.


Thanks a lot from your response , i'm working on it i'll let you know if it works
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies

2. Ubuntu

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will... (2 Replies)
Discussion started by: 244an
2 Replies

3. SCO

SCO Openserver 5 root password and disk full

Hi, We have an old SCO Openserver 5.0.7 server that I have inherited that currently has two issues that we are trying to resolve. 1. We do not know the root password. I have contacted the old admin, looked for rescue disk and documentation but there appears to be nothing. I have tried... (1 Reply)
Discussion started by: acerimmer10
1 Replies

4. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

5. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

6. Shell Programming and Scripting

how to change root password using shell script with standard password

Hi Friends. I am new to scripting now i want to change the root password using the script with standard password. which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies

7. SCO

SCO Unix 5.0.5 lost root password DPT PM2022A/9X

I got a old server that came from another company and nobody knows root password. Server is SCO OpenServer 5.0.5 with DPT PM2022A/9X controller with CM4000 tow hard drives 4G and 1G (So i assume it cannot be raid). I already tried to mount this hard drives on a OpenServer 5.0.6 machine with... (2 Replies)
Discussion started by: Eugene67
2 Replies

8. UNIX for Dummies Questions & Answers

I need it to prompt me for a root password, so I don't have to log as root

Hi folks, I'm trying to install a program, and I want to place some of the executables into /usr/bin so that they can be executed from any folder on the computer. I've been giveng the root password, but told never to log in directly as root. Instead, I can wait for a password prompt. However, I... (2 Replies)
Discussion started by: lunchtime
2 Replies

9. Linux

how to access root priveliges if root password is lost

wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies

10. Answers to Frequently Asked Questions

Lost root password / Can't login as root

We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies
Login or Register to Ask a Question