delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 59F70385696A |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1692882094; | |
bh=xJ7x/bV5GKASxxXug1W1VenBgryoEhHPwFNlIRxUTDw=; | |
h=To:Subject:Date:References:List-Id:List-Unsubscribe:List-Archive: | |
List-Post:List-Help:List-Subscribe:From:Reply-To:From; | |
b=ZKOi1Y4xUvw2HET1/tsdvlOc1NgOPXMTvFzE9gUqbPHOR8tgtmsPTIjelZvUvphd8 | |
M/+t2RBCieYxvejZssB/LSsCKdKN+/S1B3mE+W5tQ64RrB0nold5c6EeaGbPwmoL1N | |
g29x0o3FASrOxBv/+XzQp/J58L5KuXDQJiq8KZUQ= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org 99F413858C53 |
X-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Test for Windows Administrator permissions from Cygwin |
terminal|script? | |
Date: | Thu, 24 Aug 2023 09:01:04 -0400 |
Message-ID: | <74leei1djvvgnbtvrkpctgnp9jc2kqtsjf@4ax.com> |
References: | <CANH4o6OpsvT99AeJ2uTcqyajWQHmffYJqV=RR4HBxoFaveR7sQ AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
X-Newsreader: | Forte Agent 4.2/32.1118 |
X-Archive: | encrypt |
X-Spam-Status: | No, score=-3032.1 required=5.0 tests=BAYES_00, |
HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, | |
TXREP autolearn=no autolearn_force=no version=3.4.6 | |
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.29 |
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: | Andrew Schulman via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | Andrew Schulman <schulman DOT andrew AT epa DOT gov> |
Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
> Hello, > > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin privileges. https://superuser.com/questions/660191/how-to-check-if-cygwin-mintty-bash-is-run-as-administrator/874615#874615 -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |