Passwd,shadow files deleted and abort sequence disabled


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Solaris Passwd,shadow files deleted and abort sequence disabled
# 1  
Passwd,shadow files deleted and abort sequence disabled

Hi all..

I moved the /etc/shadow and /etc/shadow files to /tmp and then rebooted my PARC machine running 5.10. I did it to see if I could recover from single user mode.
But, I forgot to enable the abort key-sequence which I earlier disabled.
Stuck!
One of my gurus told I had to 'power-recycle'.. I could not understand.Smilie


The only idea I have is to 'Stop+d' after physically shutting down and then switching-on the machine. But, I don't know its consequences.
Any help here?
# 2  
I don't know SunOS all too well, but you could always put another disk in (if CD-ROM boot or network PXE boot is disabled), boot from there (OS has to be installed properly) and then mount your disk and move the files back.

We have even a FAQ dealing with exactly this proposition. It is good style to first search other threads here, especially the FAQs, before opening a thread of your own.

I hope this helps.

bakunin
# 3  
I went through all of the FAQs.. but found no solution to my problem
The main point here is I left 'abort-sequence' disabled. I cannot boot from CD/net.
FYI.. it doesn't have a system console.

Last edited by satish51392111; 05-21-2012 at 12:54 PM..
# 4  
A powercycle will not fix your problem. You need to boot in rescue mode and mv /etc/password and /etc/shadow back where they belong.

Have you got a Solaris 10 installation CDROM or DVD?

Can you get to the OpenBoot PROM (OBP)?
# 5  
But all that needs a stop-a sequence from the SUN keyboard. I forgot to enable the sequence before moving the files.
# 6  
What machine is it? Maybe you will be lucky enough to have ALOM or ILOM configured... You can also connect to serial console and send break from there.
# 7  
The following should work wether the break-sequence is disabled or not:
  • Take an identical system. Make sure you can boot/install it and install the OS to a new disk.
  • Take out this disk and connect it to the system you want to revive as the first harddisk. You may have to disconnect your faulty disk and attach it differently to prevent the system to attempt booting from there. Boot the normally from this disk.
  • Attach the original disk to the system, mount its file systems and make the necessary changes to make it bootable again.
  • Shut down, remove the new disk and put the revived disk into its place again.

This generic approach works on virtually every OS i have encountered so far. If this doesn't work then please tell us why and what exact problem you encountered.

I hope this helps.

bakunin
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #916
Difficulty: Easy
In Javascript, the console is an object which provides access to the browser debugging console.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

Passwd -l or -u modifies lastchg field in /etc/shadow file

Hi, I have a Solaris 10 box where password aging is not functioning properly. Using the passwd command with the -l or -u options causes the lastchg field in the /etc/shadow file to be modified. Therefore, if a user's password is set to expire in 90 days and they are 1 day away, all they have... (4 Replies)
Discussion started by: cschar
4 Replies

2. UNIX for Dummies Questions & Answers

Deleted /etc/passwd file while accessing to our test server via putty

Hi I was accessing our linux test server via putty and By mistake i deleted /etc/passwd file..... It is allowing me to login..... So could anyone please help me out in this issue.... Please, it is urgent (6 Replies)
Discussion started by: rahul547
6 Replies

3. UNIX for Advanced & Expert Users

psswd&shadow 2 passwd together?!!

hi, all I just started on new box where I have to diff passwd working perfectly on the very same account/user. I see that shadow was added recently (I'm not a root in there), I see 'x' in passwd. Not sure how it should work, should I change old passwd for one defined in shadow? Or it's fine to... (20 Replies)
Discussion started by: trento17
20 Replies

4. Solaris

difference between /etc/shadow and /etc/default/passwd

Hi , can anyone explain me the difference between /etc/shadow and /etc/default/passwd . As per my knowledge both the files are used for password aging and control parameters. (2 Replies)
Discussion started by: rogerben
2 Replies

5. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

6. UNIX for Advanced & Expert Users

Converting freebsd (5.2.1) master.passwd to Debian shadow

I'm trying to make this work, and it half works. Accounts with password hashes matching the old crypt(3) algorithm work just fine: JUpfW/w6jo6aw But accounts with longer password hashes preceded by $1$, such as the following, do not work: $1$iIcbppdP$HDyjJeVMGgJ.ovLsnjtTR.... (0 Replies)
Discussion started by: davidstvz
0 Replies

7. Solaris

tool to convert /etc/passwd and etc/shadow

i wonder if there is a tool to read the /etc/passwd or /etc/shadow files in order to reset user accounts to the same one. By moving (restore) all filessytem and data to another same Sun box, none of the users are able to logon to the new box which i didn't change nothing. But if i reset the user... (1 Reply)
Discussion started by: lamoul
1 Replies

8. UNIX for Dummies Questions & Answers

How to : Identify the the password is encrypted or not in /etc/shadow or /etc/passwd?

Thanks AVKlinux (11 Replies)
Discussion started by: avklinux
11 Replies

9. Solaris

/etc/passwd file been deleted

Hi Folks , Would be grateful if someone could help me out in one of the question that came to my mind . If the /etc/passwd file has been deleted and the system has been rebooted . Then i dont think that any user would be able to login and the system will be useless . Whats the best solution for... (5 Replies)
Discussion started by: gera_sachin125
5 Replies

10. UNIX for Dummies Questions & Answers

Deleted /etc/passwd

Hi all, While playing with my LINUX machine i accidently deleted a file name called /etc/passwd . Even though the system is booted am unable to get the login prompt. Is there any remedy for this problem.:( (5 Replies)
Discussion started by: cyno
5 Replies

Featured Tech Videos