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]

1.5.21: file utils (ls, sed) do not read NTFS permissions on second NTFS IDE hard drive


cygcheck output attached.

Environment is Windows XP SP2, fully patched as of yesterday.
I used to have CopSSH installed; I decided to move to full cygwin and
sshd.  I uninstalled CopSSh, deleted all files related to it, removed
all cygwin and sshd related registry keys, rebooted and verified no
cygwin1.dll present anywhere on the system.

Installed via setup.

mkgroup and mkpasswd and post-install scripts appear to have run
successfully.  All cygwin programs appear to function properly when
manipulkating files on the C: drive.

However.

$ cd /cygdrive/d/shareaza/lib/books/fiction/deryni/

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction/deryni
$ ls -l
total 9316
----------+ 1 ???????? ????????  575066 Jul 17 07:13
Camber_01_-_Camber_of_Culdi.txt
----------+ 1 ???????? ????????  814471 Jul 17 07:13
Camber_02_-_Saint_Camber.txt
----------+ 1 ???????? ???????? 1127615 Jul 17 07:13
Camber_03_-_Camber_the_Heretic.txt
----------+ 1 ???????? ????????  444251 Jul 17 07:13
Deryni_01_-_Deryni_Rising.txt
----------+ 1 ???????? ????????  516813 Jul 17 07:14
Deryni_02_-_Deryni_Checkmate.txt
----------+ 1 ???????? ????????  778776 Jul 17 07:14 Deryni_03_-_High_Deryni.txt
----------+ 1 ???????? ????????  908432 Jul 17 07:14
Heretic_01_-_Harrowing_of_Gwynedd.txt
----------+ 1 ???????? ???????? 1118049 Jul 17 07:14
Heretic_02_-_King_Javan_s_Year.txt
----------+ 1 ???????? ????????  945530 Jul 17 07:14
Heretic_03_-_Bastard_Prince.txt
----------+ 1 ???????? ????????  679969 Jul 17 07:14
Kelson_01_-_The_Bishops_Heir.txt
----------+ 1 ???????? ????????  683546 Jul 17 07:14
Kelson_02_-_King_s_Justice.txt
----------+ 1 ???????? ????????  925565 Jul 17 07:15
Kelson_03_-_Quest_for_St_Camber.txt

(Yes, I own real copies of all of these.  Getting them off shareaza
was easier than trying to OCR them myself.)

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction/deryni
$ for i in * ;do cacls $i;done
d:\shareaza\lib\books\fiction\deryni\Camber_01_-_Camber_of_Culdi.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F

NT AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Camber_02_-_Saint_Camber.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F
                                                                 NT
AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Camber_03_-_Camber_the_Heretic.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F

NT AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Deryni_01_-_Deryni_Rising.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F
                                                                  NT
AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Deryni_02_-_Deryni_Checkmate.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F

NT AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Deryni_03_-_High_Deryni.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F
                                                                NT
AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Heretic_01_-_Harrowing_of_Gwynedd.txt
BUILTIN\Administrators:F


LUCIFER\chrisd:F


NT AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Heretic_02_-_King_Javan_s_Year.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F

NT AUTHORITY\SYSTEM:F

$

LUCIFER\chrisd:F

NT AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Kelson_01_-_The_Bishops_Heir.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F

NT AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Kelson_02_-_King_s_Justice.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F
                                                                   NT
AUTHORITY\SYSTEM:F

d:\shareaza\lib\books\fiction\deryni\Kelson_03_-_Quest_for_St_Camber.txt
BUILTIN\Administrators:F

LUCIFER\chrisd:F

