Reputation: 15559
I have followed WhiteBoard Coder: Install and set up s3fs in Ubuntu 16.04 to mount an s3 bucket to mount an S3 bucket on Ubuntu server.
Now what I want to do is to mount a second bucket on the same Ubuntu server... I have 2 different users, for each of these buckets, I don't know how to configure their passwords.
Previously I had to put the access-key:secrect-key
in /etc/passwd-s3fs
file, but now that I have 2 different set of tokens, I am not sure what to do?
some background: I am working on an e-commerce solution... I am working on an integration system with different clients who send their product info to our e-commerce via FTP.
As an example, client-1 is a car dealer who uploads hundreds of photos via FTP, to our FTP server... we have created an S3 bucket for client-1, mounted the bucket using S3FS and the photos directly go to the bucket...
Now I am getting data from a different car dealer, and due to security reasons, we want separate buckets and credentials for each clients, that's why I want to configure S3FS to work with separate Access-key fies.
Upvotes: 0
Views: 915
Reputation: 2402
s3fs accepts a flag to override the default password path:
-o passwd_file (default="")
specify the path to the password file, which which takes precedence over the password in $HOME/.passwd-s3fs and /etc/passwd-s3fs
Thus you should create two password files and provide a different path to each s3fs instance.
Upvotes: 2
Reputation: 2146
Next words is my opinion only. We not discuss on performance and access issues and just try to solve your problem directly.
I would create new policy that have access to both of buckets.
Next step create group that has this policy as permission.
Next step add both of users to previous created group
Upvotes: 1