Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: multipart/alternative; boundary="------------17459AA74F90FD64E3E9C372" --------------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 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--