delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/22/11:03:50

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_MK,TW_YG
X-Spam-Check-By: sourceware.org
X-Received: by 10.224.17.198 with SMTP id t6mr24205711qaa.84.1358870600323; Tue, 22 Jan 2013 08:03:20 -0800 (PST)
Message-ID: <50FEB840.4050607@gmail.com>
Date: Tue, 22 Jan 2013 17:03:12 +0100
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How do I change the default home directory after I fire up cygwin?
References: <1358869942988-95558 DOT post AT n5 DOT nabble DOT com>
In-Reply-To: <1358869942988-95558.post@n5.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 1/22/2013 4:52 PM, Yves wrote:
> Hi, this is my issue:
>
> I start up cygwin and do pwd, and this is my home directory.
> $ pwd
> /cygdrive/h
>
> But, I don't want it to be in /cygdrive/h.  So, what gives?  I've run the
> mkpasswd command like so (while in my /home/<my name> directory):
> mkpasswd -l -p "$(cygpath -H)" > /etc/passwd
>
> At that point, I close my cygwin window and open it again... and same thing
> when I run pwd.  How do I make cygwin think and start in /home/<my name>?
> I've even mucked with the /etc/passwd for my user account and STILL no
> result.
> Very confused...

Dear Yves
what is the output of
$ grep <your name> /etc/passwd

on my case, as example:

$ grep  marco /etc/passwd
marco:unused:1008:544:Marco Atzeri,  [cut]  :/home/marco:/bin/bash

so /home/marco is my home directory

please note that cygpath -H is not the same
$ cygpath -H
/cygdrive/c/Users

Regards
Marco




Regards
Marco

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019