Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passwd-s3fs files for different mounts if /etc/fstab #2453

Closed
alexeyantropov opened this issue May 7, 2024 · 2 comments
Closed

Passwd-s3fs files for different mounts if /etc/fstab #2453

alexeyantropov opened this issue May 7, 2024 · 2 comments

Comments

@alexeyantropov
Copy link

alexeyantropov commented May 7, 2024

Hello, there's a feature request.

It would be useful to have a mount option to choose a passwd-s3fs file instead of the only one /etc/passwd-s3fs for different mounts in /etc/fstab.

Smth like the line below:

mybucket /path/to/mountpoint fuse.s3fs <...>,url=https://url.to.s3/,PASSWDFILE=/SOME/PATH 0 0

Version of s3fs being used (s3fs --version)

# s3fs --version
Amazon Simple Storage Service File System V1.94 (commit:unknown) with OpenSSL
Copyright (C) 2010 Randy Rizun <rrizun@gmail.com>
License GPL2: GNU GPL version 2 <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@icassassin
Copy link

I've been using the 'passwd_file' option and as far as I can tell it does exactly what you're looking for.

One of my fstab entries:

[MOUNT_NAME] /mnt/[MOUNT_NAME] fuse.s3fs _netdev,allow_other,umask=0077,url=https://[S3_SERVER],passwd_file=[PASSWDFILE_S3FS],use_sse=custom:[S3FS_KEY],bucket_size=1TiB,nocopyapi 0 0

@alexeyantropov
Copy link
Author

I've been using the 'passwd_file' option and as far as I can tell it does exactly what you're looking for.

One of my fstab entries:

[MOUNT_NAME] /mnt/[MOUNT_NAME] fuse.s3fs _netdev,allow_other,umask=0077,url=https://[S3_SERVER],passwd_file=[PASSWDFILE_S3FS],use_sse=custom:[S3FS_KEY],bucket_size=1TiB,nocopyapi 0 0

The option isn't documented for fstab cases (only for mounts thought cli). Thx you, I'll try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants