LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2005, 01:38 PM   #1
Schlzm
LQ Newbie
 
Registered: Dec 2005
Posts: 12

Rep: Reputation: 0
Newusers command problem.


I was adding a new user to my RedHat 9 box for a specialsed company program and ran the Newusers command against the passwd on accident and cannot login at all, anywhere as anyone. This is a critical system that is denying all login requests now and I need to get it back up and running ASAP. If anyone has seen this type of behaviour before and knows how to fic it please let me know what I need to do. I am not exactly a total newbie when it comes to using *nix, but I am still learning a lot as well. Any help will be greatly appreciated.


Schlzm
 
Old 12-05-2005, 02:02 PM   #2
Schlzm
LQ Newbie
 
Registered: Dec 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Schlzm
I was adding a new user to my RedHat 9 box for a specialsed company program and ran the Newusers command against the passwd on accident and cannot login at all, anywhere as anyone. This is a critical system that is denying all login requests now and I need to get it back up and running ASAP. If anyone has seen this type of behaviour before and knows how to fic it please let me know what I need to do. I am not exactly a total newbie when it comes to using *nix, but I am still learning a lot as well. Any help will be greatly appreciated.


Schlzm
I have attempted using several possible different passwords for root that may have been used reviously with no luck. I don't want to reboot the server for fear of permenantly enforcing what changed in the system. I really need to know if I can at least get a login to perform a restore of the system if possible, perhaps a recovery console or restore mode at a shell? If anyone has anything at all throw it out here I am grasping at straws at this point.


Schlzm
 
Old 12-05-2005, 04:40 PM   #3
Schlzm
LQ Newbie
 
Registered: Dec 2005
Posts: 12

Original Poster
Rep: Reputation: 0
I am trying to mount the system drive using a livecd version of slackware, slax 5.06, and am running into problems. It seems that slax doesn't want to recognize the harddrive, an dI know that if I could get into the drive I could reset the password for root and get back into the system. Anyone have any ideas on this? Or am I just wasting my time here?


Schlzm
 
Old 12-05-2005, 04:52 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
Problems like this usually require booting up in single user mode. Last time I used RH (long time ago) it was as simple as typing Linux single from Lilo boot prompt.
 
Old 12-05-2005, 05:52 PM   #5
Schlzm
LQ Newbie
 
Registered: Dec 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Emerson
Problems like this usually require booting up in single user mode. Last time I used RH (long time ago) it was as simple as typing Linux single from Lilo boot prompt.
That was a no go, looks like I am going to have to perform an install over the top. Is this possible in Linux without losing data? All I really need to do is reset the Root PW.


Schlzm
 
Old 12-05-2005, 06:19 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
I actually never said it will work the same. Now you know you have to boot in single user mode, look it up in your RH documentation, search Google and LQ, find the correct procedure for your box. I can do it for you, but hey - it is your box.
 
Old 12-06-2005, 09:28 AM   #7
Schlzm
LQ Newbie
 
Registered: Dec 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Issue resolved. I was able to boot into rescue mode from installation disk 1 and chroot the original file system. After that resetting the passwords and restoring a good group of file from backup took care of the problem. Thanks for the suggestions Emerson, they got me moving in the right direction.


Schlzm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with rpm command saipraveen Linux - Newbie 3 08-22-2005 03:51 PM
newusers command from a file scoobydude Linux - General 2 05-30-2005 07:44 PM
newusers input file format? Pizentios Linux - General 2 04-13-2005 02:27 PM
command problem vickr1z Linux - Newbie 3 09-06-2004 12:43 PM
Problem after 'startx' command James McDowall Linux - Newbie 2 06-18-2004 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration