X-Spam-Check-By: sourceware.org Message-ID: <44F5D3A0.6080808@cygwin.com> Date: Wed, 30 Aug 2006 14:06:24 -0400 From: "Larry Hall (Cygwin)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060727 Fedora/1.5.0.5-1.fc4.remi Thunderbird/1.5.0.5 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin installing into wrong directory References: <035f01c6cb87$fdeb2f30$a501a8c0 AT CAM DOT ARTIMI DOT COM> <44F46D3B DOT 8050800 AT cygwin DOT com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/