LinuxQuestions.org
Visit Jeremy's Blog.
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 07-29-2003, 11:55 PM   #1
Fat_N_Furry
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
[RHL 9.0] - Deleted all users, now I can't log in - PLEASE HELP!


I deleted all my users, and now I can't log in. What do I do?


Thanks for your time!
Rick
 
Old 07-30-2003, 12:32 AM   #2
Fat_N_Furry
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Let me rephrase that question:

Can someone please tell me how to create a new Administrator (via my Red Hat boot disk, possibly?)
 
Old 08-01-2003, 03:17 PM   #3
galto
LQ Newbie
 
Registered: Aug 2003
Location: So. Cal.
Distribution: LFS
Posts: 1

Rep: Reputation: 0
reboot your system into single mode and add/remove users to your liking. You should not have to use the EBD. but you can.
With lilo-> Pass the parm: `linux single' when you boot up.
If you are using grub:
(This worked for me, but I don't have a standard config, LFS is great)
bootup-select the linux boot option but press 'e' NOT enter!
edit the kernel line then append single to the end of the line *not a new line*
when done press 'b' to boot the system.

Once you are in single mode, you may useradd root back in, edit your passwd file by hand 'root:x:0:0:root:/root:/bin/bash' is what you need, then change root's passwd by 'passwd root' follow the prompts and you should be OK.

Unless /etc/passwd is gone, or a null file then get one from a identical, or verry simmilar system and reset passwords.

if you can, read LAME
http://tldp.org/guides.html



Things not to do:
#rm -rf /
#rm /etc/passwd
don't root around!
Hope I helped.
 
Old 08-01-2003, 08:48 PM   #4
Fat_N_Furry
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, man. Worked like a charm.
 
  


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
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
Deleted /var/log/messages, how to create a new one? chingyenccy Linux - Security 2 02-27-2005 10:06 AM
Accidentally Deleted Everything In /var/log Joe Heng Slackware 3 12-23-2004 07:20 PM
I've deleted a log file to save space and... ganninu Linux - General 3 11-04-2003 12:03 PM
Log Files Have Been Deleted Crashed_Again Linux - Security 4 02-02-2003 12:37 PM

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

All times are GMT -5. The time now is 08:05 AM.

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