X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A54EB3857726 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1695576167; bh=UZBZlJ0HtuJPsaOosgJ/ZIVZA7URcKDQLU1Sze0+JZU=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=og1qg5DdRCnIOehivPGMiFzBJxZU6QB2LzUKL5fCuq6RRasVRj9/F0mxVgY2VNeLj qdf55msmZQzGGL0wb7xpoizbIryLxaisMGsg+SkJvJ/EdQskxsLMAFTypl2lcW9A2r jOhkigXvsKm9ySqa62pQy1Arv0GpkVGweiG1q2JU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 43997385841C X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695576129; x=1696180929; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GiliVi5LiayouDbngyNuaqjsP8NTTAWSxFBRcd7s+0A=; b=eUfFtKkA5kxI2/BeQqjf9rbt2E/zFZLUqXRmGvQG56IfnujMUFXV+IVA+jLZp7NTUu UFMPhGfkUdwkTvfzv4b/SUFbexLTndwKCyR3VxX4+Gly4qrutSgv/nNVrEFwvBErIXUm ehgImz8rJQZUl4jDDpWY1VscXEpo900buBczsWF9R3RaRXDPkCBjzPaudiv0Ju0ZYvR9 MtAR2Vi0koWr+VqwXwH7Y3/TEhHoDrhpylWiE+QeiBCyMLrkUG3zONlbxAIfC1QfBunZ kg1JZ7/o61LnfQCsJMtZqSSEFd7dQF807jZA1cJFhmd/6yb8OwsLtc5X3XRkxRnRU5uM wcBg== X-Gm-Message-State: AOJu0Yz8L1Qjr1PeAKtQsaE2ObU6P7p7BRpQI7Gnj+jHIhR8RyFCq+lt NltHSmMa2QOjC3CEcXbGXccgM07vJsAkOR1uus08HNg3PfM= X-Google-Smtp-Source: AGHT+IE509IXuy3+lOfZ7KBYC6/jEoiXJMT9x1ATIt5E1mYLraMWgyrCc7yjdwVKgkx2o4o5/iwYAK6dNxogHInZoOs= X-Received: by 2002:a05:6870:d0d1:b0:1d5:a17e:f62 with SMTP id k17-20020a056870d0d100b001d5a17e0f62mr6449445oaa.24.1695576129295; Sun, 24 Sep 2023 10:22:09 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 24 Sep 2023 19:21:58 +0200 Message-ID: Subject: Setuid exe (chmod u+s,g+s foo.exe) not working with Cygwin... To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GAPPY_SUBJECT, 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Martin Wege via Cygwin Reply-To: Martin Wege Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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? Thanks, Martin -- 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