X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,TW_MK X-Spam-Check-By: sourceware.org Message-ID: <4BB343D8.4090107@bopp.net> Date: Wed, 31 Mar 2010 07:45:12 -0500 From: Jeremy Bopp User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Changing the home directory ($HOME) References: <20100331133700 DOT 260816ngtqed0s80 AT webmail DOT df DOT eu> In-Reply-To: <20100331133700.260816ngtqed0s80@webmail.df.eu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Markus Hoenicka wrote: > Phil Couling was heard to say: > >> I have cygwin pre installed on a pc I'm using. I'd like to change the >> home directory ($HOME) but I'm having some trouble finding where it's >> been set. Currently it points to a drive letter q: . I'd much prefer >> to point it at /home/username. > > /etc/profile says: > > # 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) > > I've used #1. You should also investigate the mkpasswd and mkgroup commands. Those can be used to populate your /etc/passwd and /etc/group files. -Jeremy -- 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