From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111198 invoked by alias); 9 May 2019 09:01:29 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111131 invoked by uid 89); 9 May 2019 09:01:29 -0000 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 Received: from mailout06.t-online.de (HELO mailout06.t-online.de) (194.25.134.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 May 2019 09:01:27 +0000 Received: from fwd41.aul.t-online.de (fwd41.aul.t-online.de [172.20.27.139]) by mailout06.t-online.de (Postfix) with SMTP id E5A5B41CF7E0 for ; Thu, 9 May 2019 11:01:24 +0200 (CEST) Received: from [192.168.2.127] (SyatnaZcYh3pLO3EG-9F1w4OcSMwSgjDchVtGaFidgGjOiJjeSYuw26tpn5WZBTgxR@[84.159.149.62]) by fwd41.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1hOevc-3t9tI00; Thu, 9 May 2019 11:01:24 +0200 To: cygwin@cygwin.com From: Henning Subject: Re: Re: How to become root/root (0/0) Message-ID: Date: Thu, 09 May 2019 09:01:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; rv:56.0) Gecko/20100101 Thunderbird/56.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-05/txt/msg00074.txt.bz2 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