ossfs常见配置错误

以下问题出现在非root用户下

执行echo ××××> /etc/passwd-ossfs  bash: /etc/passwd-ossfs: Permission denied
使用sudo vim 在/etc下新建就可以,将echo等内容拷贝进去
 
 

ossfs: credentials file /etc/passwd-ossfs should not have others permissions.      should not have group permissions

chmod 640 /etc/passwd-ossfs

 

could not determine how to establish security credentials

是因为没有找到passwd-ossfs文件,如果在/etc/passwd-ossfs文件已经存在,把它的所有者改成当前用户如www:
sudo chown www /etc/passwd-ossfs
 
 
配置其他路径passwd-ossfs文件
ossfs my-bucket  my-mount-point -ourl=my-oss-endpoint  -opasswd_file=/home/work/passwd-ossfs

转载于:https://www.cnblogs.com/znsongshu/p/7801939.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值