delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/11/06:06:16

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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=rBPGZqGFijvumoe/HNWe9jw2VlEe2Z+vJJ4vWrt7OMA0jeC0HZVBD
VBuTXUagIttKKDzA+ZSM64RfYt9YZ6QO/u545o+C03O5BwBzUslHDGRMxcrLlO1Y
wd+rO4ADieSX0DqFKQtqI++0b0pglf0ZUFSpwToU8CHDavrL8ZfWwo=
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:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=n2zA7ifwqyOMPnUyh1C5jekfGRk=; b=ETB7+SsXctqbnP1bBCkK0FKXQEpW
R70p+UbuEXivx++SmBRliOkjIXIjTa7Xgfq/DptJXEt5IHTzRsALpZ9IfW9rKScE
iE9Hqtpu15zRmxgZPDjJzbQGaLb/l76CNsDPt19chI0bvBSLMYL+iYYglt52F6TJ
lLLnkXKE85tyaoA=
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=-4.0 required=5.0 tests=AWL,BAYES_20,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: RFC: 1.7.33 problem with user's home directory
Date: Tue, 11 Nov 2014 11:05:44 +0000 (UTC)
Lines: 40
Message-ID: <loom.20141111T112847-576@post.gmane.org>
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>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

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

- Raw text -


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