X-Recipient: archive-cygwin@delorie.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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=ALKv2jxWEodwqr1gVknQFt6PN0zbJe6fMI+0VNk1Rogv3LQUMEqZa
	YXrFA0x58QB88hLd31cL0WSqJYJeqz8aDSB+uMba5xsdDSa24NefbAdVSq/nB2lx
	xnLV30dv4jzdkFz5doiIojVWnudUJHwbvRK6DhDbEu+2S98YMN8rlM=
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:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=ZophdJKsdDPvUflO1a7+oSpCQ2c=; b=PbKfIOYGP+YK2l8Tdqyvk1Zs4WpZ
	vrjs4DUNoz1Q7QwVO6MTXOMoLDATvakVb2VL3bEapnAcK1fs6XzJ5zNXeLj4J24T
	dxEGTczA0OJp18ii3kEg9IhjR/z/gjQMPQ+rauOjAjrfsySYF+N/gG6kY2tdmtPv
	bCXZlbJjGSm7Wpo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 11 Nov 2014 10:59:56 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: RFC: 1.7.33 problem with user's home directory
Message-ID: <20141111095956.GN2782@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20141110205216.GJ2782@calimero.vinschen.de> <54616884.7010407@secure-endpoints.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="lBqJz4CGKwlWe7/k"
Content-Disposition: inline
In-Reply-To: <54616884.7010407@secure-endpoints.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--lBqJz4CGKwlWe7/k
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Nov 10 20:38, Jeffrey Altman wrote:
> On 11/10/2014 3:52 PM, Corinna Vinschen wrote:
> > Hi,
> >=20
> >=20
> > after a long discussion in RL today, I came to the conclusion that
> > there's a major problem in the current handling of the user's home
> > directory in AD environments in the new user account code when not using
> > /etc/passwd files.
>=20
>=20
> My personal preference would be for the Cygwin Home directory to be
> created under
>=20
>   %HOMEPATH%\AppData\Roaming\Cygwin
>=20
> That way the home directory is isolated from native windows applications
> that might use the same file names but with different line endings
> directly in %HOMEPATH%.
>=20
> And, the data is within the user profile so that when accessed via
> redirection or otherwise, the data is accessible on every machine the
> user logs into.

I don't think that works as expected in all environments.

What you refer to above is not, in fact, %HOMEPATH%\AppData\Roaming\Cygwin,
but %USERPROFILE%\AppData\Roaming\Cygwin.

%USERPROFILE% and %HOMEPATH% are two different things, maintained
separately in AD.  The roaming user profile is often not the same
path as the homedir, it's just the lazy default.

The roaming user profile is loaded from the profile server every time
you log on to a machine.  If you have a big Cygwin home dir, you don't
want that to be part of your roaming profile and being loaded over the
net at login time.=20=20

The homedir is typically on a fileserver which just gets connected to
your drive Z:.

Please keep in mind that I'm talking about the Cygwin home dir not as
a default value which can be overridden in /etc/passwd, but of a Cygwin
home dir as returned by Cygwin when fetching the passwd entry from AD,
and no passwd file exists.  This Cygwin home dir should be:

- Make some kind of sense when using a default value.

- Be configurable by the administrators if possible.

That's why I thought it a good idea to utilize unixHomeDirectory.
Default is /home/$USER,  The admins can set it to some other value
in POSIX notation.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--lBqJz4CGKwlWe7/k
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJUYd4bAAoJEPU2Bp2uRE+gGkUP/2SqUL6FVW7wUWrvqRT77czn
wgJr8ycpR0bOxLpyfDZqAF36mgtdOLoca7t3TvCJoLAsrLQU3Q1wrIyWYRZAl/8H
AsVA9cxB16Hrs1UIIlq3n3yfPMfo1D86JbvpIeEP3nSMZdrPOWI2Zp1diK7cBm6m
asCL9NLNi7v3yn2bPp3uhCu6tRalnVZ+KFDI1ybSIowB7eKx+ymCYV3UxC04BFpn
vOr5k9RMvRIaNDrCqoCBaS6CGUDpugLQONBzwQ4a70xGra1ysi5xSICklOQmdhBc
qaVRNpDfQvaLFFqXWkl/Q/mwDori9jgu1icCZpyrrr2Ic/XGf+uD4zk837d/kvKx
RrXEmhLOwC60Pxem75CXRAh6aG8nXY8g21oQntYwxo3IsTWRFzvDuuYhgtjFuMQU
p/iJM6GnBiMzI3ITOS6A9BIXNwCBbTOEXRv5WvmCQqsKqJkPI20mf7X99VYkJVpJ
yaAe+dRsu+sG7OiDx9U56O9GmqQZot0LY9NkugWj7iLbN1m6iuAXokhMmUPW3IWT
B2PVHiTGWsUd1+VHggjCuYBP+bxDQ6Rj/CZOb1yjFapTwrfAjgdW+5d+Hkw22jtk
CIuqCYxTtYtjidvwB66YQfHcmBK4vfBRWb4JaToxNZB+VA9CAV8xLjrH2w/O8icR
2a2EahD+lDXd2LA+11wE
=7XNC
-----END PGP SIGNATURE-----

--lBqJz4CGKwlWe7/k--
