problem moving a user's home directory to a new location -- more --

Aart Koelewijn aart at mtack.xs4all.nl
Mon Jun 23 12:49:36 UTC 2008


On Mon, 23 Jun 2008 07:09:57 -0500, Jay Ridgley wrote:

> I wrote:
> 
>>Message: 9
>>Date: Sun, 22 Jun 2008 16:47:22 -0500 From: Jay Ridgley
>><jridgley2 at austin.rr.com> Subject: re: problem moving a user's home
>>directory to a new location To: ubuntu-users at lists.ubuntu.com
>>Message-ID: <485EC86A.3080700 at austin.rr.com> Content-Type: text/plain;
>>charset="iso-8859-1"
>>
>>Folks,
> 
>>After doing the things Smoot(THANKS!) suggested, I have discovered that
>>it appears everything is fine EXCEPT the initial terminal window has
>>/home/user as part of the prompt. Where is that coming from? I have been
>>unable to find it... I can do a cd<enter> and that part of the prompt
>>disappears. and pwd shows /home2/user.
>>
>>If I pop up a new terminal (using the panel button) it points to the
>>proper place and does not have the  /home/user displayed.
>>
>>I apologize that I am unable to include the discussion thread but it was
>>
>>lost while I was in the process of switching things around.
>>
>>I am going to continue using /home2/user as the home directory, since
>>that is where I want it to be and everything appears to be working with
>>the exception of the item noted above... weird...
>>
>>I am not going to delete the old home directory until I know for sure
>>that things are fixed.
>>
>>Cheers,
>>Jay
>>
>>
>>
> I have been trying to figure out what is going on...
> 
> If I login from a tty terminal (using ctrl-alt-F1) every thing is fine,
> it appears that it is ONLY with the GUI interface (GNOME).
> 
> I did find a file named .gtkrc-1.2-gnome2 that contained the following:
> 
> # Autowritten by gnome-settings-daemon. Do not edit
> 
> include "/home/jay/.gtkrc.mine"
> <eof>
> 
> I moved it to old.gtkrc-1.2-gnome2 and tried once again to login --- NO
> CHANGE and the file was not rewritten... In addition the referenced file
> does not exist in either directory.
> 
> I can not find ANYWHERE that a pointer to /home/jay is set. However,
> when I boot the system and initially login or if I logout and log back
> in as user the initial terminal window that is launched is pointing to
> /home/jay for the pwd. Now the weird part if I enter the cd command it
> changes to /home2/jay. NOTE: I entered nothing other than the characters
> cd & pressed enter!
> I am including a copy of the screen:
> 
> jay at polar:/home/jay$ pwd
> /home/jay
> jay at polar:/home/jay$ cd
> jay at polar:~$ pwd
> /home2/jay
> 
> ALL subsequent terminal windows I launch point to /home2/jay. All of the
> data and other information is available from the directory /home2/jay
> without any problems.
> 
> ANY AND ALL SUGGESTIONS,  please...

If you do a "$ strace gnome-terminal" you can see which files are read 
when a gnome-terminal is opened. I suppose it should be something in one 
of those files.

Good luck figuring it out.

-- 
Aart





More information about the ubuntu-users mailing list