链接到 samba 共享
我有一个带有桑巴舞的服务器。用户已经从中获得了份额。 我想从浏览器使用标签创建链接到此共享上的文件。 它是如何做到的? 我尝试:
<a href="file://///sambaserver/user1/file1.mp3">file1.mp3</a>
我尝试将共享挂载到 Windows 并链接到此共享:
<a href="file:///user1/file1.mp3">file1.mp3</a>
我尝试像磁盘一样挂载共享并尝试访问:
<a href="file://z:/file1.mp3">file1.mp3</a>
是否可以链接到 samba 共享? 具有 samba 共享链接的文件位于本地服务器上。 http://sambaserver/index.php
I have server with samba. Users have got share in it.
I want make link from browser use tag to file on this share.
How it make it?
I try:
<a href="file://///sambaserver/user1/file1.mp3">file1.mp3</a>
I try mount share to windows and make link to this share:
<a href="file:///user1/file1.mp3">file1.mp3</a>
And I try mount share like a disk and try to access:
<a href="file://z:/file1.mp3">file1.mp3</a>
Is it possible to make link to samba share?
File which have link to samba share locate on local server.
http://sambaserver/index.php
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
file:// 方案始终指向用户的计算机,而不是服务器。
使用上面的示例,您将 samba 共享安装为 z: 驱动器,您需要将以下内容添加到您的 httpd.conf 文件中:
然后您的链接将如下所示:
这是关于 上该主题的论坛帖子Linux作为参考:
The file:// scheme always points at the user's computer, not the server.
Using your example above where you have the samba share mounted as the z: drive you'd need to add the following to your httpd.conf file:
Then your link would look like this:
Here's a forum posting about the topic on Linux as a reference: http://www.linuxquestions.org/questions/linux-newbie-8/apache-alias-samba-share-to-a-windows-box-546891/
我认为您可以使用 IP 地址在电子邮件中进行这样的链接。它在其他应用程序中对我有用,但我没有使用过电子邮件。我在使用我们的 HP UNIX 版本的 NT 别名地址(如上面的 sambaserver)时遇到了问题。它似乎不适用于 HP UNIX。我看到的最大问题是身份验证问题。 Windows 和 UNIX 身份验证是完全独立的,在我们公司由不同的组处理,这些组彼此不通信并且具有不同的策略。令人怀疑的是,您是否能够允许匿名者在您的 Samba 盒子上执行任何操作。我可能需要做的,我过去所做的,是将我的文件放到对所有人开放的Windows共享上(他们只能删除文件而不能读取它们),然后使用我的Windows用户ID创建一个批处理文件拿起它们并将它们放在 UNIX 盒子上。这会起作用。
I would think you could link like this in an email using the IP address. it has worked for me in other applications, but I've not used email. I've had issues using the NT alias for the address like sambaserver above with our version of HP UNIX. It, just doesn't seem to work with HP UNIX. The big issue I see, is the authentication issue. Windows and UNIX authentication are entirely separate and in our company handled by different groups which don't talk to each other and have different policies. It's doubtful that you will be able to have anonymous allowed to do anything on your Samba box. What I will probably have to do, which I have done in the past, is drop my files on a windows share open to everyone( they can only drop files and can't read them) and then have a batch file with my windows userid pick them up and drop them on the UNIX box. This will work.