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

fuse mount cannot set option 'default_permissions' #3767

Closed
BakerBunker opened this issue Sep 30, 2022 · 3 comments
Closed

fuse mount cannot set option 'default_permissions' #3767

BakerBunker opened this issue Sep 30, 2022 · 3 comments

Comments

@BakerBunker
Copy link
Contributor

Describe the bug
Cannot set option 'default_permissions' by mount command.
User permission not working on client side.

node2@node2:/home/weed$ ll
drwxr-xr-x   1 root  root    0 9月  30 16:27 ./
drwxr-xr-x 112 root  root 4096 9月  30 00:28 ../
-rw-r--r--   1 other  other     0 9月  30 16:27 test
node2@node2:/home/weed$ id
uid=1000(node2) gid=1000(node2) 组=1000(node2),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare)
node2@node2:/home/weed$ rm test
node2@node2:/home/weed$ ll
drwxr-xr-x   1 root  root    0 9月  30 16:27 ./
drwxr-xr-x 112 root  root 4096 9月  30 00:28 ../
node2@node2:~$ sudo mount -t weed fuse /home/weed -o "default_permissions,filer='...',filer.path='/'"
node2@node2:~$ sudo mount|grep weed
...:/ on /home/weed type fuse.seaweedfs (rw,relatime,user_id=0,group_id=0,allow_other)

System Setup

  • List the command line to start "weed master", "weed volume", "weed filer", "weed s3", "weed mount".
    • weed master -ip=... -mdir=...
    • weed volume -ip=... -port=... -dir=... -mserver="..." -max=2000
    • weed filer -ip=... -master="..."
    • sudo mount -t weed fuse /home/weed -o "default_permissions,filer='...',filer.path='/'"
  • OS version: master/volume/filer - truenas linux 5.10, client - Ubuntu 16.04 and 22.04
  • output of weed version: version 30GB 3.29 1ffb1e696e1f651c6294fc34c86b9abb6db1985d linux amd64
  • if using filer, show the content of filer.toml: Using default settings

Expected behavior
Add default_permission option to fuse mount option and get permissions work.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@chrislusf
Copy link
Collaborator

added a fix. I don't have a linux box to test it. Please help.

@BakerBunker
Copy link
Contributor Author

where can i get the latest build to test, or i have to build it by myself.

@BakerBunker
Copy link
Contributor Author

@chrislusf after the 3.30 update, i can't mount seaweedfs by mount command, and i can't add extra options too.

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