码迷,mamicode.com
首页 > 其他好文 > 详细

ossfs常见配置错误

时间:2017-11-08 00:54:53      阅读:641      评论:0      收藏:0      [点我收藏+]

标签:code   als   没有   错误   etc   str   文件   -o   should   

以下问题出现在非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.

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

ossfs常见配置错误

标签:code   als   没有   错误   etc   str   文件   -o   should   

原文地址:http://www.cnblogs.com/znsongshu/p/7801939.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!