mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #518] Difficulty unmounting s3fs-mounted disk as user #287
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#287
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 @houtanb on GitHub (Jan 4, 2017).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/518
Additional Information
s3fsversion:fuseversion:System info:
Distro:
s3fscommand line:/etc/fstab(have tried with and without)Log info:
Details about issue
Hi, first off, thanks for your work on
s3fs. We use it to send our bacula server backups to Amazon. Everything works perfectly for me except for one thing. What I'd like to do is mount the amazon bucket as the bacula user before a server is backed up. Then, after the server has been backed up, I'd like to unmount the bucket, again as the bacula user. Everything works well (mounting, writing) except for the unmount step. When I runas the bacula user I get the error
which causes an error in my backup.
Now, I have tried playing with the
fstabfile adding theuseroption to no avail (see above). I have also tried removing the/etc/mtabsoft link having read somewhere that this would allow a user to unmount a disk. Still no luck. Am I missing something very straightforward here?@houtanb commented on GitHub (Jan 4, 2017):
Solved. For anyone who encountered this issue, I created a file
baculaumountin/etc/sudoers.d/withvisudocontaining:and that allows
baculato runsudo umount /bacula/backupAmazonS3without entering a password.Though this works, I'd be happy to have any solution you think more elegant.