root locked out


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers root locked out
# 1  
Old 10-04-2001
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  
Old 10-04-2001
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
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
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
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
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  
Old 11-24-2003
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....
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

HP UX root password locked out

hi all This morning I've had a request from the SAP guys that the root password for an old B.11.23 U ia64 machine had been locked out. On top of that the server does not have a console to it, and there are not other users on this system save for root user with permissions to login with ssh. The... (3 Replies)
Discussion started by: hedkandi
3 Replies

2. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

3. UNIX for Advanced & Expert Users

Who locked my id?

I am running Solaris 10. Occasionally, my id gets loked. I want to know who/which rougue process locked it. How do I find out? Thanks, KNK (9 Replies)
Discussion started by: nkamatam
9 Replies

4. AIX

account is always locked out

we have a user name "Test1" that account is alwyas locked out. The user has been used to many servers to ftp a file from the main server. i already increase the MaxStartups to 99. And still after how many days account will locked. (3 Replies)
Discussion started by: invinzin21
3 Replies

5. HP-UX

locked out!

:confused: I have an K580 HP server. All I did was change the IP address on the NIC and now I can't telnet into it. I can ping, but no telnet. Also, it won't boot if the console monitor is plugged in. ANY IDEAS??? (1 Reply)
Discussion started by: ncmurf00
1 Replies

6. AIX

locked a password

good morning just a confirmation, to lock a password for a user, we must to write 0 for password min age and password max age option ? thank you (0 Replies)
Discussion started by: pascalbout
0 Replies

7. HP-UX

Re-enabling a locked root account on Trusted HP-UX

I knew I had had seen this somewhere:Q: How can I re-enable my root account when I typed in my password wrong 3 times and the account got disabled? A: When your HP-UX system is in the more secure "trusted system" mode, your account is automatically disabled after you have entered your password... (0 Replies)
Discussion started by: Perderabo
0 Replies

8. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies

9. AIX

root account has been locked

I'am set the root account locked ON, using smitty, so I can't login or su with root user in my AIX system, some one can help me to unlock root account login ???, sample : :~>su root's Password: 3004-301 Your account has been locked; please see the system administrator. 3004-501 Cannot su to... (1 Reply)
Discussion started by: Maker
1 Replies

10. UNIX for Dummies Questions & Answers

How to Enable locked root account

Hi Every one I disable the root account entering wrong password for many time How can I enable the root account I am using Tru64 Unix V4.0G Thank you (2 Replies)
Discussion started by: Syed_45
2 Replies
Login or Register to Ask a Question