NT AUTHORITY\SYSTEM:F

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction/deryni
$ cp Deryni_01_-_Deryni_Rising.txt dr.txt

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction/deryni
$ sed -i -e '/Deryni/d'  dr.txt
sed: can't read dr.txt: Permission denied

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction/deryni
$ ls -la
total 9752
drwxrwx---+  2 chrisd   Administrators       0 Oct 13 18:53 .
d---------+ 39 ???????? ????????             0 Sep 26 07:03 ..
----------+  1 ???????? ????????        575066 Jul 17 07:13
Camber_01_-_Camber_of_Culdi.txt
----------+  1 ???????? ????????        814471 Jul 17 07:13
Camber_02_-_Saint_Camber.txt
----------+  1 ???????? ????????       1127615 Jul 17 07:13
Camber_03_-_Camber_the_Heretic.txt
----------+  1 ???????? ????????        444251 Jul 17 07:13
Deryni_01_-_Deryni_Rising.txt
----------+  1 ???????? ????????        516813 Jul 17 07:14
Deryni_02_-_Deryni_Checkmate.txt
----------+  1 ???????? ????????        778776 Jul 17 07:14
Deryni_03_-_High_Deryni.txt
----------+  1 ???????? ????????        908432 Jul 17 07:14
Heretic_01_-_Harrowing_of_Gwynedd.txt
----------+  1 ???????? ????????       1118049 Jul 17 07:14
Heretic_02_-_King_Javan_s_Year.txt
----------+  1 ???????? ????????        945530 Jul 17 07:14
Heretic_03_-_Bastard_Prince.txt
----------+  1 ???????? ????????        679969 Jul 17 07:14
Kelson_01_-_The_Bishops_Heir.txt
----------+  1 ???????? ????????        683546 Jul 17 07:14
Kelson_02_-_King_s_Justice.txt
----------+  1 ???????? ????????        925565 Jul 17 07:15
Kelson_03_-_Quest_for_St_Camber.txt
----------   1 chrisd   Administrators  444251 Oct 13 18:53 dr.txt

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction/deryni
$ cacls dr.txt
d:\shareaza\lib\books\fiction\deryni\dr.txt LUCIFER\chrisd:(special access:)
                                                          STANDARD_RIGHTS_ALL
                                                          DELETE
                                                          READ_CONTROL
                                                          WRITE_DAC
                                                          WRITE_OWNER
                                                          SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                          FILE_WRITE_EA

FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:) READ_CONTROL FILE_READ_EA

FILE_READ_ATTRIBUTES

                                           Everyone:(special access:)
                                                    READ_CONTROL
                                                    FILE_READ_EA
                                                    FILE_READ_ATTRIBUTES

Checking in the Explorer GUI confirms that all "normal" file
permission are gone (RWXDPO) and only the extended security attributes
are set.

I have tried resetting Windows permissions on this subtree by forcing
all subfolders to re-inherit permissions (set to Administrators,
SYSTEM, and chrisd all Full Control).  I have tried doing the same on
D:\ to the whole drive. I have tried manually resetting the
permissions on the files individually.  In each case, if the cygwin
program can read the file, any output file it produces gets its
permissions mangled in the above fashion (all normal perms gone, all
extended perms set)

I have run chkdsk on D: (no errors found).  I have checked the drive
in Disk Manager (Healthy, no errors).  Nothing in any of the event
logs.

