public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: How to specify the user directory OUTSIDE of Cygwin (installation folder)?
Date: Sat, 09 Sep 2017 07:53:00 -0000	[thread overview]
Message-ID: <95cc51c1-8254-31b7-6a55-01810587ebdc@gmail.com> (raw)
In-Reply-To: <190592.83283.bm@smtp101.mail.ir2.yahoo.com>

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

  reply	other threads:[~2017-09-09  7:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-09  5:11 Ben Stover via cygwin
2017-09-09  7:53 ` Marco Atzeri [this message]
2017-09-09  8:31   ` Jürgen Wagner
2017-09-09  9:03     ` Corinna Vinschen
2017-09-09  9:39 ` Kptain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95cc51c1-8254-31b7-6a55-01810587ebdc@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).