X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BD1A3857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1695368555; bh=jfmWoFgSznGUMdqBxltJbD7jHrT7SWaYERZ7GGkw1hQ=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=AztRM7XNVAsphJR+Vmgy1uj9W+QDlMtGchbCI+DNgwwxPH5pgAYH0WoHb0QNX06W3 G/IIi5Wz2i9QZrVxMqec74HC4Sp0HeL1vGdnmgONhRtgQO3gQ8Z31RHAJ1qT2Paj1j qzfs7yewtpDm0X8qhIASt0eflPz+eNlQCqWw89D0= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D0A353858D37 Subject: Re: Running bash script as SYSTEM from account with admin rights? To: cygwin AT cygwin DOT com References: Message-ID: Date: Fri, 22 Sep 2023 09:41:54 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 SeaMonkey/2.53.16 MIME-Version: 1.0 In-Reply-To: X-TOI-EXPURGATEID: 150726::1695368515-22EB7802-0332B83A/0/0 CLEAN NORMAL X-TOI-MSGID: 6a986141-45e0-45ed-9d4d-bfc7385b60e8 X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_LINKBAIT, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Christian Franke via Cygwin Reply-To: Christian Franke Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Martin Wege via Cygwin wrote: > Hello, > > Does Cygwin have a tool to run a bash script as SYSTEM user if my > account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https://learn.microsoft.com/sysinternals/downloads/psexec) This starts a Cygwin terminal as SYSTEM user: psexec -s -i c:\cygwin\bin\mintty - -- Regards, Christian -- 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