[GH-ISSUE #2453] Passwd-s3fs files for different mounts if /etc/fstab #1212

Closed
opened 2026-03-04 01:52:14 +03:00 by kerem · 2 comments
Owner

Originally created by @alexeyantropov on GitHub (May 7, 2024).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2453

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.
Originally created by @alexeyantropov on GitHub (May 7, 2024). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/2453 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. ```
kerem closed this issue 2026-03-04 01:52:14 +03:00
Author
Owner

@icassassin commented on GitHub (May 11, 2024):

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
<!-- gh-comment-id:2105596152 --> @icassassin commented on GitHub (May 11, 2024): 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 ```
Author
Owner

@alexeyantropov commented on GitHub (May 13, 2024):

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.

<!-- gh-comment-id:2107169097 --> @alexeyantropov commented on GitHub (May 13, 2024): > 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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#1212
No description provided.