无法将-o allow_other与sshfs一起使用(在fuse.conf中启用了选项)


20

我的/etc/fuse.conf档案中有以下内容:

# Set the maximum number of FUSE mounts allowed to non-root users.                       
# The default is 1000.                                                                   
#                                                                                        
#mount_max = 1000                                                                        

# Allow non-root users to specify the 'allow_other' or 'allow_root'                      
# mount options.                                                                         
#                                                                                        
user_allow_other    

但是当我尝试使用该选项挂载远程路径时allow_other

> sshfs name@server:/remote/path /local/path -o allow_other

我得到:

fusermount: failed to open /etc/fuse.conf: Permission denied
fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf

我进行了三重检查,并且在上面复制时,该选项user_allow_other在我的注释中未注释fuse.conf

我也执行了sudo adduser my_user_name fuse(虽然不确定是否需要执行此操作),但是仍然遇到相同的问题。

为什么无法/etc/fuse.conf正确解析文件?

Answers:


22

更好的解决方案可能是将用户添加到保险丝组中,即:

addgroup <username> fuse

5
然后注销并重新登录!
HDave 2013年

1
并将现有用户添加为第二组熔断器:usermod -a -G existing_user fuse#以防addgroup系统中不存在
Grzegorz Wierzowiecki,2016年

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.