delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/05/19:15:57

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <39136544.FB82ADD9@pacbell.net>
Date: Fri, 05 May 2000 17:20:20 -0700
From: Jay Bromley <jaywb AT pacbell DOT net>
X-Mailer: Mozilla 4.72 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: grep 2.4 and permission denied

--------------17459AA74F90FD64E3E9C372
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello again,

I recently installed a cygwin 1.1.0 and find it is great (thanks to
those who have made this possible, it makes working in the M$ world
bearable.) I am having some oddness related (I believe) to how cygwin
interacts with NTFS.

My problem started when I wanted a recursive grep (yeah, I know about
find | xargs grep foo) program. I downloaded the latest grep from
ftp.gnu.org, did ./configure and then make from the top level grep-2.4
directory and everything worked great. The build succeeded, when I tried
make check all 8 tests were passed.

The problem is when I do grep --recursive foo I get a permission denied
message for each subdirectory of the current directory. I.e.:

[jay AT YEMAYA grep-2.4] grep --recursive CONTEXT_DEBUGGER *
grep: bootstrap: Permission denied
grep: djgpp: Permission denied
(and so on for each and every subdir)...

Grep works fine non-recursively. I have set up both /etc/group (mkgroup
-l > group) and /etc/passwd (mkpasswd -l > passwd). The directory in
question looks like (minus non-directories):

drwxr-xr-x   6 jay      None        81920 May  5 12:35 bfd/
drwxr-xr-x   3 jay      None        20480 Apr  7  1999 config/
drwxr-xr-x   2 jay      None         4096 May  5 12:33 etc/
drwxr-xr-x  12 jay      None       114688 May  5 12:36 gdb/
drwxr-xr-x   2 jay      None            0 May  5 12:29 i686-pc-cygwin32/

drwxr-xr-x   9 jay      None         8192 Apr  7  1999 include/
drwxr-xr-x   2 jay      None        12288 May  5 12:33 intl/
drwxr-xr-x   3 jay      None        24576 May  5 12:33 libiberty/
drwxr-xr-x   2 jay      None         8192 May  5 12:35 mmalloc/
drwxr-xr-x   4 jay      None        24576 May  5 12:35 opcodes/
drwxr-xr-x   6 jay      None        20480 May  5 12:35 readline/
drwxr-xr-x  21 jay      None         4096 May  5 12:32 sim/
drwxr-xr-x   3 jay      None         4096 Apr  7  1999 texinfo/
drwxr-xr-x   7 jay      None         4096 May  5 12:33 utils/

One curiousity is trying to chown jay.Users * changed nothing.

Also, I am curious as to what setting the CYGWIN=ntsec environment
setting really does. I haven't been able to find too much about this. I
would appreciate any pointers about how permissions work in cygwin.

Thanks and regards,
Jay Bromley

--------------17459AA74F90FD64E3E9C372
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello again,
<p>I recently installed a cygwin 1.1.0 and find it is great (thanks to
those who have made this possible, it makes working in the M$ world bearable.)
I am having some oddness related (I believe) to how cygwin interacts with
NTFS.
<p>My problem started when I wanted a recursive grep (yeah, I know about
find | xargs grep foo) program. I downloaded the latest grep from ftp.gnu.org,
did ./configure and then make from the top level grep-2.4 directory and
everything worked great. The build succeeded, when I tried make check all
8 tests were passed.
<p>The problem is when I do grep --recursive foo I get a permission denied
message for each subdirectory of the current directory. I.e.:
<p>[jay AT YEMAYA grep-2.4] grep --recursive CONTEXT_DEBUGGER *
<br>grep: bootstrap: Permission denied
<br>grep: djgpp: Permission denied
<br>(and so on for each and every subdir)...
<p>Grep works fine non-recursively. I have set up both /etc/group (mkgroup
-l > group) and /etc/passwd (mkpasswd -l > passwd). The directory in question
looks like (minus non-directories):
<p><tt>drwxr-xr-x&nbsp;&nbsp; 6 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
81920 May&nbsp; 5 12:35 bfd/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 3 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
20480 Apr&nbsp; 7&nbsp; 1999 config/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 2 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
4096 May&nbsp; 5 12:33 etc/</tt>
<br><tt>drwxr-xr-x&nbsp; 12 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
114688 May&nbsp; 5 12:36 gdb/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 2 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0 May&nbsp; 5 12:29 i686-pc-cygwin32/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 9 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
8192 Apr&nbsp; 7&nbsp; 1999 include/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 2 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
12288 May&nbsp; 5 12:33 intl/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 3 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
24576 May&nbsp; 5 12:33 libiberty/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 2 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
8192 May&nbsp; 5 12:35 mmalloc/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 4 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
24576 May&nbsp; 5 12:35 opcodes/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 6 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
20480 May&nbsp; 5 12:35 readline/</tt>
<br><tt>drwxr-xr-x&nbsp; 21 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
4096 May&nbsp; 5 12:32 sim/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 3 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
4096 Apr&nbsp; 7&nbsp; 1999 texinfo/</tt>
<br><tt>drwxr-xr-x&nbsp;&nbsp; 7 jay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; None&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
4096 May&nbsp; 5 12:33 utils/</tt>
<p>One curiousity is trying to chown jay.Users * changed nothing.
<p>Also, I am curious as to what setting the CYGWIN=ntsec environment setting
really does. I haven't been able to find too much about this. I would appreciate
any pointers about how permissions work in cygwin.
<p>Thanks and regards,
<br>Jay Bromley</html>

--------------17459AA74F90FD64E3E9C372--

- Raw text -


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