From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by sourceware.org (Postfix) with ESMTPS id 2BDC03858417 for ; Mon, 22 Jan 2024 18:59:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BDC03858417 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2BDC03858417 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::b2d 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 Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-dae7cc31151so2406690276.3 for ; Mon, 22 Jan 2024 10:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705949978; x=1706554778; darn=cygwin.com; h=content-transfer-encoding:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=180PLzLsLRTlwxYTLjuTQjSIp+x+cVAN7lMbT3UilpA=; b=ZxDAKD/R3nEJVDFURzbA2Btfo6u80B4e3in+8jgb7aWUve+kz/ZIW9X9EZJp6Ha6s6 Ijs0K7jGbuxltZVJZiA4Oxipjgydi05NKpNg/Bu2wK7IaHTC2CeCiWGgiaANVGqr5Lnn X23p1Deg3ioUiS6iHMuPKVXKkf79va9suKnzg9TDHPcgTyeQvKagvF5/u8z4l15WPmsm 7gfm8mC7mIef/K9pYfmWdT/GLLgbVx2hbZmmzVPVzRO/myO63ix4x2iRHu0Kf/ZbNwwO psGzeofZeyT1uolgknoi4ozC9yzVO81LDG4+7lvGtvNg2/DkzBkpJX6d/Mou/F2vd5xS NiAg== 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: In-Reply-To: Reply-To: John.Ruckstuhl@gmail.com From: John Ruckstuhl Date: Mon, 22 Jan 2024 10:59:26 -0800 Message-ID: Subject: Re: cygwin utils can access directory and its contents, but W10 utils claim to have no access, why? To: cygwin@cygwin.com, John.Ruckstuhl@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 List-Id: Thanks for the replies Brian & Corinna, I learned a lot. On Mon, Jan 22, 2024 at 1:48=E2=80=AFAM Corinna Vinschen 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 =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 ... SeBackupPrivilege ... Disabled SeRestorePrivilege ... Disabled ... C:\> Thanks very much. John Ruckstuhl