X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.3 required=5.0 tests=AWL,BAYES_00,DATE_IN_FUTURE_03_06,TW_MK X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4C59C648.8050404@cygwin.com> Date: Wed, 04 Aug 2010 15:58:00 -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.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Where's my home? (lost in my domain) References: <4C59234F DOT 8060408 AT tlinx DOT org> In-Reply-To: <4C59234F.8060408@tlinx.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 On 8/4/2010 4:22 AM, Linda Walsh wrote: > When I log in, I seem to be placed in > > /Users/law.Bliss> > > IF I type "cd" and hit return, then I'm in > > //Bliss/law > > My home vars: > > //Bliss/law> printenv|grep HOME > HOMEPATH=\ > HOME=//Bliss/law > HOMEDRIVE=i: > HOMESHARE=\\BLISS\law > > My /etc/password, for user "Bliss\law" (why "\" and not "/"?) Ask Microsoft. It's their convention. > has //Bliss/law as a home dir as setup sometime in the past > when mkpasswd was working (ahh...those were the days... :-))... 'mkpasswd' works. If you have an issue that you believe isn't just local to your machine/environment/setup, please report it. > I'm not sure why it wouldn't have specified my HOME as i:/ . (?) First, Cygwin doesn't use drive syntax. Second, the order of preference for setting the home directory in Cygwin is, as spelled out in /etc/profile: # Here is how HOME is set, in order of priority, when starting from Windows # 1) From existing HOME in the Windows environment, translated to a Posix path # 2) from /etc/passwd, if there is an entry with a non empty directory field # 3) from HOMEDRIVE/HOMEPATH # 4) / (root) > But I don't see where it got /users/law.Bliss -- though it is > the temporary cache. If windows/the login process was smart, then > I could see /users/law.Bliss being my HOME if the network server > wasn't available. But it is, and I don't think windows is that > dynamic. > > So how does what decide if my HOME gets set to //bliss/law, i:/ > or [C:]/Users I'd recommend getting a good feel for what Windows is setting your home directory to and, given the above information (and mining other tidbits from the email archives as required), use all of this to figure out why you're not seeing what you want to see and how you should change things to reach your goal. Assuming Windows isn't tripping you up somehow, the procedure I quoted above that Cygwin uses to determine what it will use as your home directory is very straight-forward. -- 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? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple