delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/17/17:27:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3E764BC1.3090203@t-online.de>
Date: Mon, 17 Mar 2003 23:27:13 +0100
From: =?ISO-8859-1?Q?Markus_Sch=F6nhaber?= <mks99 AT t-online DOT de>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: de-de, de, en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] New release of setup.exe (2.249.2.10)
References: <20030313205847 DOT E1E4B1C221 AT redhat DOT com> <3E710A26 DOT 5050207 AT t-online DOT de> <20030314025249 DOT GB33739617 AT hpn5170x> <3E718AD8 DOT 4010209 AT t-online DOT de> <3E71E0D9 DOT 682AD75E AT ieee DOT org> <3E720139 DOT 70402 AT t-online DOT de> <3E7206BA DOT 9543594A AT ieee DOT org> <3E72FDD1 DOT 5060200 AT t-online DOT de> <20030315175803 DOT GA811047 AT hpn5170x> <3E757AC6 DOT 6010601 AT t-online DOT de> <20030317160751 DOT GA200199 AT Worldnet>
In-Reply-To: <20030317160751.GA200199@Worldnet>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h2HMRKj07030

Pierre A. Humblet wrote:
> On Mon, Mar 17, 2003 at 08:35:34AM +0100, Markus Schönhaber wrote:
> 
>>OK, I should be able to get that done.
> 
> 
> OK, thanks Markus.
> 
> 
>>The results of this test will not be influenced by the flavour of the 
>>existing cygwin installation (who did it, what was installed etc.)?
> 
> 
> Yes, it will depend on who did it. The only data point I am interested 
> in is what happens when a non privileged user answers Yes to the Run As 
> administrator Windows pop up.
> 
> Pierre

I'm not quite sure whether this answers my question. To be able put a 
script into /etc/postinstall there has to exist a cygwin installation on 
the machine or /etc/postinstall wouldn't even be there to drop something 
in. I wondered if the way this previously existing cygwin installation was 
created had any influence on the outcome of the test.

Anyway, here's what I did:
W2k Server SP3, domain member, old cygwin moved out of the way, registry 
keys deleted, CYGWIN unset.
- Download setup.exe from cygwin.com (version info on welcome screen says: 
2.249.2.10),
- start setup.exe as non-privileged domain user,
- "Install program as..." box comes up,
- use credentials of local admin,
- select some packages,
- setup completes without visible warning,
- /etc/passwd and /etc/group contain all local users and groups but, as 
expected, no domain users / groups,
- most files are owned by local admin group, group is set to users (also 
local).
So, setup seems to have done it's job as good as can be expected when run 
by a user with local admin but no domain rights.

- create /etc/postinstall/testchown.sh with the contents you posted,
- chown it to 544:545,
- chmod it to a+rwx,
- start setup.exe as non-privileged domain user,
- "Install program as..." box comes up,
- use credentials of local admin,
- leave package list as is,
- setup says that nothing was to be installed,
- in /etc:
$ cat testchown
uid=500(mks) gid=513(Kein) groups=513(Kein),544(Administratoren),545(Benutzer)

(Admin account is renamed, as you see)

$ ls -l testchown
-rw-rw-rw-    1 SYSTEM   SYSTEM         79 Mar 17 22:58 testchown

I hope this will help.

Regards
   mks


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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