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: Achim Gratz <Stromeko at NexGo dot DE>
- To: cygwin at cygwin dot com
- Date: Tue, 11 Nov 2014 11:05:44 +0000 (UTC)
- 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>
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> One possible, but not naturally useful default behaviour is what
> the current code does:
>
> 1. Utilize the unixHomeDirectory AD attribute.
> 2. If unixHomeDirectory is empty, fall back to /home/$USER.
[...]
Default to /home/$USER unless a specific AD attribute is specified in some
configuration file (maybe nsswitch.conf, maybe something else) and that
attribute is non-empty.
> 1. Always use /home/$USER and let the admins come up with a matching
> mount point scheme.
Would work for me, but then the configuration of those mount points would
need to be directable somehow.
> Another:
>
> 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.
Looks good, but maybe allow the AD attribute to be explicitly named (e.g.
cygwinHomeDirectory). For local accounts maybe some environment variable or
registry key should be available as a configuration option.
Regards,
Achim.
--
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