- 论坛徽章:
- 0
|
原文连接:
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 |
|