RFC: 1.7.33 problem with user's home directory
Achim Gratz
Stromeko@NexGo.DE
Tue Nov 11 11:06:00 GMT 2014
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
More information about the Cygwin
mailing list