The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
/etc/shadow file.... avcert1998 UNIX for Advanced & Expert Users 6 01-18-2008 12:40 PM
*LK* in /etc/shadow file vikashtulsiyan SUN Solaris 5 12-23-2007 08:50 PM
shadow file jbashir UNIX for Advanced & Expert Users 3 03-14-2006 12:22 AM
Doubt on shadow file Sabari Nath S High Level Programming 4 08-25-2005 05:29 AM
shadow file arunkumar_mca UNIX for Dummies Questions & Answers 3 12-31-2004 08:55 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-08-2002
Registered User
 

Join Date: Nov 2001
Location: Terrell Tx
Posts: 6
How do I restore the etc/shadow file

removed this from a friends solaris box via telnet.

root can not login at this point is there anyway to fix this via telnet.

I have one session open that is not root
Forum Sponsor
  #2  
Old 01-08-2002
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
I'm wondering... is he still your friend?

Anyway, even if you do have a telnet session open,
if you are not root, you will not be able to "su" to root
anymore. There have been several postings on this forum
about "lost root password" and such things. You may want to
do a search on that to see what has been discussed but
at the very least, I think you're going to have to get to the
console and boot the machine up in maintenence (single user)
mode at the very least then you can create a shadow file
from the password file (no passwords initially) using
pwconv(8)...
http://nodevice.com/sections/ManIndex/man1255.html

Best of luck.
  #3  
Old 01-08-2002
Registered User
 

Join Date: Nov 2001
Location: Terrell Tx
Posts: 6
Yea we are both studying for the solaris cert and I got a little crazy while listing files.

Thanks

Bobby
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0