delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/13/04:27:27

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=k8NBslezJZLDm7jmhRKdD96dP/itSQJeVNMQsGwjw1uGumd7BWzZQ
/qIyODm/mwtQDLbQL5t0At4LdCa2ZtW4IfQt1cjgfWLcKPaDom06zIQ/2I8+diD0
+ovXDOROALKCnalpXVBywy5a071aWnDo0SxiWCYSjQzB7km5I4nDMA=
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=drreoZ1vxmKb7tgu5l9pwR/3C9U=; b=VHOqNjKqUB7CK10qZqJ4DAQJz18t
40jC5VfTK/ivVa/OGneoBSJzQj8Zzk0BOiY+w+t5/zWO4Dubuk1Fj5licYUC9kmw
hvqRPu9ICxlJnJEboOprU22DXgkEN8MNcN01uf6oqSxY0aoad1ZN92jRO9MnqNlo
83fHM+ArvHhDDoQ=
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=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 13 Nov 2014 10:27:02 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: RFC: 1.7.33 problem with user's home directory
Message-ID: <20141113092702.GH2782@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20141110205216 DOT GJ2782 AT calimero DOT vinschen DOT de> <0B8D23F7-0258-472D-BF38-860402FD3CDC AT etr-usa DOT com> <20141111101821 DOT GO2782 AT calimero DOT vinschen DOT de> <6FA5AF0B-E176-49DA-A679-A2F9272412D0 AT etr-usa DOT com>
MIME-Version: 1.0
In-Reply-To: <6FA5AF0B-E176-49DA-A679-A2F9272412D0@etr-usa.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

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

On Nov 12 09:45, Warren Young wrote:
> On Nov 11, 2014, at 3:18 AM, Corinna Vinschen <corinna-cygwin AT cygwin DOT com>=
 wrote:
>=20
> > 1. Utilize the homeDirectory AD attribute (aka %HOMEDRIVE%%HOMEPATH%).
> > 2. If homeDirectory is empty, fall back to /home/$USER.
>=20
> This is just a subset of what I suggested, so I=E2=80=99m in favor of it.
> (By subset I mean that I=E2=80=99d prefer you do essentially the same thi=
ng for the non-AD case, too.)

This would be most easily implemented as well.

The beauty here is that probably 99% of the home users don't set
HOMEDRIVE/HOMEPATH in their SAM.  So they get /home/$USER as fallback,
which is what they got with /etc/passwd as well.  And SAM users have the
XML-like description field entry as well.

For AD environments HOMEDRIVE/HOMEPATH are typically set, though.
Here the users get what they have to use as homedir anyway.

It's simple, but it should work OOTB for most people.

> > 1. Always use /home/$USER and let the admins come up with a matching
> >   mount point scheme.
>=20
> That=E2=80=99s neglecting your responsibility as BDFL to set a sensible

Heh.  I didn't see myself as BDFL yet.  Not sure if that's an honor.

> default.  The consequence is that everyone will do it differently, and
> then you=E2=80=99ll have to support everything on an equal basis, because=
 you
> chose not to endorse anything.
>=20
> When you choose a sensible default, you get the option to criticize
> and even deprecate wild alternative schemes.

This is a philosophical argument.  You'd have to argue in how far
always using /home/$USER is NOT a sensible default.

> > 1. Add a setting to /etc/nsswitch.conf which allows to specify one of
> >  the above:
> >=20
> >    home: [unix|win|home]...
> >=20
> >   - "unix" means, set pw_dir to unixHomeDirectory
> >   - "win" means, set pw_dir to homeDirectory
> >   - "home" means, set pw_dir to /home/$USER
> >   - Multiple entries are possible.
> >   - Default in the absence of this setting is: always set pw_dir to
> >     /home/$USER.
>=20
> I see that as orthogonal.  It has the advantage of providing not only
> a sensible default but also a list of endorsed alternatives.
>=20
> Whether you *want* to endorse some or all of these alternatives by
> codifying them is a separate question.

I guess I end up doing this anyway.  How complex it becomes is another
question, which I can answer probably only after starting to code it.


Corinna

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

--cV8yfgwCnzpki16T
Content-Type: application/pgp-signature

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

iQIcBAEBAgAGBQJUZHlmAAoJEPU2Bp2uRE+g3YUP/0kTXmVqCCwQ+ExzAjuNVHiE
aqScVCAnNk8QlST5ngD9fNQ5k4EPcoAcy1HLgG0ODtYVtJY1i/O1BaTvfyTmq/tQ
8HQT/UVcm5lzdtVCLzPa7V4Qa3aLe64AwkxEHJrZ5kX0GRtjqreN5JqSL52k6GNH
ThigPHYj5VOLGfs8/zllUfaWMnah1O6deLC+yy/0TSLn/LMMzn6F9HRQRIybvE1C
DED6zWxVSEuAkd1n30ZdJwfH+Sx+8D47sxiSuvRuxxw10ri74aGfAqZstVGd9z/R
YGUgZz5jPmaiqrGQemNNbeN2L1ZAxPwlwTEXHtPHsXrnrOOdd+A/ZCmZsyv9MRxU
1GpeOw9+o2v/DKfUGIcZZF3kutkW+4FTmw5UoBPHUcb9BonvbyiXHSXVFxRKYM8S
5dNxqlKRLjUClKrR2p/SLTcKYdgZ3MpZzuwFCQWewjCKAuH/SZRPb2okqBjJ/Kg9
N0jtXuG/o2FnVpumswQfOheHnn4M9+qhsAtUcVKkcFB21CmmU1KzW3EKLSM6gqpw
ceuPFCXR9+e7bX7o5eOF2BxIA3jhbkAs+gValo1Jzear/kMnWdEtYwM/kLfuKU99
Aeyyltj2bGJGzcE6RDqw93jrfvjYMqiREOnyWuZXjgXOZwApFKOv7lPTonv3K0lX
mZXxLgkB5on1O+XMWScP
=6bkz
-----END PGP SIGNATURE-----

--cV8yfgwCnzpki16T--

- Raw text -


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