This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Registry keys not only accessible when user


Larry Hall (Cygwin) wrote
> On 10/9/2012 2:37 PM, julien2412 wrote:
>> How to workaround launching Cygwin with admin rights and still access
>> these
>> registry keys?
> Windows won't let programs run by unprivileged users manipulate this
> registry hive.  If you only need read access, you will need to change the
> configuration tool to drop the permissions it does not need.  If you do
> that, then what you're doing should work.  Note that this isn't Cygwin-
> specific.  You'd see this same issue even if you removed Cygwin from the
> equation.

Sorry for having talked about the configuration tool, it's misleading here.

In Cygwin, if I just test "ls /proc/reg*", it shows there are
"/proc/registry", "/proc/registry32" and "/proc/registry64"

Now if I just run an ls /proc/registry/<abbreviated
HKLM>/SOFTWARE/Microsoft, I can see the registry keys I quoted only if I
launch Cygwin with admin rights.

Anyway, I noticed that with regtool, everything was ok.
Is "regtool" the recommanded way to access (in read only) registry keys? And
so we should avoid to run things like this Perl script line:
open($fhandle, "/proc/registry/$key") )

Julien
PS:
"uname -rs" gives "CYGWIN_NT_6.0 1.7.16 (0.262/5/3)"



--
View this message in context: http://cygwin.1069669.n5.nabble.com/Registry-keys-not-only-accessible-when-user-tp93406p93419.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]