Even weirder:

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction
$ cp -r deryni /cygdrive/d
cp: cannot open `deryni/dr.txt' for reading: Permission denied

chrisd@lucifer /cygdrive/d/shareaza/lib/books/fiction
$ cd /cygdrive/d

chrisd@lucifer /cygdrive/d
$ ls -la
total 828
drwxrwx---+ 13 Administrators SYSTEM              0 Oct 13 19:02 .
dr-xr-xr-x   1              0 root                0 Dec 31  1969 ..
d---------+  9 ????????       ????????            0 Oct 12 21:34 Downloads
drwx------+  3 chrisd         None                0 Sep  1 00:08 RECYCLER
d---------+  7 ????????       ????????            0 Jul 19 23:45 SVNRepository
d---rwx---+  2 Administrators SYSTEM              0 Aug  4 20:59
System Volume Information
d---------+  3 ????????       ????????            0 Oct 12 18:35 backup
drwxr-x---+  2 chrisd         Administrators      0 Oct 13 19:02 deryni
d---------+  6 ????????       ????????            0 Oct 13 00:29 iso
-rwxrwx---+  1 Administrators SYSTEM         499712 Mar 18  2003 msvcp71.dll
-rwxrwx---+  1 Administrators SYSTEM         348160 Feb 21  2003 msvcr71.dll
d---------+  3 ????????       ????????            0 Oct 12 19:09 scratch
d---------+  4 ????????       ????????            0 Jul  3 11:21 shareaza
d---------+  7 ????????       ????????            0 Oct  9 20:44 src
d---------+  3 ????????       ????????            0 Oct  9 23:24 torrent-drop

chrisd@lucifer /cygdrive/d
$ cd deryni/

chrisd@lucifer /cygdrive/d/deryni
$ ls -la
total 9316
drwxr-x---+  2 chrisd         Administrators       0 Oct 13 19:02 .
drwxrwx---+ 13 Administrators SYSTEM               0 Oct 13 19:02 ..
----------   1 chrisd         Administrators  575066 Oct 13 19:02
Camber_01_-_Camber_of_Culdi.txt
----------   1 chrisd         Administrators  814471 Oct 13 19:02
Camber_02_-_Saint_Camber.txt
----------   1 chrisd         Administrators 1127615 Oct 13 19:02
Camber_03_-_Camber_the_Heretic.txt

----------   1 chrisd         Administrators  444251 Oct 13 19:02
Deryni_01_-_Deryni_Rising.txt
----------   1 chrisd         Administrators  516813 Oct 13 19:02
Deryni_02_-_Deryni_Checkmate.txt
----------   1 chrisd         Administrators  778776 Oct 13 19:02
Deryni_03_-_High_Deryni.txt
----------   1 chrisd         Administrators  908432 Oct 13 19:02
Heretic_01_-_Harrowing_of_Gwynedd.
txt
----------   1 chrisd         Administrators 1118049 Oct 13 19:02
Heretic_02_-_King_Javan_s_Year.txt

----------   1 chrisd         Administrators  945530 Oct 13 19:02
Heretic_03_-_Bastard_Prince.txt
----------   1 chrisd         Administrators  679969 Oct 13 19:02
Kelson_01_-_The_Bishops_Heir.txt
----------   1 chrisd         Administrators  683546 Oct 13 19:02
Kelson_02_-_King_s_Justice.txt
----------   1 chrisd         Administrators  925565 Oct 13 19:02
Kelson_03_-_Quest_for_St_Camber.tx

chrisd@lucifer /cygdrive/d/deryni
$ cp Deryni_01_-_Deryni_Rising.txt dr.txt
cp: cannot open `Deryni_01_-_Deryni_Rising.txt' for reading: Permission denied

chrisd@lucifer /cygdrive/d/deryni
$ for i in * ;do cacls $i;done
d:\deryni\Camber_01_-_Camber_of_Culdi.txt LUCIFER\chrisd:(special access:)
                                                        STANDARD_RIGHTS_ALL
                                                        DELETE
                                                        READ_CONTROL
                                                        WRITE_DAC
                                                        WRITE_OWNER
                                                        SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                        FILE_WRITE_EA
                                                        FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:) READ_CONTROL FILE_READ_EA

FILE_READ_ATTRIBUTES

                                         Everyone:(special access:)
                                                  READ_CONTROL
                                                  FILE_READ_EA
                                                  FILE_READ_ATTRIBUTES


d:\deryni\Camber_02_-_Saint_Camber.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE STANDARD_RIGHTS_REQUIRED FILE_WRITE_EA FILE_WRITE_ATTRIBUTES

                                      BUILTIN\Administrators:(special access:)
                                                             READ_CONTROL
                                                             FILE_READ_EA

FILE_READ_ATTRIBUTES

                                      Everyone:(special access:)
                                               READ_CONTROL
                                               FILE_READ_EA
                                               FILE_READ_ATTRIBUTES


d:\deryni\Camber_03_-_Camber_the_Heretic.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                           FILE_WRITE_EA

FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:)


READ_CONTROL
                                                                   FILE_READ_EA

FILE_READ_ATTRIBUTES

                                            Everyone:(special access:)
                                                     READ_CONTROL
                                                     FILE_READ_EA
                                                     FILE_READ_ATTRIBUTES


d:\deryni\Deryni_01_-_Deryni_Rising.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE STANDARD_RIGHTS_REQUIRED FILE_WRITE_EA FILE_WRITE_ATTRIBUTES

                                       BUILTIN\Administrators:(special access:)
                                                              READ_CONTROL
                                                              FILE_READ_EA

