reseting HOME directory

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Tue Oct 28 22:32:00 GMT 2008


mcbenus wrote:
> Hi,
> 
> I found similar past posts here, but could not totally understand the
> answers.  For some reason, my HOME directory has changed one day from
> /home/USER to /cygdrive/c/Documents and Settings/USER (I guess imported from
> the windows settings).  At the same time a program I am running using cygwin
> started to much slower than before.  I don't know if the two problems are
> related, but first I would like to set my HOME directory back to /Home/USER.  
> 
> I saw people referring to /etc/profile file, or the BASH_PROFILE file in my
> (original) home directory, but I could not understand what exactly I should
> write in them.  I would greatly appreciate your advices.  I do not master
> linux/cygwin, so if you try to answer, please consider that :)

Check to see if HOME is set as an environment variable in Windows.  Sounds
to me like the change happened outside of Cygwin.  Something setting this
outside Cygwin is what I suspect.  If you find it set there, just get rid
of it.  If that doesn't work or you're forced to make the change on the
Cygwin side, just edit the '/etc/passwd' file to have the proper path
for USER.  It should be easy for you to find the right spot in
'/etc/passwd' to make this change, given that you know the path you
don't want. ;-)

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list