delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/06/06:38:15

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DA06C3858415
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru
X-Yandex-Fwd: 2
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1657103702; bh=W4MbxA3X2YS3E2mxSldG4bcfkfy8y0d06L6MA52kjS4=;
h=Subject:To:From:Message-ID:Date:Reply-To;
b=cyfGnpzZjbw01sHPDJbrWyZJBlzFVp51Ik4DrhjXtBB18fL0ZG484mcse4c20ncGZ
2Wak7nrnMdcYpaIg9wzzbOy5hOGMesSvGl48KxCZhc7az1spsthi5Jy0G8wKk/FYHw
79OX+FnDs+7YMLdOUC6n4eFCQD52uOxfT5denv4g=
Authentication-Results: iva7-24d2605505b3.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
Date: Wed, 6 Jul 2022 13:32:09 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1558196978.20220706133209@yandex.ru>
To: All <cygwin AT cygwin DOT com>
Subject: The "TrustedInstaller" user can not be found by ID
MIME-Version: 1.0
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE 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>
Reply-To: cygwin 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 266AcFYt019719

Greetings, All!

Been doing some housekeeping in my Cygwin installation at work, and wanted to
change the owner of the files to something other than myself.
TrustedInstaller seemed like a good neutral target, but it took me a little
while to find out it is

1. …named "NT SERVICE+TrustedInstaller" actually (which is predictable
somewhat);
$ getent passwd | grep -i trust
NT SERVICE+TrustedInstaller:*:328384:328384:U-NT SERVICE\TrustedInstaller,S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464:/:/sbin/nologin

2. …can not be accessed by any other name (unlike "NT AUTHORITY\SYSTEM");
$ getent passwd System
system:*:18:18:U-NT AUTHORITY\system,S-1-5-18:/home/system:/bin/bash
$ getent passwd 18
ñèñòåìà:*:18:18:U-NT AUTHORITY\ñèñòåìà,S-1-5-18:/home/ñèñòåìà:/bin/bash

3. …can not be accessed by ID! Which is rather surprising.
$ getent passwd 328384
[2] <- user not found

Is this some special case of some kind of Windows' kinks?


-- 
With best regards,
Andrey Repin
Wednesday, July 6, 2022 13:22:14

Sorry for my terrible english...

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