This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to specify the user directory OUTSIDE of Cygwin (installation folder)?
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 9 Sep 2017 09:53:23 +0200
- Subject: Re: How to specify the user directory OUTSIDE of Cygwin (installation folder)?
- Authentication-results: sourceware.org; auth=none
- References: <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