The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 10:47 PM
root and all but 2 users locked out kymberm Linux 7 02-26-2005 06:52 PM
Run non-root script as root with non-root environment bubba112557 UNIX for Dummies Questions & Answers 2 12-03-2004 12:39 AM
root account has been locked Maker AIX 1 04-15-2004 09:25 AM
How to Enable locked root account Syed_45 UNIX for Dummies Questions & Answers 2 10-04-2002 10:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-04-2001
Moca4444 Moca4444 is offline
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.
  #2 (permalink)  
Old 10-04-2001
Optimus_P Optimus_P is offline Forum Advisor  
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 (permalink)  
Old 10-04-2001
Moca4444 Moca4444 is offline
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 (permalink)  
Old 11-21-2003
kymberm kymberm is offline
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 (permalink)  
Old 11-22-2003
girish_shukla girish_shukla is offline
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 (permalink)  
Old 11-24-2003
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
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...
  #7 (permalink)  
Old 11-24-2003
RTM's Avatar
RTM RTM is offline Forum Advisor  
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....
Closed Thread

Bookmarks

Tags
linux, solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0