Solved

Root password lost...

Posted on 2002-03-28
9
348 Views
Last Modified: 2011-09-20
Hi:

How can I recover my root password without having to boot from the CD-ROM or floppy? I am using a AT&T UNIX SVR4 server. is there some kind of single user mode in this unix version?

Thanks
0
Comment
Question by:fantasma110899
9 Comments
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6905027
First off, if you're using AT&T Unix sVr4, this is a product that hasn't been sold in over 10 years!

Ok, meanwhile, there is a recovery disk/tape that you're supposed to have to reboot/rebuild the machine if it gets really hosed.

If you don't have that, you can still probably go into single user mode.  My memory's fuzzy, but I think you'd power cycle, interrupt the boot sequence (the boot messages should tell you how to do this) and use 'boot -s'.  However, you might need the root pass in single user mode if things were locked down.

Another option is to break into the root account through security holes in that distribution.  Here are some I can think of
o sendmail wiz command
o send mail to the 'uudecode' account with a uuencoded copy of a setuid copy of ksh
o crontab -e as regular user and then create a new crontab for a root-equiv (uid 0) user that doesn't already have a crontab (by simply switching to a file with the right name in the editor) and creating a crontab entry that creates a setuid copy of ksh in /tmp once every five minutes or something
0
 

Author Comment

by:fantasma110899
ID: 6906081
Chris:

Could you explain me in details the first solution? I can't log in as a diferent user because there is not other user( or I don't have any other username). This old Unix came with some old systems donated to my company and I am just trying to save it for learning purposes.

Thanks  
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6906221
Don't bother.  Get yourself a junked 486 (possibly even this machine depending on the hardware) and load Linux on it.  Something like RedHat 7.2 is a lot closer to what you'll find out there in the real world these days, and it's totally free and well supported.  www.redhat.com
0
 
LVL 5

Expert Comment

by:Nisus091197
ID: 6915723
You could just take the disk out and mount it on a different box.  Then you could edit the passwd file.

If it has a CDROM/tape drive or you have an external one you should be able to boot from CD or a cartridge tape.  

Is it a Sun box?  If so, interrupt the boot sequence using Stop+A or L1+A.  At the '>' prompt enter:

b -s cdrom

Reminds me of my old days in Motorola.

please advise,

Regards, Nisus
http://www.omnimodo.com
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6916524
fantasma already stated that it's AT&T sVr4 (i.e., not a Sun), and that he doesn't have recovery disks/tapes.

But putting the disk in another machine is a good idea.  The root filesystem is probably either BSD FFS or s5fs, both of which you should be able to grok on a Linux or BSD system with appropriate filesystem drivers loaded.
0
 
LVL 5

Expert Comment

by:Nisus091197
ID: 6917446
Hi Chris,

SunOS versions up to SunOS 4.1.3 were based on AT&T's implementation.
0
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 50 total points
ID: 6917834
True, but it doesn't identifiy itself as "AT&T System V Release 4".  Only the AT&T releases for the 3b2 and i386 did that.
0
 
LVL 20

Expert Comment

by:tfewster
ID: 7833567
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- Answered by chris_calabrese

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster (I don't work here, I'm just an Expert :-)
0
 

Expert Comment

by:modulo
ID: 7908999
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Samsung memory install did'nt recognize by new hardware 5 25
sort command HPUX 11 65
Search for selected keywords and its values in multiple log files 11 54
Skill Development 15 163
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now