mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #2171] [Question] Can /etc/passwd-s3fs have more then one credential? #1102
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yuriw on GitHub (May 27, 2023).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2171
Additional Information
Version of s3fs being used (
s3fs --version)s3fs --version
Amazon Simple Storage Service File System V1.86 (commit:unknown) with GnuTLS(gcrypt)
Version of fuse being used (
pkg-config --modversion fuse,rpm -qi fuseordpkg -s fuse)Kernel information (
uname -r)5.15.0-72-generic
GNU/Linux Distribution, if applicable (
cat /etc/os-release)How to run s3fs, if applicable
[] command line
[] /etc/fstab
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
s3fs syslog messages (
grep s3fs /var/log/syslog,journalctl | grep s3fs, ors3fs outputs)Details about issue
I'd like to mount three more buckets and am unclear what the best way to handle credentials
I have one line in /etc/passwd-s3fs
TIA
@gaul commented on GitHub (May 30, 2023):
Can you just add three more lines, each with a different bucket, mountpoint, and
passwd_file? Another approach is to use the profile option.@yuriw commented on GitHub (May 30, 2023):
@gaul Sure I can and in fact, that's what I did :)
I was wondering what's the most recommended way.
Can you elaborate on
profile optionpls?@ggtakec commented on GitHub (Jun 10, 2023):
@yuriw
s3fs can use the credential file(${HOME}/.aws/credentials) used by
aws clias credentials.This file can contain multiple profile information, and the profile(user) can be specified with the
profileoption(profile=<profile name>) of s3fs.Any profile can be created with
aws configure --profile <profile name>. (This is a text file, so edit it however you like)s3fs only uses the
AWS Access Key ID(aws_access_key_id)andAWS Secret Access Key(aws_secret_access_key)fields.Please try it.
This issue will be closed, but please reopen it if you still have problems.