From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id 8EDC03858C52 for ; Thu, 19 Jan 2023 19:18:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EDC03858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1029.google.com with SMTP id z1-20020a17090a66c100b00226f05b9595so2758971pjl.0 for ; Thu, 19 Jan 2023 11:18:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=as9tqGLb9VqeZr7sas1bBwkx2IGAEdVk84aWgLnQJMw=; b=eHMGpbuN1J+FQkcl1e1ciLzU326CONGBzfU2NWa6y7BDhBDdCc8bL98KTT0CFCg415 S54kw/lzZG5CjYNDpE95gIjWGMRfgDeXnZnenjxk+xn5Rfk5wzUFlxiRhQdpZQHKnZxg QNaOwqUY+whghn7OQrRy+dL3aw//itKL80Vncf9rMMhMhaH8JT/uPRZiR+x+T7OqotP6 qXNBGPyWiLmfXQO0LI6cWX3RqchVpBP0kvzsNj+EdLJ69O4Tnwqz4GxP68b/5Ew03OQo mV6zBRYdi6sLT5FS0xvp8I7yBNAgZXhUvU245hE5Gj6Cas83HxDM+DIGyTymUCi29KUg 0FWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=as9tqGLb9VqeZr7sas1bBwkx2IGAEdVk84aWgLnQJMw=; b=7rLtuHXPcFfKJ6oWq4OGT8NOtQiBehT0XrxT3yIButTR1s974+zs5Mgjcm+sJSpCaO oIOsj6TERAdmDOISRdWLn2A5WexzhatWS5Hszm1SDnFrCKnDR0NFmFVJhM6MHX9SoS1d SFyZkKtAlXACG9SVwh4VumHYpQrj5SGSzXHLdW5P3XeeFVal7ERaM99roDOfQJzMV3lD Nr7D/i9KYg09fwGSN/NsWfjhwKdGMoTyx0XUwrlf+ctznxEb+fdv5Gu1QQ76pU9ImOIT Cx4I6TYHYDdYKtsVzv57Z9wHHnBcF/ZcE81V1lcue6hPUjH3c9KiD/WMBBRrXwjhV6cK TemA== X-Gm-Message-State: AFqh2krSrtITfnnVFpI5sfOuBIFOT1612biqjJAdsc8NtXzz96SvrmUL uy9w8KG0+dJWV2cFAYmt4Yy1yTc0qUvAVybdIeq2joU= X-Google-Smtp-Source: AMrXdXuwXXXvqQGWC4fCMBr085czn4gc+xB9Vlmb+OTqjHFDk4mUeJIZ0EHwFswIoIf8ZodTEjRM66QIEZx/rFMIxdY= X-Received: by 2002:a17:903:130a:b0:192:c405:5e82 with SMTP id iy10-20020a170903130a00b00192c4055e82mr1138417plb.9.1674155881667; Thu, 19 Jan 2023 11:18:01 -0800 (PST) MIME-Version: 1.0 From: Jochen Wiedmann Date: Thu, 19 Jan 2023 20:17:51 +0100 Message-ID: Subject: Feature request: sudo To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, as someone who is quite used to typing sudo do something I would really like to do the same in my CygWin bash.In my opinion, this could be implemented relatively simply, and straightforward as follows: - Accept an array of strings with the command, that is being executed with administrator privileges. - Use the standard Windows API to execute some functionality with admin privileges. In the current case, that functionality would be a simple exec with the above command line. The result would be a sudo executable without some of the configurable features of the Linux/Unix sudo (like execution without password, or execution of special command lines without root privileges), but just the same for all practical purposes. I think, that a lot of users would benefit. Thanks, Jochen -- Philosophy is useless, theology is worse. (Industrial Disease, Dire Straits)