X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org X-IronPort-AV: E=Sophos;i="4.32,295,1217829600"; d="scan'208";a="10868693" Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: 1.5.25: Can't Change User's Home Dir [SOLVED] Date: Fri, 29 Aug 2008 16:45:37 -0600 Message-ID: In-Reply-To: <48B877B5.6040400@cygwin.com> References: <48B86439 DOT 4080606 AT cygwin DOT com> <48B877B5 DOT 6040400 AT cygwin DOT com> From: "Richard Plana" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m7TMkROu012532 > > That's exactly what I read in the FAQ, but my system doesn't seem to be > > following that behavior. > > > > 1) Running "set HOME" in CMD.EXE gives the ff.: > > > > HOMEDRIVE=H: > > HOMEPATH=\ > > HOMESHARE=\\essrv07\rplana$ > > > > 2) /etc/passwd contains a Home entry that's prefixed with > > "/cygdrive/c/Documents and Settings/" > > > > Neither seem to be the behavior that I'm getting. Everytime I log on, I > > end up with a home dir of "/home/$LOGNAME" and I don't know anymore > > where that is coming from nor how to change it. > > > > Ah, your home is a network drive. You're not accessing it with 'ssh' > are you? You might want to check the permissions this directory has > (getfacl) and whether you can access the directory from the shell you've > opened. > > You may not want to use a remote home directory anyway. It's going to be > slower. Well, I actually want to use a local partition for my home drive, but instead of /home/, I want to use /cygdrive/c/Documents\ and\ Settings/. The network "home" drive is something that Windows sets but I'm totally ignoring. I'm only including that as the FAQ discusses it. So in summary, 1) I want my user's home dir to be /cygdrive/c/Documents\ and\ Settings/. 2) /etc/passwd has the correct entry for it. 3) I can "cd" into that directory 4) I am using ... My spologies. I was going to write that I use cygwin's terminal emulator to start the shell, but that wasn't exactly right (as opposed to SSH'ing to it). In actuality, I was using Poderosa to start my cygwin session and apparently you can overwrite the choice of home directory when connecting to a cygwin session. In Poderosa, it was configured to connect to "/home/myuser". I changed that config to "/cygdrive/c/Documents and Settings/myuser" and now I'm happily logged in properly. Thanks for the help! -- Richi Plana -- 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/