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=X8U/9XsbqqYT0gDEdOrg8zlgPB4/8MfkPWbesjuperXDNX+xV/Jrz xs7spEjHFaKH1+BUNKRqLLNQQI1frUmbd57LT9ta0nJ3Z41wI26S9wVWkV3EIdNv OoXtk+Lqnvcfrh0xh2BtSrAc/cbEb0zCag/wzZW9hB8T2b/t+9BSeY= 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=3WYc1UkFOC3q6GLbJiH8JRzxmk0=; b=wcM4viJ9lcHX7AHGkHye7Pch/lWr QcL167jzjv6tn0Ru7wmEQETfYDvbnHiGrUTNIHyb20UO0Nh38XKr8K4pngpANr+4 TQj2cmu190gbmr0QxfijJB5/MWviat7S948St/2XKmLf0MD2+5Lx3QyaOYn66ZV1 CCtLqUsav13VPjw= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: Fri, 14 Nov 2014 11:34:57 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: RFC: 1.7.33 problem with user's home directory Message-ID: <20141114103457.GB2782@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> <20141113092702 DOT GH2782 AT calimero DOT vinschen DOT de> <671922837 DOT 20141114010459 AT yandex DOT ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PseDLKNfj4uXA+Je" Content-Disposition: inline In-Reply-To: <671922837.20141114010459@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) --PseDLKNfj4uXA+Je Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Nov 14 01:04, Andrey Repin wrote: > Greetings, Corinna Vinschen! >=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 = thing for the non-AD case, too.) >=20 > > This would be most easily implemented as well. >=20 > > The beauty here is that probably 99% of the home users don't set > > HOMEDRIVE/HOMEPATH in their SAM. >=20 > They are always set by default. Are you kidding me? We're talking about creating passwd entries from user DBs, right? We're certainly not talking about fetching the environment variables of the current user to create arbitrary user's passwd entry. Ever tried the NetUserGetInfo function? > > So they get /home/$USER as fallback, >=20 > No. >=20 > > which is what they got with /etc/passwd as well. And SAM users have the > > XML-like description field entry as well. >=20 > > For AD environments HOMEDRIVE/HOMEPATH are typically set, though. >=20 > HOMEDRIVE/HOMEPATH always set. Funny. I think I skip the rest of your mail. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --PseDLKNfj4uXA+Je Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUZdrRAAoJEPU2Bp2uRE+gnfUP/04qJsl70lpRN0md26RIcM3j UpjCnob2cfOYLR10SrR7LHTKXyK64wfYnIP1siw/ZtDNRQ/oj1y/utp5gqnaXH2K aBvf+bcO8r/eK5J7Vzvb4srukYAeHAkS4GO8HhjtdCNFyQ+cKZ66ziXA/2hlsyA+ nd5tuwiYMgb2QKHmKkruDB+zIQi8qQ+FxCh0j5w5GWqmtIQIgf5sFepldWi7/6QL l4Vp9xPABL8tfDvZlGnojz969v06QtodHOriUFZ3XuFNL0u/xWqK/ZisMhXod9r2 mrPyJnst4AQZoaALxYAp8UQcap1GPCS/Y93T6HlRBN/U0D6t8uf6gsybkNLW92d4 N5P5WrKkmFmXTA7QWEGCv6dcofI2wqFPBWNDewqPqs7Kk3uz1nSCOXiu4sadSiVS IXVFFL2OBTCHjPxFh9wb4DyYkEvS7SO168rdgDBYVh5bCypFbo1fd/vXlAGvcXD5 L49YgAdTA7GyJdFux88rkGGUCyipSyHEhHUJXYwCIN4/WKd/A0jmLtN2uG6rK4lH JSG+1aowyk/YyWFbVJXN+d8MFB6HzZPQuw69F0alX0lfVdl4UQU2pr9GbxK6JcfP uKxHEWfJ2Z9mAa7ZEUExBFUu64as9FYFHtNEPczAzh8hL93IWRc5QlzjQ2yu2SHK IBTHmCZuEteFxmY8Px5k =UCCb -----END PGP SIGNATURE----- --PseDLKNfj4uXA+Je--