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
ACLs not working with "mfsmount -o mfsacl /mnt/lizardfs" #394
Comments
I had to do this to get non-root users to be able to write to my mount point:
See if that helps? |
@richard-scott Didn't seem to change anything. all users can write to /mnt/lizardfs but if for example, root creates a folder named "testacl" at "/mnt/lizardfs/testdir" and I run "setfacl -Rm u:tyler274:rwx /mnt/lizardfs/testdir" I am still unable to touch a file to testdir due to permissions denied. |
Did you mount the volume with the "mfsacl" flag? |
@richard-scott the specific command used was "mfsmount -o mfsacl /mnt/lizardfs" |
lol, my bad. I missed that one ;-) |
@richard-scott Don't believe I do, running latest Arch and haven't gone through any steps to enable it. |
Cant find it atm, but there is an export option to ignoregid i think. Look for and try that... |
just adding the ignoregid value such that my mfsexports.cfg file is
I unmounted the cluster with checked that the acls are there with
attempting to touch a file (testfile) to that directory from my user shows
and on the user end a permission denied error. |
Yes per issue #265 what you have done should be working. The only difference i see is that my mfsexports.cfg has Some tests with my 2.6.0 seem to work fine: |
What Linux Distro are you using? |
@richard-scott |
ah, Arch Linux, don't know what distro yet ;-( |
Note that |
Hello. I'm testing on Ubuntu with lizardfs 3.12.0+dfsg-1 and I still have ACL issue. I'm testing with the command
This should be reopened.
|
@pbeza thanks, I'm doing a rough backport to 3.12 to test on my test machine. |
It's not working with the following patch --- a/src/mount/fuse/main.cc
+++ b/src/mount/fuse/main.cc
@@ -111,6 +111,13 @@
(void)conn;
#endif
+#if FUSE_VERSION >= 30
+ fuse_conn_info_opts *conn_opts = (fuse_conn_info_opts *)userdata;
+ fuse_apply_conn_info_opts(conn_opts, conn);
+ conn->want |= FUSE_CAP_POSIX_ACL;
+ conn->want &= ~FUSE_CAP_ATOMIC_O_TRUNC;
+#endif
+
int *piped = (int*)userdata;
if (piped[1]>=0) {
char s = 0; Because the libfuse is |
@pbeza thanks for all the informations. It was an experiment to fix Samba I think we will wait for fuse3 to arrive in the next Ubuntu (since our work is based on that) but I note that buster can use it ;-) Regards. |
mounted system with "mfsmount -o mfsacl /mnt/lizardfs"
If I make a directory as root /mnt/lizardfs/testdir and use "setfacl -Rm u:tyler274:rwx /mnt/lizardfs/testdir" I am still unable to touch a file to the directory.
The text was updated successfully, but these errors were encountered: