From the bash shell, sitting in the C:\Windows\System32\drivers
directory, when I run "ls" I can see about 6 files/dirs total. The "etc"
directory is mysteriously missing from the output of "ls", but present
in the output of "ld -ld etc". Strange that I can't list it with "ls",
but I can list it with "ls -ld".
Same run normally or as administrator, CYGWIN env var unset.
Even more strange, the windows commands attrib and cacls (launched from
bash) can't find the "etc" directory. When run from cmd.exe (not as
administrator) it can list "etc", and attrib and cacls works on "etc".
Strange that windows commands can't see things launched from bash.exe,
but can see things launched from cmd.exe.
Are either of these bugs, or is some mysterious feature of Windows
exhibiting itself? I ran into this trying to find the "hosts" file (in
this mysterious drivers dir under etc) and thinking it didn't exist,
then figuring out this oddness.
===BASH===
$ cd /c/Windows/System32/drivers
$ ls
./ 1025_ACER_ACER_AM3470.MRK* gm.dls* MOD01SET0500Z600GT.enc*
wimmount.sys*
../ en-US/ gmreadme.txt* UMDF/
$ ls -ld etc
drwxrwx---+ 1 ???????? ???????? 0 Jul 13 2009 etc/
$ ls etc
./ ../ hosts* lmhosts.sam* networks* protocol* services*
$ cacls etc
The system cannot find the file specified.
$ attrib etc
File not found - etc
$ getfacl etc
# file: etc
# owner: ????????
# group: ????????
user::rwx
group::rwx
other:---
mask:rwx
default:group:????????:rwx
group:SYSTEM:rwx
default:group:SYSTEM:rwx
group:root:rwx
default:group:root:rwx
group:Users:r-x
default:group:Users:r-x
default:user::rwx
default:group::rwx
default:other:---
default:mask:rwx
===CMD.EXE===
C:\Windows\System32\drivers>dir
Volume in drive C is [CENSORED]
Volume Serial Number is [CENSORED]
Directory of C:\Windows\System32\drivers
12/12/2013 07:46 PM <DIR> .
12/12/2013 07:46 PM <DIR> ..
07/13/2009 07:06 PM 68,096 1394bus.sys
11/20/2010 10:23 PM 229,888 1394ohci.sys
11/20/2010 10:23 PM 334,208 acpi.sys
11/20/2010 10:23 PM 12,800 acpipmi.sys
07/13/2009 08:52 PM 491,088 adp94xx.sys
07/13/2009 08:52 PM 339,536 adpahci.sys
07/13/2009 08:52 PM 182,864 adpu320.sys
...
07/13/2009 10:20 PM <DIR> etc
...
07/25/2012 09:26 PM 198,656 WUDFRd.sys
319 File(s) 70,167,061 bytes
6 Dir(s) 373,860,376,576 bytes free
C:\Windows\System32\drivers>dir etc
Volume in drive C is [CENSORED]
Volume Serial Number is [CENSORED]
Directory of C:\Windows\System32\drivers\etc
07/13/2009 10:20 PM <DIR> .
07/13/2009 10:20 PM <DIR> ..
06/10/2009 04:00 PM 824 hosts
06/10/2009 04:00 PM 3,683 lmhosts.sam
06/10/2009 04:00 PM 407 networks
06/10/2009 04:00 PM 1,358 protocol
06/10/2009 04:00 PM 17,463 services
5 File(s) 23,735 bytes
2 Dir(s) 373,860,319,232 bytes free
C:\Windows\System32\drivers>cacls etc
C:\Windows\System32\drivers\etc NT SERVICE\TrustedInstaller:F
NT SERVICE\TrustedInstaller:(CI)(IO)F
NT AUTHORITY\SYSTEM:C
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
BUILTIN\Administrators:C
BUILTIN\Administrators:(OI)(CI)(IO)F
BUILTIN\Users:R
BUILTIN\Users:(OI)(CI)(IO)(special access:)
GENERIC_READ
GENERIC_EXECUTE
CREATOR OWNER:(OI)(CI)(IO)F
C:\Windows\System32\drivers>attrib etc
C:\Windows\System32\drivers\etc
--
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