centos7 encfs_CentOS 6上的encfs无法以普通用户身份挂载

Encfs works with root users on CentOS 6 but fails for normal users, unlike CentOS 7 where it functions smoothly. The solution involves adding users to the 'fuse' group to enable FUSE usage, a requirement for encfs." 131945291,5584369,PyTorch深度学习常用函数详解,"['深度学习', 'PyTorch', '张量', '数据处理']
摘要由CSDN通过智能技术生成

centos7 encfs

On CentOS 7, using a normal user, encfs works just well.

在CentOS 7上,使用普通用户, encfs可以很好地工作。

On CentOS 6, using the root user, encfs works.

在CentOS 6上,使用root用户可以使用encfs

However, the problem is, on CentOS 6, using a normal user account, encfs does not work as on CentOS 7.

但是,问题是,在使用普通用户帐户的CentOS 6上, encfs无法像在CentOS 7上那样工作。

$ encfs -s ~/t/.enc ~/t/enc
EncFS Password: 
fuse: failed to exec fusermount: Permission denied
fuse failed.  Common problems:
 - fuse kernel module not installed (modprobe fuse)
 - invalid options -- see usage message

As the root user can mount encfs directory, the needed tools/modules should already be there.

由于root用户可以挂载encfs目录,因此所需的工具 / modules应该已经存在。

What’s the reason and how to fix it?

是什么原因以及如何解决?

On CentOS 6 (and some old systems too), to make a user be able to use FUSE which is used by encfs, you need to add the user to the “fuse” group.

在CentOS 6(以及一些旧系统 )上,要使用户能够使用encfs使用的FUSE,需要将用户添加到“ fuse”组中。

For example, to make user user1 to use encfs, you can do

例如,要使用户user1使用encfs,可以执行

# usermod -G fuse user1
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/encfs-on-centos-6-cant-mount-as-normal-user/

centos7 encfs

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值