Change the Home Folder Location !!!!

Asked by dr_hamza

Hi

I Changed My Home Folder Location to Another location then i logged out without changing the permission of the new folder , after i tried to log in , i can not .

The Error Message :
"User’s $HOME/.dmrc” file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permission. User $HOME directory must be owned by user and not writable by other users "
<More Informations>

1- The New Location is a Mounted Partition .

2-The ./dmrc not existed in that new location ..

3-The Failsafe Terminal session is working .

is there is another way to :

1- Change the Permission of the new folder from another user ?!

    or

2-Restore the default home folder location

and Where i can restore the New Default Location to the old Home directory location , which file ?

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
dr_hamza
Solved:
Last query:
Last reply:
Revision history for this message
dr_hamza (dr-hamzamusa) said :
#1

P.s The New Location is a New HDD ( A Mounted Partition )

Revision history for this message
dr_hamza (dr-hamzamusa) said :
#2

Help By dabang , at UbuntuForums http://ubuntuforums.org/showthread.php?t=659785

----------------

 3-The Failsafe Terminal session is working .
This means, you can login at all? If so, login and at the command prompt type:
Code:

sudo chown -R <your-user>:<your-group> /path/to/home-dir

This should make <your-user> owner of all files within your home directory. If you like to change the location again, you could do a "usermod":
Code:

sudo usermod -d /path/to/home-dir <your-user>

or edit /etc/passwd directly... (not recomended...)
------------------------