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


Chuck wrote:
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


See '/etc/profile' for a description of how Cygwin sets HOME.  But I expect
if you check the domain settings for your user, you will see this path is
set as your home directory.


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.


Be careful that wordpad didn't add CRLF to the end of the lines though.


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

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