在 samba 从 Windows 导出的 linux 目录上创建符号链接
我有以下设置:
- Linux 机器(“fooserver”)->将 /data/directory 导出为 Samba 共享
- Windows 机器 -> mounts /data/directory at j: (net use j: \\fooserver\directory)
问题是:是否可以在使用 SAMBA 导出的 linux 目录上从 Windows 创建符号链接?
谢谢!
I've the following setup:
- Linux machine ("fooserver") -> exports /data/directory as a Samba share
- Windows machine -> mounts /data/directory at j: (net use j: \\fooserver\directory)
The question is: is it possible to create a symlink from Windows on the linux directory exported with SAMBA?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的意思是从 Windows 端在共享上创建符号链接,这也是 Linux 上的(本机)文件系统(ext4?)上的符号链接,那么我说不,这是不可能的。
文件系统作为共享对 Windows 是可见的,除了那些类似于本机 Windows 服务器共享的文件系统之外,它无法识别或访问本机文件系统或其功能。提供此信息并因此允许此类操作是不可行的,因为这本质上会破坏远程(文件)系统的透明度。事实上,远程端存在哪种类型的操作系统或文件系统与客户端无关。
然而,可以从 Windows 客户端跟踪 samba 共享上的现有符号链接(即它并不真正知道它是一个链接。请参阅 此处了解更多信息)。
If you mean creating a symlink on the share from the Windows side, that is also a symlink on the (native) filesystem (ext4?) on Linux, then I say no, that is not possible.
The file system is visible to Windows as share, that bears no way to figure or access the native file system or its features - other than those that resemble a native Windows server's share. It would not be feasible to provide this information, and thus allow such operations, because that would essentially break the transparancy of the remote (file) system. As it is, it is irrelevant to the client which type of operating system or filesystem is present on the remote side.
It is however possible to follow an existing symbolic link on a samba share from the windows client (i.e. it doesn't really know it is a link. See here for further information).