X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 16 Oct 2012 12:23:12 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Registry keys not only accessible when user
Message-ID: <20121016102312.GH25877@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <1349807869703-93406.post@n5.nabble.com> <507484C0.3070406@cygwin.com> <1349815868856-93419.post@n5.nabble.com> <50749DDE.6030905@cygwin.com> <1349850743935-93436.post@n5.nabble.com> <20121010073145.GA31314@calimero.vinschen.de> <1349864246547-93451.post@n5.nabble.com> <20121010125215.GA16074@calimero.vinschen.de> <1349893142600-93468.post@n5.nabble.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1349893142600-93468.post@n5.nabble.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Oct 10 11:19, julien2412 wrote:
> 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

That's the full output?  Very strange.  On a clean W8 install I get 126
entries under that key, regardless whether I have full admin rights or
being admin running UAC-restricted, or running under a non-admin account.

Try this without admin rights:

  $ strace -o ls.trace /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft
  $ grep 'stat_worker.*=' ls.trace > ls.stat.trace

and paste the content of ls.stat.trace into your reply.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

