This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: RFC: 1.7.33 problem with user's home directory
- From: Warren Young <wyml at etr-usa dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 12 Nov 2014 09:45:27 -0700
- Subject: Re: RFC: 1.7.33 problem with user's home directory
- Authentication-results: sourceware.org; auth=none
- 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>
On Nov 11, 2014, at 3:18 AM, Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> 1. Utilize the homeDirectory AD attribute (aka %HOMEDRIVE%%HOMEPATH%).
> 2. If homeDirectory is empty, fall back to /home/$USER.
This is just a subset of what I suggested, so I’m in favor of it.
(By subset I mean that I’d prefer you do essentially the same thing for the non-AD case, too.)
> 1. Always use /home/$USER and let the admins come up with a matching
> mount point scheme.
That’s neglecting your responsibility as BDFL to set a sensible default. The consequence is that everyone will do it differently, and then you’ll have to support everything on an equal basis, because you chose not to endorse anything.
When you choose a sensible default, you get the option to criticize and even deprecate wild alternative schemes.
> 1. Add a setting to /etc/nsswitch.conf which allows to specify one of
> the above:
>
> home: [unix|win|home]...
>
> - "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.
I see that as orthogonal. It has the advantage of providing not only a sensible default but also a list of endorsed alternatives.
Whether you *want* to endorse some or all of these alternatives by codifying them is a separate question.
--
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