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 To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Eric Hanchrow Subject: Re: HOME set to / [Was: cygwin-1.3.16-1] Date: 03 Dec 2002 07:06:47 -0800 Lines: 44 Message-ID: <87el8z9m60.fsf@blarg.net> References: <1038869136 DOT 5722 DOT ezmlm AT cygwin DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20021203083224 DOT 02308bc0 AT dogwood DOT cisco DOT com> NNTP-Posting-Host: offby1.atm01.sea.blarg.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1038927867 2353 206.124.138.125 (3 Dec 2002 15:04:27 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Tue, 3 Dec 2002 15:04:27 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 >>>>> "Joseph" == Joseph Marcel writes: Joseph> So, potentially two issues: 1) HOME is set to /; 2) Id is Joseph> now that of my domain (jmarcel:unknown), and I think it Joseph> was Administrator:none (which I'm less concerned with, as Joseph> our machines are single user laptops/clients); The following genuine fix worked for me: From: "Pierre A. Humblet" Subject: Re: HOME set to / [Was: cygwin-1.3.16-1] To: Eric Hanchrow Date: Wed, 27 Nov 2002 09:57:22 -0500 When Cygwin regenerates the passwd file automatically it does not take domain users into account. You have to complete it manually as follows. First verify that mkpasswd works correctly in your domain by typing `mkpasswd -d'. You should see your name appear in the list. If you work in a large institution you can limit the size of the output by typing `mkpasswd -d -u erich'. Assuming that goes well, complete the passwd file by mkpasswd -d >> /etc/passwd Note the double >> . You can add `-u erich' if warranted. If the home directory in your entry of the passwd file isn't the one you want, edit the file and change that field. Currently when your name is not in the passwd file, Cygwin generates an internal entry with your username, a uid of 400 and a home directory set to HOME (if it exists) or / . Earlier versions were defaulting to the entry with uid 500, usually Administrator. However that can lead to strange behaviors because internally to Cygwin your name was still erich (even if "id" was showing Administrator) and your sid (a very important Windows identifier) was not matching the one in the passwd entry. -- PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5 C8BD 6337 0041 C01C 5276 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/