知乎专栏 |
安装
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