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=ZO0vZlmXN4sr6qAZ6g1rFeNjlEQ9D4LFUH1VQJxKLlz3LHEf5Nzcm xc7in5aaqtaJQrg5LmkaZFwrkt8q+MZiO7L0Uy+SFPpTH1GEJmgg/7U1PpWWVofS o/4vI+8M8kaZX3Bq+VZiVuaKfVCKwbv0n7M3OEVP50nmrTNSCBC8sg= 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=iHT6Pvn7iUh8UwHUVHGzZQVF3aw=; b=SMynyii13YHsdAO35oVW73O849pi 2KZ/YC8WxqSBX2HfItg9aOP0S3cAh/XwZGbUA8k/sedoyUjVwab4aUF3JC2G5tZT 9V72PXD73dpeEq8BNj3t3fTLIs+/yhs4l5MNR69j3NIPjiq6oo3khkn8ZKgJfpoE WRX68GLzozPC248= 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-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=playing X-HELO: mout.kundenserver.de Date: Sat, 16 Feb 2019 18:40:19 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Windows to Cygwin username mapping: Domain before local account when duplicate name? Message-ID: <20190216174019.GF4256@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20190215202936 DOT GL2702 AT calimero DOT vinschen DOT de> <20190215204326 DOT GO2702 AT calimero DOT vinschen DOT de> <3bace8f4-1097-9245-10e9-1ed54d1014f3 AT SystematicSw DOT ab DOT ca> <20190216094528 DOT GT2702 AT calimero DOT vinschen DOT de> <959f0e79-1ede-878a-6306-d0bdd8d7ef0e AT SystematicSw DOT ab DOT ca> <20190216153320 DOT GC4256 AT calimero DOT vinschen DOT de> <0d77615d-68fb-b1f4-114b-a91379371dc0 AT SystematicSw DOT ab DOT ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SFyWQ0h3ruR435lw" Content-Disposition: inline In-Reply-To: <0d77615d-68fb-b1f4-114b-a91379371dc0@SystematicSw.ab.ca> User-Agent: Mutt/1.10.1 (2018-07-13) --SFyWQ0h3ruR435lw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 16 09:15, Brian Inglis wrote: > On 2019-02-16 08:33, Corinna Vinschen wrote: > > On Feb 16 08:09, Brian Inglis wrote: > >> On 2019-02-16 02:45, Corinna Vinschen wrote: > >>> On Feb 15 14:51, Bill Stewart wrote: > >>>> On Fri, Feb 15, 2019 at 2:38 PM Brian Inglis wrote: > >>>>> Windows normally allows "." to be used to refer to the local machin= e name in a > >>>>> domain context - can anyone confirm or deny whether this works in C= ygwin or with > >>>>> getent? > >>>> AFAICT, the "." shortcut does not work in Cygwin. > >>> The combining operator for domain prepended usernames is '+'. This > >>> is the same character as used by good old Interix for the same purpos= e. > >> That was not in question - the question was could .+$USER be used in l= ieu of > >> $COMPUTERNAME+$USER or $HOSTNAME+$USER and should $COMPUTERNAME rather= than > >> $HOSTNAME be used in such contexts? > > Yeah, I misunderstood this, sorry. The answer is no. The username is > > fixed. Otherwise you'd have two auto-generated passwd entries for the > > same user which may lead to confusion (not necessarily confusion on the > > user side...) > > If this is a desired feature, we could try this, but it might break > > existing setups again. >=20 > As with .\$USER in Windows or with ~ for $HOME, this should only be a > convenience to allow input or scripts to avoid providing $COMPUTERNAME/$H= OSTNAME > in userid command line argument contexts. I added this to Cygwin for testing so you can simply use ".+username" as a shortcut for "$COMPUTERNAME+username". I uploaded snapshots to https://cygwin.com/snapshots for playing. Corinna --=20 Corinna Vinschen Cygwin Maintainer --SFyWQ0h3ruR435lw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxoSwMACgkQ9TYGna5E T6AvIw/+NC2YxaWnWVTsAN7ePcrIvNIw/kPCAlmzyKEy0MChwz8bTR9hSB2ljjNi WbRR2X50n8mSxereUsRTQfzc+wYTAMWbjU53X7WbZ4n9qx3U+04LSTgxQmvIPxUo HFFVcFLNl1sVJbUeKAUctaGSYyY9n2qAYylkdtCUJPAZFV8dWW5lP44u8RtUTuOL qantJypJB3U/1xKbfz4bL6GJbTh5JNPRE5WjrKm/lN4Om80H/lSaFHMUd/yTa+8E WB7ruszJw2Y9u5KcIWBk98UXmrCJdFUWvsaxeJ1TERjTuleB73+aMKhaucNh8sKn IkgzlF9s0uGMMM5cd+CEBL4ym3dz8bJJ4iTkal5vFtTMQ4Leuv1cdgyCuKO1TQwn bH2vFDC3KhrU/xQUaQ8ipEPDUQmCn2SuYp/0WNv2Tmfc+5qMlFNVddMSysJDxxEG LBX4CcVENcj4eQxwYxh3ARwav6CoUyrMdbWwFt1SOiujmIYz+5ec8t58+AJNxbMH hvVLn8uQ7J7hkcj9TzCcjAUweDPcsz/UR0bKLibtF7NZtihl9NNsMpF7kpVtoao0 Dbc0yaGmBQPXLEmgpNGEFnCuElCd09eHdhnsNxX+ogaaRw6iDck00M6PmT/1YLiT qa9NLJCO5W9fCpAsIVKsfEHJzlt9bQhvNn0GOUMCx3iWOfLe5/k= =a3Yo -----END PGP SIGNATURE----- --SFyWQ0h3ruR435lw--