Page 1 of 1

Problem setfacl on file server

Published: July 1, 2018 - 6:23 PM
by Eric
Hello,

I have a Samba4 infrastructure that works perfectly with three BDCs. I also followed the tutorial on the file server, but when I try to run `setfacl

-m group:"modomain\Domain Admins":rwx /monrepertoire`,
it returns
`setfacl: Option -m: Invalid argument near character 7`.

I don't understand this because the BDCs are working fine; I'm on an XFS partition.

However, if I run `getfacl`, it gives me the groups, and `wbinfo -g` works fine.

Do you have any ideas?
Thank you in advance.
Sincerely,
Eric

Re: Problem setfacl on file server

Published: July 2, 2018 - 3:34 PM
by Fred_O
Hello.

What does the "-m" option of setfacl do? The setfacl man page doesn't provide any information about this option, unlike the -n (--no-mask) option
. There's only the "--mask" option. Perhaps the answer lies there.

Re: Problem setfacl on file server

Published: July 5, 2018 - 10:55 PM
by dcardon
Hello Eric,
Eric wrote: July 1, 2018 - 6:23 PM I have a Samba4 infrastructure that works perfectly with three BDCs. I also followed the tutorial on the file server, but when I try to run `

setfacl -m group:"modomain\Domain Admins":rwx /monrepertoire`,
it returns
`setfacl: Option -m: Invalid argument near character 7`.

I don't understand because the BDCs are fine; I'm on an XFS partition.

However, if I run `getfacl`, it gives me the groups, and `wbinfo -g` works fine.

Do you have any idea
If you followed the dev.tranquil.it tutorials for the file server, there should be the `winbind use default=yes` parameter, so you need to use the group name directly without prefixing it with the domain name:

setfacl -m group:"Domain Admins":rwx /mydirectory

Sincerely,

Denis