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.
hi, I'm a fedora 8 user. i changed the name of its root's home to a new name 'HOME' from desktop. Now, i'm unable to login.when i write root in username giving password , it is showing error.
how to go inside??? what to do??
Try logging in as a normal user (you did create a normal user account when you installed linux, didn't you?) and open a command line. Type:
Quote:
su
your root password
mv /HOME /root
That is only if you had changed /root to /HOME in the first place.
Then you should be able to log in.
You shouldn't really change the names of any system folders or anything connected with root. Always log in as a normal user, and use the commands 'su' or 'sudo' to perform necessary system tasks. This will save you A LOT OF problems.
edit: you can also use an installation disk (go into rescue mode) or a live cd to change the name back to /root
sycamorex, you are missing part of the picture, I have just read another post by the OP who states that he has overwritten /etc with the information from a previous installation, as such he is probably using the wrong password for root (amongst other things).
Last edited by Disillusionist; 12-13-2008 at 06:24 AM.
A file that specifies each user's home directory is /etc/passwd
That's my entry for root's account:
Quote:
root:x:0:0:root:/root:/bin/bash
Using the above methods to get to the system you can edit this file.
ok, yeah now I read the other post as well. I don't think coping /etc directory of one system using it for a different system is a good idea. It can be a great number of problems with it.
But assuming the passwords are the same, it should work, shouldn't it?
Well, assuming the file permissions for files in /etc are set correctly, and that the root password is known for the old image, then yes I suppose it should work.
However, there are a lot of unknowns, do the non-root users exist with the same user ids and group ids? Are the same applications installed? etc, etc (pardon the pun).
I assume that the OP has just installed the new system and then overwrote the /etc directory. This means that the easiest and probably best solution would be to reinstall
the whole system again and then examine the differences between the old and new /etc configuration files individually and if necessary implement modifications one step at a time.
Even if changing /etc/passwd succeeds, as Disillusionist said, there are too many unknowns.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.