🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by x31 Sat, 24 Jan 2004 10:57
Unix Login Problem URGENT
#131
Author: x31
Date: Sat, 24 Jan 2004 10:57
23 lines
1439 bytes
Dear Experts,

We have the Oracle Database running on DG/UX Server.

Now while working, I have given the command to (tar) /etc/passwd to Digital
Audio Tape --- but it has some hardware problem and the console got hanged.

Later after many Control-C, I could get (#) prompt.

At that # prompt I gave (exit), which took me to Console Login.

Now it is not allowing me to login by root or sys or by any other login. I
believe the /etc/passwd file is corrupted.

Please help me to get the (#) prompt, because I have the copy of /etc/passwd
in some other directory. I am also unable to login from remote terminal by
TELNET or FTP.

UREGENT PLEASE HELP

Thanks in advance

-Tanveer
Re: Unix Login Problem URGENT
#134
Author: Stephen Samuel
Date: Mon, 26 Jan 2004 17:59
92 lines
4639 bytes
My quick question here is:
Do you remember the *exect* command you used to run the backup?

What I fear is that you got confused between the TAR command and
the CP. Command.   For the CP command the correct usage is:
	cp original destination
for the tar command, the correct usage is
	tar -cf destination files to be backed up.
(the minus eign is not necessry. I use it as a matter of habit)

This means that if you did something like:

	tar -cf /etc/passwd  /dev/dat

then you may have backed up information about the dat drive +top
of the password file (by bye passwords).


If you've trashed the /etc/passwd file, then your only real resort
is to do a 'rescue' boot....  I don't remember DG well enough, but
if you're REALLY lucky, you may be able to do a single-user boot
without having to provide the root password...  In that case,

do a reboot... If you have a gui that allows you to specify a reboot
optiuon then use that... Otherwise, if there is some magic spock-pinch
that can kick you into a dignostic monitor, then do that and initiate
either a ' a 'sync/, a 'panic' or a 'reboot'  (in decreasing order of
preference -- since the 'reboot' command usually presumes (incorrectly
in this case) that the OS is *NOT* running.+

If you can't get to the boot monitor, then you'll have to hit the 'reset'
ore (even worse yet) 'power' button.

Once you've (hopefully) synced the file systems, and gotten to a boot
prompt, then you should  be able to do something like

	boot -s
or
	boot single.


If this brings you to a root (#) prompt, then you can recover /etc/passwd
from your backup (make sure tht it is honestly trashed, first).

If this gives you a 'root password' prompt, then try the old root passwrd
(some systems will use the 'saved' paswd fills if the primary is obviously
trashed).


If you can't find an old boot disk, then find out from your distribbutor if
they/you have s 'rescue' disc... this should boot up and attempt to mount
the hard disksrepresenting the root filystem. If you manage that, then you
should be able to edit the /etc/passwd) system powerfully.

As  a final effort, install CDs often use a mini version of Unix.  Once you
are partway into the install process (but, obviously *before* you start
writing to disk), if you can get tthe install process to give you a shell
prompt, you can mount the root partition and recover the passwd file.


x31 wrote:
> Dear Experts,
> 
> We have the Oracle Database running on DG/UX Server.
> 
> Now while working, I have given the command to (tar) /etc/passwd to Digital
> Audio Tape --- but it has some hardware problem and the console got hanged.
> 
> Later after many Control-C, I could get (#) prompt.
> 
> At that # prompt I gave (exit), which took me to Console Login.
> 
> Now it is not allowing me to login by root or sys or by any other login. I
> believe the /etc/passwd file is corrupted.
> 
> Please help me to get the (#) prompt, because I have the copy of /etc/passwd
> in some other directory. I am also unable to login from remote terminal by
> TELNET or FTP.
> 
> UREGENT PLEASE HELP
> 
> Thanks in advance
> 
> -Tanveer



-- 
Stephen Samuel +1(604)876-0426                samuel@bcgreen.com
		   http://www.bcgreen.com/~samuel/
    Powerful committed communication. Transformation touching
      the jewel within each person and bringing it to light.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads