delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/09/24/16:40:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7DCB385773A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1695588029;
bh=lc+zVYrb9o3US/EXaSpY5e/eTj97rG65AM51UokQOuI=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=j3b2oOkxJQw1+u/BSLO51/FSDVul/JjitiiMevBNY7UnsTwQVFxQjEcLOxmQeIVwI
l8uE2maj7HnpZgYJZQW4aF2NQ4of/5ozn0g7nq6MdjSIl5BMHOneIri4uZ5gwkppR1
XvtSK6YiSH+7URUXZhS+zIJAKTyse53f2iYA/+1k=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B40113858C5F
X-Authority-Analysis: v=2.4 cv=PensOwtd c=1 sm=1 tr=0 ts=65109e99
a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
a=IkcTkHD0fZMA:10 a=Bfo1rFtExsEw4DxCo20A:9 a=QEXdDO2ut3YA:10
a=zgiPjhLxNE0A:10 a=ZXulRonScM0A:10
Message-ID: <507246f1-f296-9ddb-75aa-ddbb261faef9@Shaw.ca>
Date: Sun, 24 Sep 2023 14:39:52 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Subject: Re: Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin...
To: cygwin AT cygwin DOT com
References: <CANH4o6N_ah1oPfP48JkDvNKhrnee=Mgi+R9pXetWKDhzv-3xJA AT mail DOT gmail DOT com>
Organization: Inglis
In-Reply-To: <CANH4o6N_ah1oPfP48JkDvNKhrnee=Mgi+R9pXetWKDhzv-3xJA@mail.gmail.com>
X-CMAE-Envelope: MS4xfKEVg62bwr9gwkuM75VKWW3HI7ZOrmCK8/cuF08m4t6CEIdTufrKSh+8sA3iRRYe6bJj+Q8FwMsFq/7ZGHpDjJTlQ1YN42LAR6R+O5oeG7SQzJeVCLJN
vXP1p5cgyiowSqcM9w6ot2gxfl68RUT1EjypWSv+90EosD3UXIB/GoPxXAKPyFGiGOvV6B8PLcjHb/yBOMUyXbvKsCDqH1DC5gzHal1wANDJh2VaSG3ycYBD
X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GAPPY_SUBJECT, NICE_REPLY_A,
RCVD_IN_DNSWL_LOW, 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
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin 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 38OKeVcN030910

On 2023-09-24 11:21, Martin Wege via Cygwin wrote:
> Hello,
> 
> I tried to setuid an executable, so that it runs as user "SYSTEM", but
> it does not work.
> 
> I tried this as an user with administrator rights:
> chown SYSTEM:SYSTEM foo.exe
> chmod u+s,g+s foo.exe
> 
> But running ./foo then just runs it as the current user.
> 
> What am I doing wrong?

Not running from an elevated process or account per the Windows privilege model.

If it was possible, someone would have built working su and sudo programs in the 
27 years Cygwin has been emulating POSIX under versions of Windows NT which 
support privileges and security.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

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