Hi All,
I've spent far too many hours trying to get sharing to work properly with permissions.. I turn to the experts for help (that's you).
Here is my setup:
ESXi 6.7 running FreeNAS 11.3-U3.2 as a VM (Absolutely no issues so far)
Mixed OS environment with both Windows 10 and various flavors of Linux looking to access network shares.
All datasets have been created as SMB shares (I learned this the hard way).
For mounting an NFS share on an apline linux machine, I have the same group name and group ID on both systems.
Here is my mount string from /etc/fstab:
I mount with sudo mount -a. You will notice an smb mount command commented out. I was able to get SMB to work (painfully), but several containers on the remote alpine linux system break when I try to use smb with them for config storage.
As root on the remote alpine linux system, I can mount the share, and I can see the datasets under that share, but they have strange numbers for owner:group, and I cannot see anything underneath them.
On my freenas system, this is what it looks like logged in as root:
The ACL for each of the datasets looks like this:
NFS Settings look like this:
Sharing looks like this:
(Yes, I know setting maproot user to root and group to wheel is bad security, but I am just trying to get it to work at all right now. Will secure once I have some basic functionality)
What am I doing wrong, please? I'm at the end of my rope!
I've spent far too many hours trying to get sharing to work properly with permissions.. I turn to the experts for help (that's you).
Here is my setup:
ESXi 6.7 running FreeNAS 11.3-U3.2 as a VM (Absolutely no issues so far)
Mixed OS environment with both Windows 10 and various flavors of Linux looking to access network shares.
All datasets have been created as SMB shares (I learned this the hard way).
For mounting an NFS share on an apline linux machine, I have the same group name and group ID on both systems.
Code:
dochydra:/mnt/abyss/tmp# id uid=0(root) gid=0(root) groups=0(root),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video),102(docker),1001(trancekat),1002(mediamaven)
Here is my mount string from /etc/fstab:
Code:
dochydra:/mnt/abyss/tmp# cat /etc/fstab UUID=2d558eee-4f24-4706-8619-f2a3293e93c4 / ext4 rw,relatime 0 1 UUID=e2dd2a43-05a5-4775-9164-9b6ab50da577 /boot ext4 rw,relatime 0 2 UUID=b2061457-ae5c-416a-8f19-3679c2906525 swap swap defaults 0 0 /dev/cdrom /media/cdrom iso9660 noauto,ro 0 0 /dev/usbdisk /media/usb vfat noauto 0 0 #//192.168.100.18/Abyss /mnt/abyss cifs credentials=/etc/samba/credentials,gid=1002,iocharset=utf8,_netdev 0 0 192.168.100.18:/mnt/abyss /mnt/abyss nfs nfsvers=4,defaults 0 0 dochydra:/mnt/abyss/tmp#
I mount with sudo mount -a. You will notice an smb mount command commented out. I was able to get SMB to work (painfully), but several containers on the remote alpine linux system break when I try to use smb with them for config storage.
As root on the remote alpine linux system, I can mount the share, and I can see the datasets under that share, but they have strange numbers for owner:group, and I cannot see anything underneath them.
Code:
dochydra:/mnt/abyss# ls -alh total 201K drwxrwx--x 10 42949672 42949672 10 Jun 16 14:46 . drwxr-xr-x 3 root root 4.0K Jun 9 15:56 .. drwxrwx--- 5 42949672 42949672 5 Jun 16 14:23 applications drwxrwx--- 4 42949672 42949672 6 May 26 22:34 backup drwxrwx--- 6 42949672 42949672 40 Jun 15 12:43 dox drwxrwx--- 27 42949672 42949672 28 Jun 13 14:09 family drwxrwx--- 5 42949672 42949672 5 Jun 15 22:33 media drwxrwx--- 3 42949672 42949672 3 Jun 16 14:48 tmp drwxrwx--- 8 42949672 42949672 17 Jun 3 15:51 work dochydra:/mnt/abyss# cd tmp/ dochydra:/mnt/abyss/tmp# ls -alh total 0 dochydra:/mnt/abyss/tmp# mkdir test mkdir: can't create directory 'test': I/O error dochydra:/mnt/abyss/tmp#
On my freenas system, this is what it looks like logged in as root:
Code:
Abyss# ls -alh total 197 drwxrwx--x 10 root wheel 10B Jun 16 14:46 . drwxr-xr-x 3 root wheel 128B Jun 16 12:09 .. drwxrwx---+ 5 root wheel 5B Jun 16 14:23 applications drwxrwx---+ 4 root wheel 6B May 26 22:34 backup drwxrwx---+ 6 root wheel 40B Jun 15 12:43 dox drwxrwx---+ 27 root wheel 28B Jun 13 14:09 family drwxrwx---+ 5 root wheel 5B Jun 15 22:33 media drwxrwx---+ 3 root wheel 3B Jun 16 14:48 tmp drwxrwx---+ 8 root wheel 17B Jun 3 15:51 work
The ACL for each of the datasets looks like this:
NFS Settings look like this:
Sharing looks like this:
(Yes, I know setting maproot user to root and group to wheel is bad security, but I am just trying to get it to work at all right now. Will secure once I have some basic functionality)
What am I doing wrong, please? I'm at the end of my rope!