This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
尝试在要隐藏的文件中设置其他人可执行的位。例如:
希望有帮助。顺便说一句,如果您希望 Windows 隐藏属性应用于您的 Linux 共享,则必须在 samb.conf 文件中设置 map hide = yes。
Try setting the executable-by-others bit in the file you want hidden. For example:
Hopefully that helps. If you want the Windows hidden attribute to apply to your Linux share, by the way, you'll have to set map hidden = yes in your samb.conf file.
假设您的 Samba 共享当前在
smb.conf
中如下所示:再添加一行:
隐藏文件
指令会将所有指定文件变成不可见文件(但它们是仍然可以访问!)。 DOS“隐藏”属性应用于任何匹配的文件或目录。在上面的示例中,第 2 行文件以及所有“点”文件和所有 .xls 文件都被明确命名为隐藏文件(.doc 和 .pdf)。
使用
隐藏文件
的注意事项:Assuming your Samba share currently looks like this in
smb.conf
:Add one more line to it:
The
hide files
instruction will turn all denoted files into invisible ones (but they are still accessible!). The DOS 'hidden' attribute is applied to any files or directories which match.In above example line 2 files are explicitely named (a .doc and a .pdf) to be hidden, as well as all 'dot'-files and all .xls files.
Notes on using
hide files
:你可以只使用 setmode filename +h
you can just use setmode filename +h