delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:content-type:content-transfer-encoding; q=dns; s=default; b=BLa | |
XbHuAogKdgGFjE6LpjotO69GiuYtfE9ks0ZRDbj5vjgEN3n2eCGoM+V/2pwi3bfl | |
akbnqZjBUbf7Z5ptTrGXMkBu2wzEzDzXlTv+z1mlckdbYCz5rKNyyJEMUtaDMdJ5 | |
uUuizzII5IZvd3UuWvl/7NR44VhmkT2xXJIkDO5U= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:mime-version:to:subject | |
:content-type:content-transfer-encoding; s=default; bh=hshFqVXP9 | |
KxUO61IdreYgf1V6bo=; b=JSJvUjJZdkJ8r0ft/4CRr4T+/YLDMHf7GIHgDPEcW | |
Aw6CN1MI6UiGpmQJmmQf0LhJMlO/KjkbFmZ+PWbWQLeuGkpgx8owURSxYPwulRuI | |
e0JHJP2hqG9mJig0YKBvRqxpHsN8EmCtcZZeVYr8PjZXgpgikiyYDZbHsyf6exl7 | |
Nw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=1.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-qc0-f176.google.com |
X-Received: | by 10.224.57.68 with SMTP id b4mr33511015qah.34.1388074273312; Thu, 26 Dec 2013 08:11:13 -0800 (PST) |
Message-ID: | <52BC5521.6040402@gmail.com> |
Date: | Thu, 26 Dec 2013 11:11:13 -0500 |
From: | Max Polk <maxpolk AT gmail DOT com> |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
MIME-Version: | 1.0 |
To: | Cygwin list <cygwin AT cygwin DOT com> |
Subject: | C:\Windows\System32\drivers oddness |
X-IsSubscribed: | yes |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |