delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/05/02:14:56

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer goliath.siemens.de)
From: "Andrej Borsenkow" <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
To: <cygwin AT sourceware DOT cygnus DOT com>,
"\"Russell Hanneken\" <"<rhanneken AT pobox DOT com>
Subject: RE: Problem using Cygwin on Windows 2000
Date: Tue, 5 Sep 2000 10:14:12 +0400
Message-ID: <000201c01700$827a8400$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <008401c016b6$b8ac9170$fbb607d8@firstworld.net>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Importance: Normal


> -----Original Message-----
> From: cygwin-owner AT sources DOT redhat DOT com
> [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Russell Hanneken
> Sent: Tuesday, September 05, 2000 1:26 AM
> To: cygwin AT sourceware DOT cygnus DOT com
> Subject: Problem using Cygwin on Windows 2000
>
>
> I'm having a problem using Cygwin on Windows 2000.  I'd like to know a) if
> anyone else is having this problem, and b) if anyone knows what I can do
> about it.  I've checked the FAQ and searched the mailing list archives, but
> so far I haven't seen this issue addressed.
>
> To begin with, I'm using Windows 2000 Professional (upgraded from Windows NT
> 4.0).
>
> I used the setup.exe program to install all the usual packages.  When asked,
> I said I wanted to install Cygwin for all users, not just the user
> installing Cygwin (the Administrator).
>
> When I run cygwin.bat as the Administrator, everything works perfectly.
>
> When I run cygwin.bat under a user account, I get the following message:
>
>      bash.exe: warning: could not find /tmp, please create!
>
> Then I get a bash prompt.  When I type "ls" I see the C:\cygwin\bin
> directory, though when I type "pwd" I'm told the present working directory
> is /usr/bin.
>
> If I try to do "ls /usr", I'm told that there is no such file or directory.
> When I do "ls /", I see the root directory on my C drive--i.e., C:\.  (If I
> try that as Administrator, I see the Cygwin directory, C:\cygwin, which I
> gather is what I'm supposed to see.)
>
> bash does not read /etc/profile, and my path does not get modified.
>
> Does this problem sound familiar to anyone?  I know Cygwin wasn't designed
> for Windows 2000, but I'm hoping I can get it to work with a little
> tweaking.
>
> --


It looks like permissions problem - Cygwin cannot access registry key (mount
table) when running as normal user. Win2k has more stringent access control
than WinNT by default. I just tried - mount entries created under HKLM are all
Full control for Administrator and System and Read only for everybody else.
Cygwin opens HKLM keys with desired access KEY_ALL_ACCESS (as opposed to HKCU
keys that are opened read-only). I suspect, that this makes open fail, because
requested access rights are not granted.

You can check access with regedt32. It is interesting if anybody could compare
ACL for Cygwin keys in HKLM for WinNT and Win2k. You can also try to set full
control for your account just to check if it helps for HKLM\Software\Cygnus
Solutions\Cygwin\mounts v2 and all subkeys.

-andrej



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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