-   Linux - General (
-   -   [RHL 9.0] - Deleted all users, now I can't log in - PLEASE HELP! (

Fat_N_Furry 07-29-2003 11:55 PM

[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!

Fat_N_Furry 07-30-2003 12:32 AM

Let me rephrase that question:

Can someone please tell me how to create a new Administrator (via my Red Hat boot disk, possibly?)

galto 08-01-2003 03:17 PM

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


Things not to do:
#rm -rf /
#rm /etc/passwd
:tisk: don't root around!
Hope I helped.

Fat_N_Furry 08-01-2003 08:48 PM

Thanks, man. Worked like a charm. :D

All times are GMT -5. The time now is 12:21 AM.