Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I deleted the root line in passwd and shadow and then tried to copy the backup and was able to put it all back to normal from rescue mode. However when i get to my login screen i can not login as root anymore or even after logged in as another user i can not su - or su root, it tells me that root user does not exist...... I am at a loss.... thanks
Click here to see the post LQ members have rated as the most helpful post in this thread.
Your thread title, "Need super duper help", is not very informative and will cut down the number of answers you receive. I suggest you read the sticky and the beginning of this forum and this article.
jdk
Ok is there a way to boot from a rescue disk and mount the drive and force a new root? I edited the passwd and shadow file and I am still receiving root user does not exist. I can recover all other accounts no problem I really need root.
of course its possible what os is it ubuntu because all you ahve to do is mount your drives and i would think copy it over but course that in theory i have never tryed it
well then you probability could still boot into a live cd of it and copy the root over though if i'm not mistaken redhat costs money and they have a support team that should be able to help ya =]
Bad advice. First, the OP said it was RHEL4, not RHEL5. Second, how exactly do you expect to be able to install a package, when the OP said they couldn't log in as root???.
Please read the whole question and details, and post advice that can be helpful. This would only cause the OP to have MORE problems, even if it did work to start with.
if you find the install disk you used to install onto that computer, there should be an option such as 'start a rescue shell' which boots into sh with automatic root priveleges, at which point you can say passwd which will change the root password or edit the passwd and shadow files as you please or perhaps use adduser. Whichever option you choose, you will have root priveleges.
ok fixed the root problem..... KIND OF.... I used a CD to get root to make changes to the /etc/passwd and /etc/shadow. I remove the CD and boot up normal and able to login as root and everything is fine but, if I restart the server again everything breaks again. So I made a fix that I don't want to keep in place. I fixed it by chmod 666 passwd and shadow and I can reboot all day long and everything works but for obvious reason I don't want the mod to stay 666 but I really don't know what is making the change?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.