This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin installing into wrong directory


Larry Hall (Cygwin) wrote:
> Dave Korn wrote:
>> On 29 August 2006 16:09, Larry Hall (Cygwin) wrote:
>>
>>> Chuck wrote:
>>
>>>> [ ... ] Then I noticed that it created my user home directory in
>>>> "c:\documents and settings\userid". I wanted it in "c:\cygwin\home"
>>>> where it was before. What happened and how can I move it. I do NOT want
>>>> it cluttering up "documents and settings".
>>
>>>  [ ... ]    If you must, you can also set HOME in your
>>> Windows environment to the directory you want.  When Cygwin starts,
>>> it will use this value to override all others set.
>>
>>   Isn't the probably the underlying reason why the home dirs were
>> created in
>> documents and settings in the first place, i.e. does the machine
>> already have
>> HOME set in its environment variables?
> 
> 
> Not necessarily.  Windows typically sets HOMEDIRVE and HOMEPATH but not
> HOME.
> The doc-o-settings path is typically the same as these variables but can
> also come from the domain server. In environments with domains, the home
> directory is set by the domain and, I believe, the HOMEDRIVE and
> HOMEPATH get
> set to the domain's designation on login.
> 
> 

This is indeed a domain environment, and HOME is not set as a windows
environment variable. I'm still not certain why it set my home directory
to "c:/Documents and Settings/MyUserID/". Does it use HOMEPATH if HOME
is not set? This is what it's set to.

HOMEPATH=\Documents and Settings\CHamilto

In any case it was relatively easy to change by just editing the passwd
file with wordpad and saving it. All that got written to the wrong
directory was my bash_history file.


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]