Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

13.15. ftp fs

安装

sudo apt-get install curlftpfs
	

挂载

sudo curlftpfs ftp://username:password@172.16.0.1 /mnt/ftp
	

卸载

sudo fusermount -u /mnt/ftp
	

权限设置

sudo curlftpfs -o rw,allow_other,uid=500,gid=500 ftp://neo:chen@172.16.1.1 /mnt/ftp
sudo curlftpfs ftp://host/sub_dir mount_point -o user="ftp_username:ftp_password", uid=user_id, gid=group_id, allow_other
	

fstab 开机自动挂载

sudo echo "curlftpfs#username:password@172.16.0.1 /mnt/ftp fuse allow_other,uid=userid,gid=groupid 0 0" >> /etc/fstab