delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/05/09/05:01:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=qRB
dWadAOXQYtUPv2uvbvYn3iWMRIqsPg5/oRGGtEQWg6KHbfCztxpMtxhM2KFohQfA
KyyX7fKAcHDSy3yU7yYlR+aYgJdV2WIEyAucFcLGyyqZGEnoukeBisMVm3hrfEy+
PVW0Cn2FHA5Uoey7+XajZ3JxBYjtSNxIQ7mtarRg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=Zy9Y+4XPA
fcjQMCNGWCiRlYfLf4=; b=pKh+vUcJclM/bHeBeu1NEyilTyQoaJWe4uHRNCMNJ
bGqbqY/8RQ+gY+sIx4FOw9iyVr85iTp0itVO1k0/BSSEjn/5UWKnw0zLPOmv7u6w
lrS2LzGGfuWWrM6PfXbLHvng+h8OIW00Y5jNAPS2SNUiFEV93JXewwDV8+FAZZzU
7c=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=reaction, desire, H*r:sk:mailout, H*RU:sk:mailout
X-HELO: mailout06.t-online.de
To: cygwin AT cygwin DOT com
From: Henning <xaoxx AT t-online DOT de>
Subject: Re: Re: How to become root/root (0/0)
Message-ID: <e5962fd2-8705-33a4-c4ce-94a78b55b70c@t-online.de>
Date: Thu, 9 May 2019 11:02:19 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:56.0) Gecko/20100101 Thunderbird/56.0
MIME-Version: 1.0
X-IsSubscribed: yes

This is in response to Erik Soderquist's response. I happened to
delete the mail, so the citations may not look properly. Sorry for
the inconvenience.

 > On Windows, UID 0 does not exist
yes, I am (and were) fully aware of that. But see below.

 > trying to force UID 0 I would expect to result in less than guest
 > privileges
obviously you are right. So I undid any changes concerning USER, UID
and HOME, deleted /etc/{passwd,group}, I restored the original
/etc/nsswitch.conf and removed relevant settings from shortcut
cmdlines.

Now I've got root/None xxxxxx/xxxxxx and everything seems to work
properly. Obviously you kickd me in the right direction. Thanks a lot
for your prompt response.

But, though not really a "but", I now have $HOME=/root. This is what
I want, but how come? AFAIR, in the beginning it was /home/root,
which I don't like. Maybe I forgot to revert something. And, accor-
ding to ntsec.html the desire to have a non-/home/$USER would make
me one of your corner cases.

 > did you configure and start the cygserver service?
No. And currently, with things working properly, I don't see a
reason to have one more service running.

And yes,
 > the use of /etc/passwd in Cygwin has been deprecated
but, according to ntsec.html
    "Read /etc/passwd and /etc/group files if they exist, just
     as in the olden days, mainly for backward compatibility."
and
    "If no entry is found, or no passwd or group file was present,
     Cygwin will ask the OS."

So, shouldn't the method proposed here 
https://cygwin.com/ml/cygwin-apps/2003-11/msg00134.html , although from 
pre-nsswitch.conf times,
still work?

I think, I'll try again.

And the group "None". I found it mentioned in ntsec. Would it be
possible to create a group "root" in Windows which gives it's
members the same power as the group Administrators? And why "None"
and not "Administrators"?

Again, thanks for your quick reaction.

Henning

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019