我正在使用curlftpfs在Kubuntu 12.04 64位本地挂载一个远程FTP目录。
我在我的/etc/fstab中有以下条目:
curlftpfs#ftp_user:ftp_password@ftp_server /mnt/nimh fuse ro,noexec,nosuid,nodev,noauto,user,allow_other,uid=1000,gid=1000 0 0我使用以下内容在/mnt中创建了目录:
|-> ll /mnt
total 4.0K
drwxrwxr-x 2 jim fuse 4.0K Jan 6 09:56 nimh/我的用户也属于fuse组:
uid=1000(jim) gid=1000(jim) groups=1000(jim),27(sudo),105(fuse)我可以手动挂载,而不需要发出任何问题,但是/mnt会更改为:
|-> mount /mnt/nimh
|-> ll /mnt
total 0
drwxr-xr-x 1 jim jim 1.0K Dec 31 1969 nimh/但是,当我试图执行/mnt/nimh时,我会收到:
umount: /mnt/nimh mount disagrees with the fstabMy /etc/mtab如下所示:
curlftpfs#ftp://ftp_user:ftp_password@ftp_server/ /mnt/nimh fuse ro,noexec,nosuid,nodev,allow_other,user=jim 0 0如果我这样做的话,我可以在没有问题的情况下对文件系统进行汇总。你知不知道我错过了什么才能不需要使用sudo就能卸下坐骑?
发布于 2013-06-25 21:13:56
尝试fusermount卸载文件系统:
fusermount -u /mnt/nimh发布于 2015-06-21 19:09:27
我为shhfs找到了一个解决方案:https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/99437/comments/33
只需在/etc/fstab中的选项中添加另一个fsname=XXX参数,其中XXX是行的第一个单词,例如:
curlftpfs#ftp://ftp_user:ftp_password@ftp_server/ /mnt/nimh fuse ro,noexec,nosuid,nodev,allow_other,user=jim,fsname=curlftpfs#ftp://ftp_user:ftp_password@ftp_server/ 0 0这为我做了技巧,我可以安装和卸载ftp通过尼莫/纳蒂鲁斯作为一个用户。
https://askubuntu.com/questions/260296
复制相似问题