The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Re-enabling a locked root account on Trusted HP-UX Perderabo HP-UX 0 02-17-2006 07:47 PM
root and all but 2 users locked out kymberm Linux 7 02-26-2005 03:52 PM
Run non-root script as root with non-root environment bubba112557 UNIX for Dummies Questions & Answers 2 12-02-2004 09:39 PM
root account has been locked Maker AIX 1 04-15-2004 06:25 AM
How to Enable locked root account Syed_45 UNIX for Dummies Questions & Answers 2 10-04-2002 07:10 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-04-2001
Registered User
 

Join Date: Sep 2001
Posts: 8
root locked out

Hello all. I think I have a big problem. the /etc/passwd file got overwritten and now I can't su as root when I telnet into this machine. I am running yp on a different machine and tried to push the passwd file out to all machines, but it didn't help. I noticed that there is a passwd file in /iap/ypmaster and one in /etc, these were always different and now they are the same. Ever since they became the same file, root can't login, but normal users can. What is opasswd? I noticed that this is the file I need in the /etc directory, but without root privledges, I can't do anything. Does anyone have any ideas? Thanks.
Forum Sponsor
  #2  
Old 10-04-2001
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
as far as i know i always throught root was never passed when doing NIS or NIS+

You could always take the nis client machine down and boot it up into single usermode then mount the root partition and edit the shadow or password file as needed. adn also disable the nis daeamon from starting. then start over adding it back to the cluster.
  #3  
Old 10-04-2001
Registered User
 

Join Date: Sep 2001
Posts: 8
root locked out

Thanks for the tip. I was trying to figure out a way besides doing that only because the machine is in a different location than I am. But looks like I will be taking a trip after all. Thanks again.
  #4  
Old 11-21-2003
Registered User
 

Join Date: Mar 2002
Location: Texas
Posts: 120
kind of same problem LOCKED OUT OF CONSOLE

I've got the same problem, but ALL users are locked out, including root. I've tried copying the shadow, passwd, and group files from the original solaris disk, with my others backed up, BUT still no go, nothing can log in, I can't even log in at single user mode. Is there another file that could be affecting the login? the permissions on logdevperm, passwd, group, login, are set to 644, shadow is r only for root.
  #5  
Old 11-22-2003
Registered User
 

Join Date: Sep 2003
Location: mumbai
Posts: 20
try this out:


put CD 1 of 2 of solaris in cd drive
at ok prompt give boot cdrom -s
#TERM=sun
#export TERM
edit the /etc/shadow file and make the password field blank
  #6  
Old 11-24-2003
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Re: kind of same problem LOCKED OUT OF CONSOLE

Quote:
Originally posted by kymberm
I've got the same problem, but ALL users are locked out, including root. I've tried copying the shadow, passwd, and group files from the original solaris disk, with my others backed up, BUT still no go, nothing can log in, I can't even log in at single user mode. Is there another file that could be affecting the login? the permissions on logdevperm, passwd, group, login, are set to 644, shadow is r only for root.
Why cant you get in with single? There shouldnt be a login at single, it should just allow you to have a prompt.

If not, upon a reboot, you can interrupt at a certain point and then boot to a CD and replace the /etc/passwd file.

ALSO, there should be a passwd file in a /etc/skel directory i think or somewhere close to that path.


One more thing, IF you have .rhosts equivalency or /etc/hosts.equiv... you should be able to rlogin from another host as root over to this box... or rcp over the passwd file from another hope...
__________________
My brain is your brain
  #7  
Old 11-24-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Kelam,
Solaris still checks the root password when booting into single user - the only way around it is to boot single user from the cdrom.

girish_shukla,
You forgot to mention to mount the disk - /etc is on the cdrom, not the disk. Mount your disk root partition to /mnt, cd to /mnt/etc, set your TERM, vi shadow....
Google The UNIX and Linux Forums
Closed Thread

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:13 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