delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/09/09/03:53:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=G7Ol02HYyoM8nyJ0
FsQoOhJ3UaV+aAd9zVQgPBgPBilln4C/T86R0fbPynv0xZAeMyvBpv5gER9r1HI3
WO0i7bSdBrxcx8ZyRrVsax2S7O1ePkWfZboO+2owbpH4MLAzKvTapviTZ2VKF/uO
aJyJTbx8ugohrgKTfwj9yRMfhiI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=hP8OLwMu/rBS8HKyywe3Xq
JElkI=; b=Iiqxv1nQy7V7/4ryYpGiU4kePrfNADCXZkVvrLlEMm8dnySPapU10E
w3bi2vICsVdx1Az39+fSFgxz9hBmZJBzuqOBG1aw5IQ0PipvhwlgyB1Ij3c4B1yM
Ep/JIsNvdKBaGWkSatOsX/D+wtgK9Nb11YHoP0zbZ5rqarWPSkm+g=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:192.168.2, Hx-languages-length:961, HX-Received:Sat, Mind
X-HELO: mail-wm0-f41.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=mLuvMGIZUgy4afhbPBuBwu1SLgJwRCvqx3tx0yjiVk8=; b=MKyeHHoTf88uzTrWsoJOSzfCbMlZFRBtvKTuat3Xhtdyl0Uyv89qQvOvQNdh1LXKK2 pUx5MMzKdHJuQ8C4kZ4LsZR1EnRjJCTCZysroBglGmaQ/cEdW9BGWb77aLgkMU7lTpnH CnAa8KZorzWZGJNJqPdgOUZPUqYgL7NxBWg2opQv8hITRK2FSHtrrtgAshgZK7pygsP/ wX1nrmXY2SDInQGaq37bFF21eKEz6aITrbHJuyN/ePBSHy1vKUrPfwns3469DEUAZXw1 dDCwcjhYPMThuDrUTNijKzOx8wNcAXasMlAlR1EJQvnj/PvDRFrBT4hGfx7xv2XejCaQ kkyA==
X-Gm-Message-State: AHPjjUj+uOESB9+TLHnTgu7Xsp1E3JaPPT0FhiTZDLJ811gq7XCEcYXg 77EXj6CIYHRGRcvwd1yOORAphg==
X-Google-Smtp-Source: AOwi7QDrIqomDL4ygxt1JOpEBmjqjkNWjg1QyRfzllajxTjTqo5GpW0Ngs+rC7MFz7DNdGOl5vVE0g==
X-Received: by 10.28.168.69 with SMTP id r66mr2665316wme.2.1504943612174; Sat, 09 Sep 2017 00:53:32 -0700 (PDT)
Subject: Re: How to specify the user directory OUTSIDE of Cygwin (installation folder)?
To: cygwin AT cygwin DOT com
References: <190592 DOT 83283 DOT bm AT smtp101 DOT mail DOT ir2 DOT yahoo DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <95cc51c1-8254-31b7-6a55-01810587ebdc@gmail.com>
Date: Sat, 9 Sep 2017 09:53:23 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <190592.83283.bm@smtp101.mail.ir2.yahoo.com>
X-IsSubscribed: yes

On 09/09/2017 07:06, Ben Stover via cygwin wrote:
> By default the user folder of Cygwin (under Win7) is in a subdirectory
> 
> <installation folder>\home\<username>

from cygwin point of view "/home/<username>"

> How can I put it into a separate directory OUTSIDE of Cygwin?
> 
> Example:
> 
> I installed Cygwin in
> 
> D:\tools\cygwin\v2\
> 
> and want to put my (resp. all) home directories into
> 
> D:\tools\cygwin\myhome\
> 
> If possible I would like to specify my new home directory not as absolute but as relative path.
> 
> I would prefer a customization somwhow in "Cygwin.bat" like:
> 
> set cygwinhome=..\myhome
> 
> Mind the double dots standing for "go up one level".
> 
> How can I achieve this?
> 
> Ben
> 


mkpasswd -c >> /etc/passwd

change the fifth field of "/etc/passwd"
from  "/home/<username>"
to "/cygdrive/d/tools/cygwin/myhome"


close all cygwin process and rerun.

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