Fab Sidoli
Contributor
- Joined
- May 15, 2019
- Messages
- 114
Dear All,
I'm mounting a ZFS dataset which is a user's home directory on an RHEL 7 box using cifs automounts.
The automount map mount options are pulled from AD:
-fstype=cifs,vers=2.0,rw,sec=krb5,username=nobody,cruid=99,cifsacl,rsize=32768,wsize=32768,multiuser
When mounted the options appear as follows:
rw,relatime,vers=2.0,sec=krb5,cache=strict,multiuser,uid=0,noforceuid,gid=0,noforcegid,addr=XXX.XXX.XXX.XXX,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,cifsacl,noperm,rsize=32768,wsize=32768,echo_interval=60,actimeo=1
[not sure where these have come from]
When I try to change the permissions on a file using the following command I get an error:
user # setfacl -m "u:bob:r" somefile
setfacl: somefile: Operation not supported
getfacl sort of works in that it just shows the POSIX.
user # getfacl somefile
# file: somefile
# owner: jim
# group: group
user::rwx
group::r-x
other::---
In Windows explorer I have added another user to the permissions but this isn't showing under linux.
On the ZFS box I do see the ACE.
root@FreeNAS[~]# getfacl /mnt/path/somefile
# file: /mnt/path/somefile
# owner: jim
# group: group
user:jane:r-x---a-R-c---:-------:allow
owner@:rwxpDdaARWcCo-:------I:allow
group@:r-x---a-R-c---:------I:allow
I can't tell if this is a FreeNAS problem blocking this because of the mount options or if RHEL is being silly.
Does anyone have an idea how to debug.
Thanks,
Fab
I'm mounting a ZFS dataset which is a user's home directory on an RHEL 7 box using cifs automounts.
The automount map mount options are pulled from AD:
-fstype=cifs,vers=2.0,rw,sec=krb5,username=nobody,cruid=99,cifsacl,rsize=32768,wsize=32768,multiuser
When mounted the options appear as follows:
rw,relatime,vers=2.0,sec=krb5,cache=strict,multiuser,uid=0,noforceuid,gid=0,noforcegid,addr=XXX.XXX.XXX.XXX,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,cifsacl,noperm,rsize=32768,wsize=32768,echo_interval=60,actimeo=1
[not sure where these have come from]
When I try to change the permissions on a file using the following command I get an error:
user # setfacl -m "u:bob:r" somefile
setfacl: somefile: Operation not supported
getfacl sort of works in that it just shows the POSIX.
user # getfacl somefile
# file: somefile
# owner: jim
# group: group
user::rwx
group::r-x
other::---
In Windows explorer I have added another user to the permissions but this isn't showing under linux.
On the ZFS box I do see the ACE.
root@FreeNAS[~]# getfacl /mnt/path/somefile
# file: /mnt/path/somefile
# owner: jim
# group: group
user:jane:r-x---a-R-c---:-------:allow
owner@:rwxpDdaARWcCo-:------I:allow
group@:r-x---a-R-c---:------I:allow
I can't tell if this is a FreeNAS problem blocking this because of the mount options or if RHEL is being silly.
Does anyone have an idea how to debug.
Thanks,
Fab