delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/10/14:19:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL,BAYES_50,DKIM_ADSP_CUSTOM_MED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,TW_MK,URI_HEX
X-Spam-Check-By: sourceware.org
Date: Wed, 10 Oct 2012 11:19:02 -0700 (PDT)
From: julien2412 <serval2412 AT yahoo DOT fr>
To: cygwin AT cygwin DOT com
Message-ID: <1349893142600-93468.post@n5.nabble.com>
In-Reply-To: <20121010125215.GA16074@calimero.vinschen.de>
References: <1349807869703-93406 DOT post AT n5 DOT nabble DOT com> <507484C0 DOT 3070406 AT cygwin DOT com> <1349815868856-93419 DOT post AT n5 DOT nabble DOT com> <50749DDE DOT 6030905 AT cygwin DOT com> <1349850743935-93436 DOT post AT n5 DOT nabble DOT com> <20121010073145 DOT GA31314 AT calimero DOT vinschen DOT de> <1349864246547-93451 DOT post AT n5 DOT nabble DOT com> <20121010125215 DOT GA16074 AT calimero DOT vinschen DOT de>
Subject: Re: Registry keys not only accessible when user
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q9AIJGrn022647

Corinna Vinschen-2 wrote
> On Oct 10 03:17, julien2412 wrote:
>> For example, there's nothing there :
>> /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VCExpress
>> And there's nothing cause permissions aren't ok :
>> ls -l /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/
>> d---------  1      400    401 0 Nov 19 18:53 VBExpress
>                    ^^^^^^^^^^^
> These uid and gid look fishy.  Your /etc/passwd and /etc/group files
> seem to be off.  Maybe that's the reason.  Regenerate your /etc/passwd
> and /etc/group files:
> 
>   $ mkpasswd -l [-d] > /etc/passwd
>   $ mkgroup -l [-d] > /etc/group
> 
> Use the -d option only if you're in a domain.  For more information see
> http://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd
> http://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup
> 
> Then exit from your Cygwin shell and start again.  Any change?

I runned
  $ mkpasswd -l > /etc/passwd
  $ mkgroup -l > /etc/group
and restarted cygwin

Here are the results without admin rights:

$ ls -l /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/
total 0
dr-x------ 3 annie  None   0  8 avr.   2009 AudioCompressionManager
dr-x------ 5 SYSTEM SYSTEM 0 21 févr.  2009 Direct3D
dr-x------ 3 SYSTEM SYSTEM 0 21 févr.  2009 DirectDraw
dr-x------ 4 SYSTEM SYSTEM 0  7 févr.  2009 Internet Explorer
dr-x------ 7 SYSTEM SYSTEM 0 29 févr.  2012 Multimedia
dr-x------ 3 annie  None   0 22 févr.  2009 RFC1156Agent

Here are the results with admin rights (I put V* at the end to reduce the
output):
$ ls -l /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/V*
/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VCExpress:
total 0
dr-x------ 60 Administrateurs None 0  1 oct.  20:25 9.0

/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VisualStudio:
total 0
dr-x------  3 SYSTEM SYSTEM 0  1 oct.  22:30 10.0
dr-x------  3 SYSTEM SYSTEM 0  7 févr.  2009 3.5
dr-x------  4 SYSTEM SYSTEM 0  1 oct.  22:25 8.0
dr-x------ 14 SYSTEM SYSTEM 0  1 oct.  20:25 9.0
dr-x------  4 SYSTEM SYSTEM 0  1 oct.  20:25 SxS

/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VSA:
total 0
dr-x------ 3 SYSTEM SYSTEM 0  1 oct.  20:25 9.0

I didn't compare before and after but I think I've got a little more
directories now.

BTW, it was an Cygwin clean install made 1 week ago.

Julien



--
View this message in context: http://cygwin.1069669.n5.nabble.com/Registry-keys-not-only-accessible-when-user-tp93406p93468.html
Sent from the Cygwin list mailing list archive at Nabble.com.

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