FILE_READ_ATTRIBUTES

                                       Everyone:(special access:)
                                                READ_CONTROL
                                                FILE_READ_EA
                                                FILE_READ_ATTRIBUTES


d:\deryni\Deryni_02_-_Deryni_Checkmate.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                         FILE_WRITE_EA
                                                         FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:) READ_CONTROL FILE_READ_EA

FILE_READ_ATTRIBUTES

                                          Everyone:(special access:)
                                                   READ_CONTROL
                                                   FILE_READ_EA
                                                   FILE_READ_ATTRIBUTES


d:\deryni\Deryni_03_-_High_Deryni.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE STANDARD_RIGHTS_REQUIRED FILE_WRITE_EA FILE_WRITE_ATTRIBUTES

                                     BUILTIN\Administrators:(special access:)
                                                            READ_CONTROL
                                                            FILE_READ_EA

FILE_READ_ATTRIBUTES

                                     Everyone:(special access:)
                                              READ_CONTROL
                                              FILE_READ_EA
                                              FILE_READ_ATTRIBUTES


d:\deryni\Heretic_01_-_Harrowing_of_Gwynedd.txt LUCIFER\chrisd:(special access:)


STANDARD_RIGHTS_ALL
                                                              DELETE
                                                              READ_CONTROL
                                                              WRITE_DAC
                                                              WRITE_OWNER
                                                              SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                              FILE_WRITE_EA

FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:)


READ_CONTROL

FILE_READ_EA

FILE_READ_ATTRIBUTES

                                               Everyone:(special access:)
                                                        READ_CONTROL
                                                        FILE_READ_EA
                                                        FILE_READ_ATTRIBUTES


d:\deryni\Heretic_02_-_King_Javan_s_Year.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                           FILE_WRITE_EA

FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:)


READ_CONTROL
                                                                   FILE_READ_EA

FILE_READ_ATTRIBUTES

                                            Everyone:(special access:)
                                                     READ_CONTROL
                                                     FILE_READ_EA
                                                     FILE_READ_ATTRIBUTES


d:\deryni\Heretic_03_-_Bastard_Prince.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                        FILE_WRITE_EA
                                                        FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:) READ_CONTROL FILE_READ_EA

FILE_READ_ATTRIBUTES

                                         Everyone:(special access:)
                                                  READ_CONTROL
                                                  FILE_READ_EA
                                                  FILE_READ_ATTRIBUTES


d:\deryni\Kelson_01_-_The_Bishops_Heir.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                         FILE_WRITE_EA
                                                         FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:) READ_CONTROL FILE_READ_EA

FILE_READ_ATTRIBUTES

                                          Everyone:(special access:)
                                                   READ_CONTROL
                                                   FILE_READ_EA
                                                   FILE_READ_ATTRIBUTES


d:\deryni\Kelson_02_-_King_s_Justice.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                       FILE_WRITE_EA
                                                       FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:) READ_CONTROL FILE_READ_EA

FILE_READ_ATTRIBUTES

                                        Everyone:(special access:)
                                                 READ_CONTROL
                                                 FILE_READ_EA
                                                 FILE_READ_ATTRIBUTES


d:\deryni\Kelson_03_-_Quest_for_St_Camber.txt LUCIFER\chrisd:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE

STANDARD_RIGHTS_REQUIRED
                                                            FILE_WRITE_EA

FILE_WRITE_ATTRIBUTES


BUILTIN\Administrators:(special access:)


READ_CONTROL

FILE_READ_EA

FILE_READ_ATTRIBUTES

                                             Everyone:(special access:)
                                                      READ_CONTROL
                                                      FILE_READ_EA
                                                      FILE_READ_ATTRIBUTES


The only thing I can conclude is that the D:\ permissions or the MFT is hopelessly corrupted on this drive in such a way that all Windows programs work flawlessly but cygwin gets horribly confused. Which seems unlikely.

Anyone have any idea what's going on here?

--
Chris Doherty  --  cpdohert at gmail dot com
"In our time, it has generally been thought bad and unhealthy to
'repress' inhibitions. Spend a few days inside the new world of
personal blogs, however, and one might want to revisit the repression
issue.
~ Dan Henninger

Attachment: cygcheck.out
Description: Binary data

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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