S3fs-fuse: Getting Error "s3fs: could not determine how to establish security credentials"

Created on 23 Feb 2015  ·  6Comments  ·  Source: s3fs-fuse/s3fs-fuse

  1. Using an EC2 with Amazon linux
  2. A file named ".passwd-s3fs" is in $HOME
  3. The file contains one line with :
  4. Ran "chmod 600 .passwd-s3fs"
  5. libcurl version is 7.40
  6. issued command "tail -f /var/log/messages" but no s3fs messages
  7. tried "-f" option. Output was:

set_moutpoint_attribute(3482): PROC(uid=0, gid=0) - MountPoint(uid=0, gid=0, mode=40755)
s3fs: could not determine how to establish security credentials

Any solutions or suggestions of things to try would be greatly appreciated!

Most helpful comment

"s3fs: could not determine how to establish security credentials" message means that s3fs could not find any credential(/etc/passed-s3fs, $HOME/.passwd-s3fs etc...).
It seems that your procedure is no problem, but you got this message.
So I think that HOME environment is something wrong as possible.

If you can, you try to copy your $HOME/.passwd-s3fs to /etc/passwd-s3fs and cheek to run s3fs.

Regards,

All 6 comments

"s3fs: could not determine how to establish security credentials" message means that s3fs could not find any credential(/etc/passed-s3fs, $HOME/.passwd-s3fs etc...).
It seems that your procedure is no problem, but you got this message.
So I think that HOME environment is something wrong as possible.

If you can, you try to copy your $HOME/.passwd-s3fs to /etc/passwd-s3fs and cheek to run s3fs.

Regards,

thank you, I tried what you suggested and it worked!

if you ran the s3fs command with sudo, but had the .passwd-s3fs file in your own account's $HOME, that could account for why it failed, and also why it mentioned PROC(uid=0, gid=0) in the output. it may have been looking for the file in root's home directory.

把/etc/passwd-ossfs的权限改成你要启动的普通用户就行了。

Note that for me using fstab didn't auto-remount on reboot, likely due to networking services not being enabled at the time of the boot mount, so I'm creating a service to boot after networking services are enabled per https://github.com/s3fs-fuse/s3fs-fuse/issues/412

You could use a bash wrapper script to support a custom credential parameter using AWS CLI ENV variables - see here:
http://blog.evolution515.net/2018/08/31/autofs-indirect-user-automounter-for-aws-s3-using-either-s3fs-or-goofyfs/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neilmillard picture neilmillard  ·  3Comments

Timboo89 picture Timboo89  ·  3Comments

JamesB7 picture JamesB7  ·  3Comments

orhankutlu picture orhankutlu  ·  7Comments

bubba-h57 picture bubba-h57  ·  3Comments