免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1373 | 回复: 0
打印 上一主题 下一主题

Mount a FTP share in Ubuntu as a folder [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-02 19:51 |只看该作者 |倒序浏览

                                                                                                原文连接:
http://www.compdigitec.com/labs/2008/12/07/mount-a-ftp-share-in-ubuntu-as-a-folder/comment-page-1/#comment-4260
部分摘抄:
There are several GUI interfaces for FTP on Linux, such as gFTP and FileZilla. But what if you need to use the powerful Linux command lines on an FTP share? This article will help you mount a FTP share as a folder so you can use your regular Linux tools (grep,nano,mv,rm,ls,etc.) on a FTP share. This can be accomplished using cURLFTPfs.
   1. If you don’t already have curlftpfs installed, install it with sudo apt-get install curlftpfs.
   2. Replacing the appropriate settings, mount the share with sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:password@your.ftpserver.here /media/ftpmountedhere. Make sure that the location to mount to is already created and readable and writable by all users.
   3. To make this permanent, add it to the end of /etc/init.d/rc.local to be able to access the share after reboot.
大概翻译:
curlftpfs 是一个linux下的软件,用于将网络上的ftp共享目录挂载到本地文件夹。命令格式为:
sudo curlftpfs -o umask=0777,uid=1000,gid=1000,allow_other ftp://username:password@your.ftpserver.here /media/ftpmountedhere.
curlftpfs 有很多参数,包括设定读取权限,超时等等。这里有一个例子:
curlftpfs -o umask=0022,uid=1000,gid=1000 ftp://anonymous:@172.17.144.198 newdir
即:将172.17.144.198共享的根目录映射到本地文件夹newdir,然后newdir可以像其他文件夹一样被正常使用。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/97771/showart_1984289.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP