delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/01/22/14:00:09

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D2CE3857C7C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1705950008;
bh=zNrAgBv1wg84gH79Rjs+u184v0e6L1PilItlboiVf4I=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=qHppv2rPDFKzRAowFz4FJ+p0jhfGSOaJaS+z/HyDHBPmOdp8ntw5zyTOkcR0DPSYS
HlMhWFyh8PLKmSbRpnleJ3Th1Zz5L9vyXpYk724h1DMpHupu763gMUuMjPOdC5ozx3
v2FksI/e/NrDZQgxfIa4iomh5flQJWbjUaeTanRs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BDC03858417
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2BDC03858417
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705949980; cv=none;
b=NbhVG9LVMbntZKaAoYwd4LQnkQU/3QjvcW+OF34aPWOPLUEImE3Ukt4/6BMnWyiaYYHM1tJddM8AnlXp762NibspJE103UdS1ocXnx0oXwuWrb3PsTR+v6P0Wa6Pn2IYF1R4PSaZRqWyjxh+lgUZD2XNqfKIuYgOtzYkV77klFM=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1705949980; c=relaxed/simple;
bh=K48kv0MZxBJXolt6iXVOeguXNuWCzrQ4qtIfzljkdIQ=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=uImenzNQUakgwUGSrpScZxsyAuut4ONEDn1RZe3Q+uCZ+GORUUS6CVAkTkISAInOM0/9IeMQtZd9LSpF2R9Mu8vmIYp8RjhK6nH+/qwt0RXswuB3OHCY648+4aAYv5qJkTe7/+CDmM2TuNeaN8FLawRoIVdIXtWeJfjTqqvkVHo=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1705949978; x=1706554778;
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=180PLzLsLRTlwxYTLjuTQjSIp+x+cVAN7lMbT3UilpA=;
b=qwKFNuJuiBeV4M0DjRIja+lYc7+zZzynScLj5snOZKjCP0LQz1YkKhevq1orpiZdpn
yDLx9VRQPVEmnMqauaUxmRKeUFoydL6YlqsBLQKZBT4zNfyIFhK5RRISe7AL2Zh0GZsw
uo+dZDCMSVw0nkiuEyWMtoiFyPBgC30fdXaH/YiEDh+c+T6IErJmOQsTgxbeRoARxiTd
hdWaCQjcRpYsBKwJ1BMh38n4IMYb//zzNnA+e3EUjORSc76535wAun3PT3i1Gg6yvtBC
BS2yxzJ12Uy9GoHwirIkI4sQJ9i+XrrNEhHAab57EpoVFYxESRyK5qGhPj8UMW0XZcMj
owqw==
X-Gm-Message-State: AOJu0YwJOFG5h0S3b4zELydxBUfJ0Vu4ysOd1UUoUDTi9rtOwT3j+ML0
vgKDvXvViBpyjrNFxAEjWc4zKxCXW9pG2Y+Mtr+vvN95zrX6w10fTngCtrXBhuZL/QQoFuQ/q99
ay9a4ty7ljfQrE1kuF9ZFjISoum/C+aHRvoyuRA==
X-Google-Smtp-Source: AGHT+IFN3CLvQULmHqOxsOq/VL/PUQqDVpxR1WjjrqjMNRSi69S5hvw12vKH2namccmJc73vrWfDp9uRbxE48Dtz2OE=
X-Received: by 2002:a25:df03:0:b0:dc2:3fbd:8300 with SMTP id
w3-20020a25df03000000b00dc23fbd8300mr2608314ybg.10.1705949978004; Mon, 22 Jan
2024 10:59:38 -0800 (PST)
MIME-Version: 1.0
References: <CAOBROv1Jgj1cZ6nL64Y=rYRR5cvd8VRw3XH0xD4E57c_=MKU=w AT mail DOT gmail DOT com>
<Za454au_liWSTwhw AT calimero DOT vinschen DOT de>
In-Reply-To: <Za454au_liWSTwhw@calimero.vinschen.de>
Date: Mon, 22 Jan 2024 10:59:26 -0800
Message-ID: <CAOBROv25QD8w703nim4yU0EzXz-Gw3WzrsUicYbm6q9u5y0ozQ@mail.gmail.com>
Subject: Re: cygwin utils can access directory and its contents, but W10 utils
claim to have no access, why?
To: cygwin AT cygwin DOT com, John DOT Ruckstuhl AT gmail DOT com
X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00, CLAIM_SUBJECT,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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: John Ruckstuhl via Cygwin <cygwin AT cygwin DOT com>
Reply-To: John DOT Ruckstuhl 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 40MJ09j3007368

Thanks for the replies Brian & Corinna, I learned a lot.

On Mon, Jan 22, 2024 at 1:48 AM Corinna Vinschen
<corinna-cygwin AT cygwin DOT com> wrote:
> Users in the Administrators group have these privileges in their user
> token.  Under UAC, both privileges are removed from the token.  In an
> elevated shell, though, both privileges are present.
>
> The funny thing here is this: While both privileges are present in the
> token, they are disabled by default.
>
> They have to be enabled explicitely before you can exercise the
> privileges.  Usually you do this in the same application
> programatically.

Now I see...
Local administrator Bob reports his User Access Token info
(with Windows whoami, not cygwin whoami)
    C:\>whoami /priv

    PRIVILEGES INFORMATION
    ----------------------

    Privilege Name                            ... State
    ========================================= ... ========
      ...
      SeBackupPrivilege                         ... Disabled
      SeRestorePrivilege                        ... Disabled
      ...

      C:\>

Thanks very much.
John Ruckstuhl

-- 
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