So I'm not getting much traction with NFS4 unix storage datasets and shares. Not sure why, so I'm trying to get the linux CIFS mount working instead.
On dataset/share type windows, all permissions are working as expected when mapping to a Windows desktop. Owner/Group is applied with default permissions, recursive.
From windows desktop connected to AD (same domain as FreeNAS), create folder/file (
Dataset is owned by this user/group
Now different user logs into linux server connected to same AD using nscd/nslcd+kerberos
New use is part of hmeijgroup, after login and file creation
Next mount that share and create folder/file, for now do it as root
What a weird behavior. Permission denied errors but the file creation succeeds the directory not. Noteworthy to state that if log in as different user in windows and map the drive the file and folder created are owned by hpc100 but have group is hmeijgroup. So not exactly same behavior. Ideas?
-Henk
On dataset/share type windows, all permissions are working as expected when mapping to a Windows desktop. Owner/Group is applied with default permissions, recursive.
From windows desktop connected to AD (same domain as FreeNAS), create folder/file (
ls -l
, ls -ln
output)Dataset is owned by this user/group
Code:
drwxrwxr-x+ 2 WESLEYAN\hmeij WESLEYAN\hmeijgroup 2 Feb 20 09:32 win1 -rwxrwxr-x+ 1 WESLEYAN\hmeij WESLEYAN\hmeijgroup 0 Feb 20 09:32 win1.txt drwxrwxr-x+ 2 24307 193064 2 Feb 20 09:32 win1 -rwxrwxr-x+ 1 24307 193064 0 Feb 20 09:32 win1.txt
Now different user logs into linux server connected to same AD using nscd/nslcd+kerberos
New use is part of hmeijgroup, after login and file creation
Next mount that share and create folder/file, for now do it as root
Code:
# for now as root on behalf of user [root@rstoresrv3 ~]# mount -t cifs //whitetail/testwin1 /mnt -o username=WESLEYAN\\\hmeij,domain=wesleyan Password: [root@rstoresrv3 ~]# mount | grep whitetail //whitetail/testwin1 on /mnt type cifs (rw) # login user [hpc100@rstoresrv3 ~]$ id uid=75000(hpc100) gid=75000(hpc100) groups=75000(hpc100),11417(hmeijgroup) [hpc100@rstoresrv3 ~]$ mkdir /mnt/win2 mkdir: cannot create directory `/mnt/win2': Permission denied [hpc100@rstoresrv3 ~]$ touch /mnt/win2.txt touch: cannot touch `/mnt/win2.txt': Permission denied [hpc100@rstoresrv3 ~]$ ls -l /mnt total 1 drwxrwxr-x 2 24307 193064 0 Feb 20 10:02 win1 -rwxrwxr-x 1 24307 193064 0 Feb 20 10:02 win1.txt -rwxrwxr-x 1 24307 193064 0 Feb 20 10:05 win2.txt [hpc100@rstoresrv3 ~]$ ls -ld /mnt drwxrwxr-x 4 24307 193064 0 Feb 20 10:05 /mnt
What a weird behavior. Permission denied errors but the file creation succeeds the directory not. Noteworthy to state that if log in as different user in windows and map the drive the file and folder created are owned by hpc100 but have group is hmeijgroup. So not exactly same behavior. Ideas?
-Henk
Last edited by a moderator: