Unable to connect to SMB share

Joined
May 12, 2020
Messages
3
I'm new to this, so I apologize if I don't explain something properly. If there is anything you'd like for me to do/change/take a picture of/run a script/etc let me know. I will try to put as much info as I can. Thank you.

I installed FreeNAS on an old tower I've had lying around.
Firmware: 11.3-U2.1
Motherboard: GIGABYTE GA-990FXA-UD3
CPU: AMD FX-8120
GPU: SAPPHIRE Radeon HD 7970 DirectX 11
RAM: 16G DDR3
Storage: Various speeds/sizes/Model HHDs, about 10Tbs

I am trying to connect to the share on a Windows 10 laptop.

I have my server set with a static IP of 192.168.0.30

I have made 1 custom Group (Admin) and 1 custom user (phillip).
Storage pool: "MediaServer"
Dataset: "Media"
SMB Share: "Media"
SMB is enabled

When I ping the server:
Code:
C:\Users\phill>ping 192.168.0.30

Pinging 192.168.0.30 with 32 bytes of data:
Reply from 192.168.0.30: bytes=32 time=6ms TTL=64
Reply from 192.168.0.30: bytes=32 time=8ms TTL=64
Reply from 192.168.0.30: bytes=32 time=7ms TTL=64
Reply from 192.168.0.30: bytes=32 time=7ms TTL=64

Ping statistics for 192.168.0.30:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 8ms, Average = 7ms


ACL Perms.png

Share.png



Here are my perms for each directory:
root@freenas[~]# getfacl /mnt # file: /mnt # owner: root # group: wheel user::rwx group::r-x other::r-x root@freenas[~]# getfacl /mnt/MediaServer # file: /mnt/MediaServer # owner: root # group: wheel owner@:rwxp--aARWcCos:-------:allow group@:r-x---a-R-c--s:-------:allow everyone@:r-x---a-R-c--s:-------:allow root@freenas[~]# getfacl /mnt/MediaServer/Media # file: /mnt/MediaServer/Media # owner: root # group: wheel owner@:rwxp--aARWcCos:-------:allow group@:r-x---a-R-c--s:-------:allow user:phillip:rwxpDdaARWcCos:fd-----:allow everyone@:r-x---a-R-c--s:-------:allow

When trying to map on my laptop, I see FreeNAS on my network with "Homes" and "phillip" shares (Shouldn't I see "Media" share?). I get the following error, and if I try anyway I can not connect with either the user I made or root.

Capture.PNG
Capture1.PNG


I would appreciate any help. I've gone over several guides and It seems relatively simple. I'm missing something simple stupid. Thank you!
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
I’d expect Philip to have access. See whether there’s anything in this that helps. Push comes to shove, you can always run a debug and check the logs. I suck at grabbing that off the desc of the video, please look at the very bottom on how to debug.

 
Joined
May 12, 2020
Messages
3
So it looks like what I have and how I configured to match your video. As far as debugging, I honestly don't know where to start. I've been reading through the documentation for sharing. I see it also mentions freenas-debug, is this what I would use or am I looking for some script to run?
 

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
You’re a little different in that I don’t know how your user is set up and your group is wheel, not the one you created.

For debug, read bottom of video description, it has the steps.
 
Joined
May 12, 2020
Messages
3
Okay, I think I finally got it:

Code:
[2020/05/12 18:16:22.481176,  3] ../../auth/auth_log.c:647(log_authentication_event_human_readable)
  Auth: [SMB2,(null)] user [MicrosoftAccount]\[phillip] at [Tue, 12 May 2020 18:16:22.481166 PDT] with [NTLMv2] status [NT_STATUS_OK] workstation [PHILLIPS] remote host [ipv4:192.168.0.122:55171] became [FREENAS]\[phillip] [S-1-5-21-3667546302-3747191866-1142397283-1001]. local host [ipv4:192.168.0.30:445]
[2020/05/12 18:16:22.482384,  4] ../../auth/auth_log.c:751(log_successful_authz_event_human_readable)
  Successful AuthZ: [SMB2,NTLMSSP] user [FREENAS]\[phillip] [S-1-5-21-3667546302-3747191866-1142397283-1001] at [Tue, 12 May 2020 18:16:22.482376 PDT] Remote host [ipv4:192.168.0.122:55171] local host [ipv4:192.168.0.30:445]
/mnt/MediaServer/Media/phillip: No such file or directory
[2020/05/12 18:16:22.540153,  0] ../../source3/modules/smb_libzfs.c:157(get_zhandle)
  get_zhandle: Failed to obtain zhandle on parent directory: (/mnt/MediaServer/Media/phillip)
[2020/05/12 18:16:22.540181,  0] ../../source3/modules/smb_libzfs.c:577(smb_zfs_path_get_props)
  smb_zfs_path_get_props: Failed to obtain zhandle on [/mnt/MediaServer/Media/phillip]: No such file or directory
[2020/05/12 18:16:22.540204,  0] ../../source3/modules/vfs_ixnas.c:2187(ixnas_connect)
  ixnas_connect: Failed to get ZFS properties for share
[2020/05/12 18:16:22.540241,  1] ../../source3/smbd/service.c:665(make_connection_snum)
  make_connection_snum: SMB_VFS_CONNECT for service 'phillip' at '/mnt/MediaServer/Media/phillip' failed: No such file or directory


I see it keeps saying no file or directory, but I have the pool and dataset, and they both match. And again, I can see it on my network when trying to map:
Capture.PNG
 
Top