www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/09/10:11:45

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 539EBjVV2752279
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 539EBjVV2752279
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=a80m1uxe
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BB0F384F002
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1744207903;
bh=F8GujxwWoDmA4m8BnarJsP4RVFSk9BP6Iu4ve9oqb8Y=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=a80m1uxeIwq1V9GJ/nGH75d3po3O9BTglXAs+Q/lJrMkNkTU9ray5Hud1e+kEz++i
JVQWAqDjIX7Wbd6P5tf0Am+P4G+OVKTJGgZDfVbWxpzCbezsxT0bpee5TqPL1Sny+h
qdhvYtTgV7saDuJQcY9rpxapnOhblaOaG9WhY+GU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E1059384F002
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E1059384F002
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744207826; cv=none;
b=D3d1bqWxn/ODTvaJkhOYeIKCTqFesMT/FENovh7GUxDlyJHhJTO4OKgs7GcxAm1VZhZ7pdqHXZVhWgTE+TISBC8sxjklil15WDyXYVHJfMQLCkQK2O3OYj5DI0A2gCe0CUEc8ODlhgp+PCG5aMUVAE1b3qTYk9AMFNCSfh/hUfA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1744207826; c=relaxed/simple;
bh=/Gn1tXfdLZb/szxngc7c+xMmQaAf021SJAzkymIQL/0=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=HYa50z9mkBtETqjRoz2c+7YYpbM3y+a5Vrr7NzJixO/gnIHc7VciyuxRcquAkE59ism905YLT2+l+G0rmWAQ40hQ79EJV94YJE5iWoADCVZBIx6EEemNZ9m9E3E+jYVKwmju8WjYGZJuiUCgiKluNT9nXkmXz34IE/kOplvLB38=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1059384F002
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1744207823; x=1744812623;
h=content-transfer-encoding:to:subject:message-id:date:from:reply-to
:in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to;
bh=d8nV6y9wkOZFijaQ2NIUkfvDBL6TYGA9qKVYdAYs5Ds=;
b=oFzdXvGcX3x+dKvolihFgu83jq8gc18Cc7lQ6SzU7yhQdtFTg9V34TQRpzziHVpbmV
lyCF9viHwJEFefgPKWU31MZdZJonneF1Tnj7jPLxzM5zxRYT8+uw6BMZyjmg6KwWbA+S
ZMct0C2TY0iGnnGIQ4lyQ47U2xU/Z3s4LFVZ506JnNcipK+r8ba8TmR8+PWvwuJT6f6t
WiaF0cr/joe+AeXmZuuXFQA6Axddg9GVjWA4QIu8Xn9v9eTki0vO+iK49mgGMeJ2WSC8
k6IolYjpE8CZ85+1JNcAS/eGiIVvzqgIbCHYc3WbdwOeqdLbkEd4yXx7DF3EWJdLQaxf
Lpkg==
X-Gm-Message-State: AOJu0Ywd8GRBBN/05eIE/0OJZqhEd2hexoC1DTTbg5yNl2PKJHzCv9za
nzaO91h2TK2643uKbALLexP5ywpL3lemMVA4EKUlFBIp0TUUoQXoArvAiH3p2CmuRl+qZb6Bd92
G2b2QREGMLwaQZN6PhumhF6zlIra7U+9y7dc=
X-Gm-Gg: ASbGncsHJRdYXrdZ7KreKS/i2gF++CfY0a12dLwvh+UbeQI7h7yExRABPe8217OngAJ
woO0Dq4jfTVA79LNqSRvWvxKyp/biziZSI5nohrKLh/R/13srcsjbRYRBy2DY8TYtuX2nKj2reW
3vZF3aycmfqzi30+wgh8Z5nzU=
X-Google-Smtp-Source: AGHT+IHAKNX/hE4JvYJCjRPcINVyi/qpEgurrQrLaU1LHPorNpBZ4L3Eqhr8KjvWgB/zlqool3pkclFnxGH5iUFLDqg=
X-Received: by 2002:a2e:a916:0:b0:30b:aabf:fa8 with SMTP id
38308e7fff4ca-30f438a304cmr12153231fa.28.1744207822960; Wed, 09 Apr 2025
07:10:22 -0700 (PDT)
MIME-Version: 1.0
References: <a240f661-68a3-4d99-9b90-05f59f0c5c5a AT acm DOT org>
In-Reply-To: <a240f661-68a3-4d99-9b90-05f59f0c5c5a@acm.org>
Date: Wed, 9 Apr 2025 08:09:55 -0600
X-Gm-Features: ATxdqUEznUCwGPK2geGQWElOfhhZ5ZL8BU5Gt9NwfdZNXEK0OnWryGJuRfg7YrY
Message-ID: <CANV9t=Qhfs0hJX8NBWup+CLoJhmjUbeboC5ksVsxT=0GqtQeWA@mail.gmail.com>
Subject: Re: Mounted shares not visible in bash "Run as Administrator"
To: cygwin AT cygwin DOT com
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Bill Stewart via Cygwin <cygwin AT cygwin DOT com>
Reply-To: bstewart AT iname DOT com
Cc: Bill Stewart <abqbill AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 539EBjVV2752279

On Mon, Apr 7, 2025 at 7:05 PM Jim Garrison wrote:

> I just ran across this today.  In a normal session all my remote mounts
> (NTFS, file server running Win10) are visible.  In a session that is
> "Run as administrator", none of the mounts are visible.
>
> Is there a configuration parameter that would make mounts visible in the
> administrator session?  My Google-fu must be off today because I can't
> seem to find any references to this "issue".

This behavior, while counterintuitive, is expected. See this article:

https://support.microsoft.com/en-us/help/3035277/

What this article is saying, in a convoluted way, is that mapped
drives between elevated and non-elevated sessions are not shared. You
can tell Windows that you want to share the mappings by setting the
EnableLinkedConnections registry value:

Hive: HKEY_LOCAL_MACHINE
Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Value Name: EnableLinkedConnections
Value Data: 1
Data type: REG_DWORD

Changing this setting requires a reboot.

Bill

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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