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