我将网页打印到文件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
$
答案 0 :(得分:2)
使用上一个cygwin快照
https://cygwin.com/ml/cygwin/2018-02/msg00162.html
https://cygwin.com/ml/cygwin/2018-02/msg00228.html
它对该问题进行了更正