简体   繁体   English

在UNIX NetworkShare上从Windows创建硬链接/符号链接

[英]Create hardlink/symlink from windows on unix networkshare

Is it possible to create a hardlink/symlink on networkshare that is on linux but from windows environemnt which has access to that share? 是否可以在Linux上但可以访问该共享的Windows环境中在networkshare上创建硬链接/符号链接?

Lets say that I have a file on networkshare: 可以说我在networkshare上有一个文件:

\\share\\test.txt \\ share \\ test.txt

and I want to create hardlink (or symlink) here: 我想在这里创建硬链接(或符号链接):

\\share\\links\\test.txt \\ share \\ links \\ test.txt

But I can only use python which is installed on windows machine with access to that share. 但是我只能使用安装在Windows计算机上的python来访问该共享。

Thanks for any help. 谢谢你的帮助。

Not over cifs (windows share) protocol. 不超过CIF(Windows共享)协议。 From the windows machine viewpoint the symlinks don't even exist, they appear and behave as normal files, and windows has no way to create or even differentiate them when using this protocol. 从Windows机器的角度来看,符号链接甚至不存在,它们以正常文件的形式出现和表现,并且Windows在使用此协议时无法创建甚至区分它们。

You could use paramiko to automate a ssh session to the linux machine and create the symlinks using this method. 您可以使用paramiko将与Linux机器的ssh会话自动化,并使用此方法创建符号链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM