LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-13-2008, 07:02 AM   #1
deepti aggarwal
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
Unhappy effect of changing name of root home


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??
 
Old 12-13-2008, 07:12 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
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

Last edited by sycamorex; 12-13-2008 at 07:16 AM.
 
Old 12-13-2008, 07:23 AM   #3
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,036

Rep: Reputation: 96
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 07:24 AM.
 
Old 12-13-2008, 07:26 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
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?

Last edited by sycamorex; 12-13-2008 at 07:30 AM.
 
Old 12-13-2008, 08:37 AM   #5
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,036

Rep: Reputation: 96
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).

Generally I would just advise against it.
 
Old 12-13-2008, 08:45 AM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
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.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
Voodoo3 stuck in 640x480 and changing xorg.conf has no effect Zeppelin_ii Linux - Software 4 03-27-2006 07:55 PM
VFS: unable to mount root on ... or wrds to that effect purplemooseman Slackware 7 08-15-2004 07:54 AM
Why does changing .conf files have no effect with SuSE 9.1? odi Linux - Newbie 1 07-13-2004 12:47 PM
Changing root@localhost to root@domain.com Stingreen Linux - General 14 12-17-2002 07:21 PM


All times are GMT -5. The time now is 02:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration