Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
dudes i did a stupid thing somehow i have been locked out of my redhat box..i was mucking with the password files etc, long story, anyhow any one know how i may be able to get into it with out a full os reload.????
if u had LILO as u'r bootloader press ctrlX when u'r asked to select the OS .Then type linux single at u'r boot: prompt.
I'll then enter into a command mode which as super user permission.There u can create user ya type the followin
echo "root:x:0:0::/root:/bin/bash" >>/etc/passwd
then reboot and login as root of no password after that u can change password
Put in your RH cds and figure out how to get into rescue mode. Follow the instructions and mount the partitions. open Emacs (or Vi) and open file /sys/image/etc/shadow.
On the first line should be root and should look like:
just figured I'd mention tomsrtbt if you don't have your install cds (I always install over the network so I've never had cds). You can find the software at toms.net
Once you create the bootable floppy, make sure that your bios is set to boot off of the floppy drive. I can't remember the default login for tomsrtbt but the info can be found in the documentation. Once you're at a shell as root, you'll just want to mount your root partition, and either edit /etc/passwd (as mentioned above) or just run passwd yourself.
For those of us who are new to linux it is not that easy, here i sit with a new LCD monitor that is out of range and i cant get to the video card setting to fix it easily and i dont have my user name or password so am understanding why windows users find linux so difficult, nothing is easy.... bummer i have been trying for hours. help
Actually, it is Let's take windowsrefund's example:
Go to toms.net and grab tomsrtb, follow the instructions on that site to create a bootable floppy from the image you get. Then, boot with that floppy. It will start a linux distro running from that floppy (amazing) and at that point you will need to mount up your root partition:
mount -t ext3 /dev/hdx /mnt/root
Where /dev/hdx is the device that your root partition is installed to. If you don't know what device that is, then, as root type:
/sbin/fdisk -l
And it will print out the info of your disk geometries. You can either try each device labled as "linux" type, or if you recognize it at this point, then mount up the correct disk, and follow one of the above instructions, OR, as windowsrefund said:
chroot /mnt/root
passwd
Enter the new password, exit, exit, reboot, and eject the floppy. You should now be able to login as root with that new password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.