Cygwin目录扫描由本机工具

时间:2018-02-21 17:42:12

标签: cygwin

我将网页打印到文件c:\ temp \ FILE.ps,它显示在CMD目录和icacls中。它没有在Cygwin bash ls中显示,尽管icacls显示与旁边的可见文件相同的权限。为什么呢?

Windows 7 Enterprise 64位。

Symantec Endpoint Protection 12.1.6。

Cygwin 2.10.0-1。

包括下面目录扫描中遗漏文件的示例。自动完成功能也会忽略此文件。

USER@HOST /cygdrive/c/Users/USER
$ ls -la FILE.ps
-rw-r--r-- 1 USER Domain Users 800271 Feb 21 11:05 FILE.ps

$ getfacl FILE.ps
# file: FILE.ps
# owner: USER
# group: Domain Users
user::rw-
group::r--
other:r--

USER@HOST /cygdrive/c/Users/USER
$ ls -la *.ps
ls: cannot access '*.ps': No such file or directory

USER@HOST /cygdrive/c/Users/USER
$ getfacl .
# file: .
# owner: USER
# group: Domain Users
user::rwx
group::r-x
other:r-x

USER@HOST /cygdrive/c/Users/USER
$ icacls FILE.ps
FILE.ps                     DOMAIN\USER:(F)
                            NT AUTHORITY\SYSTEM:(I)(F)
                            BUILTIN\Administrators:(I)(F)
                            DOMAIN\USER:(I)(F)

Successfully processed 1 files; Failed processing 0 files

USER@HOST /cygdrive/c/Users/USER
$ ls -al *.pdf
[...]
-rw-r--r-- 1 USER Domain Users 284295 Feb 21 12:44  FILE.pdf
[...]

USER@HOST /cygdrive/c/Users/USER
$ icacls FILE.pdf
FILE.pdf                     NT AUTHORITY\SYSTEM:(I)(F)
                             BUILTIN\Administrators:(I)(F)
                             DOMAIN\USER:(I)(F)

Successfully processed 1 files; Failed processing 0 files


USER@HOST /cygdrive/c/Users/USER
$ getfacl FILE.pdf
# file: FILE.pdf
# owner: USER
# group: Domain Users
user::rw-
group::r--
other:r--


USER@HOST /cygdrive/c/Users/USER
$ ls -la | grep FILE.ps

USER@HOST /cygdrive/c/Users/USER
$

1 个答案:

答案 0 :(得分:2)