delorie.com/archives/browse.cgi | search |
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=wA5OMhlVD3pMixZJNR2MW/h7E9udT2B8lhWUbtZd/LUEAZYnEucuJ | |
mppUtdzd/UgUdcOxAzS8PlDRb/8N8J0+BJoVna1FJJso8pOJt8bGLOHxBJkNoaXs | |
XX5HZuKODe9uApEc2AhHBOvsaWFbtmVHiBaiP1nNn5Xt4EpU3oJ/Ww= | |
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=2Jw0pIGQsLxa1/m5PqZ8sGVlzSM=; b=yDdPZxqW6BjMCjkmdk3mwoRZZTZE | |
nNsyWaD8LFWXrWc9+UvUSAj6woXH72q6IrrqXTvndHGAmPBQsoiGFkKMFiljfUAh | |
DmLrIMfvj+DuqUhLCce/9urWCm9hYoFSqmwXXncTagopC0unaAfn6h7kGCLYbBU8 | |
f7ViycWahhGJKfI= | |
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=-0.9 required=5.0 tests=AWL,BAYES_00,SPAM_BODY1 autolearn=no version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Sun, 15 Feb 2015 11:00:30 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.35-0.1 |
Message-ID: | <20150215100030.GI7225@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <announce DOT 20150212202323 DOT GI7818 AT calimero DOT vinschen DOT de> <74410B36-A057-483B-AAA3-20C15934374E AT Denis-Excoffier DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <74410B36-A057-483B-AAA3-20C15934374E@Denis-Excoffier.org> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
--Zi0sgQQBxRFxMTsj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 13 19:30, Denis Excoffier wrote: > On 2015-02-12 21:23, Corinna Vinschen wrote: > >=20 > > Hi Cygwin friends and users, > >=20 > >=20 > > I released a very early TEST version of the next upcoming Cygwin > > release. The version number is 1.7.35-0.1. > >=20 > ... > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > If you're not familiar with the new account information handling > > introduced in Cygwin 1.7.34, I suggest to read the new documentation > > at https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > >=20 > > The essential changes in this test release are: > >=20 > > - The default settings for db_home, db_shell, and db_gecos in case > > there's no /etc/nsswitch.conf file, or if they are not mentioned=20 > > in /etc/nsswitch.conf, are now set to just the fallback, which is > >=20 > > db_home: /home/%U > > db_shell: /bin/bash > > db_gecos: <empty> > >=20 >=20 > I tried (according to the new documentation): >=20 > db_home: /%H/%U/cygdir >=20 > and that was fine but %H was replaced by the > /cygdrive/C/Document and Settings/<user> prefix, although i was > expecting the /cygdrive/C/Home/<user> prefix instead. I'm sorry, but... why and how on earth did you expect that? %H is the Windows home directory in POSIX style. It's *not* just something in your environment, how could it be? Consider checking the passwd entry for some other user: $ getent passwd john.lennon The home directory of this account has to be computed from what Windows provides on information and the environment of the current user has nothing to do with it. The Windows home directory is computed as follows: - If the account is an AD account, fetch the account's homeDrive and homeDirectory attributes from AD. =20=20 The 100% right thing to do at this point is to check if homeDrive is non-empty. If so, it would be used to generate the path, e.g. homeDrive =3D=3D Z: =3D=3D> %H =3D=3D /cygdrive/z However, after discussions on this list, I disabled this part. The drive letter in homeDrive may not always be available when it's needed (ssh login). =20=20 Rather, Cygwin just checks if homeDirectory is non-empty and if so, it uses that to create %H. - Otherwise, if the account is a non-AD account, fetch the same info as above from local SAM or the NT4 pre-AD account DB. Same procedure as above. - Otherwise, if the account DB has no home dir info, check the local machine. The fallback for the Windows home directory is the account's profile path on the local machine. So Cygwin checks the registry value HKLM/Software/Microsoft/Windows NT/CurrentVersion/ProfileList/<your SID= >/ProfileImagePath If it exists, it's converted to POSIX style. If not, %H will not generate any useful info for that user. > I have to confess that i used here the nearly-to-be-obsoleted XP SP3. > But i also use W7 sometimes, and it would be great if i could > have "db_home: /%H/%U/cygdir" in both of them (yes my username has to > appear twice): no /etc/passwd any more. You can have that and in that case, and if the account DB does not explicitly specify a home directory you'd get something like /cygdrive/c/Users/<user> for %H. So /%H/%U/cygdir would result in /cygdrive/c/Users/<user>/<user>/cygdir Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --Zi0sgQQBxRFxMTsj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU4G4+AAoJEPU2Bp2uRE+gFf4P/3R38BlyXnn98paZAIEzshI+ c61BcYdnQmxXy7xinUZJEdAbY2QNkoh6DrWlvD7HjqT8DbmxKlpddNbIthhc7YlG ETs+XkhQXYzVEeaKjkw/IcjNxp2VO4U95oJM41th40fso5cDbFteRHjP0wovL2+j h8dNIqM/mzJ36RS4i+VwTYrSbb4V2TDlmdNHY+RZnyJI9bo7xAM6nGf/EpiOqlaR nxUQGCxuo3BPIqrtK4fG43Rl2Z10zFyGKh8qBUJfwhZ1K5qYpNqkAnPGq3K2PHKq w0iX5t/2TOclECGmFITYveGgDjHe+ZFs+pe/NGKWuUmU7SegF6I2aNiDtVAIwchQ Frj9Am3uHk+1+DOHGIcDMCp2ZXtj5ZB0K50UfdYULQ08FocPppl1KrQ+89c0bO7P UqbZRwn9nWIT4C2hdbP0yIOEdNe3FgsrTQCtKFnhhSLWbpzyf84DDt9b0T3Cpslf DvhkVBkxbe18JVXqFxjH0ukjEQ/+Md7Ew4fzIMPglLhrxf7IoInaLdJqS9faHTPt sRw9W1RYMfZrzEFUfoETPh2xQNvUBo0R6gnndes1Rc60BlvSdXOoLJEah4JybOyk dumCGajQAyS/xsvMfcGjWRWPMREWWvHPuty0mtxR36XVrqqYIGwxyrzo094mTavF YzsnZmWVuoEjlIyc4Zy1 =IoJc -----END PGP SIGNATURE----- --Zi0sgQQBxRFxMTsj--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |