Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Lost all SMB access after replacing a bad drive

Penbrock

Member
Joined
May 27, 2017
Messages
26
At home I have a FreeNas 11.3U2. I have 4 pools TV,TV2,TV3,TV4. They feed my Kodi players and I upload TV shows from my Windows 10 PC.
Today one of my (single drive) pools died. Not the end of the world. Powered down, found the drive and installed a new one. I them deleted the pool and rebuild it with the old name (TV2). I added the SMB and NFS shares back in.
How ever not I can not access any of the samba shares from windows (\\192.168.2.xxx). when I try it asks for my credentials. But it responds with I might not have permissions. I know 11.3 changed a lot with permissions but everything was working until I removed and added a pool. Is there any way to set the pools up to just allow access to anyone? If not Why is the old user no longer working at all?

I checked midclt call smb.status AUTH_LOG | jq and got
Code:
[ENOMETHOD] Method "status" not found in "smb"
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1106, in _method_lookup
    methodobj = getattr(serviceobj, method_name)
AttributeError: 'SMBService' object has no attribute 'status'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 307, in on_message
    serviceobj, methodobj = self.middleware._method_lookup(message['method'])
  File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1108, in _method_lookup
    raise CallError(f'Method "{method_name}" not found in "{service}"', CallError.ENOMETHOD)
middlewared.service_exception.CallError: [ENOMETHOD] Method "status" not found in "smb"



snbstatus for the new share is
Code:
root@freenas2:/mnt # getfacl /mnt/TV2
# file: /mnt/TV2
# owner: root
# group: wheel
            owner@:rwxp--aARWcCos:-------:allow
            group@:rwxp--a-R-c--s:-------:allow
         everyone@:rwxp--a-R-c--s:-------:allow


My sharesec is
Code:
root@freenas2:/mnt # sharesec --view-all
[TV]
REVISION:1
CONTROL:SR|DP
OWNER:
GROUP:
ACL:S-1-1-0:ALLOWED/0x0/FULL

[TV2]
REVISION:1
CONTROL:SR|DP
OWNER:
GROUP:
ACL:S-1-1-0:ALLOWED/0x0/FULL

[TV3]
REVISION:1
CONTROL:SR|DP
OWNER:
GROUP:
ACL:S-1-1-0:ALLOWED/0x0/FULL

[TV4]
REVISION:1
CONTROL:SR|DP
OWNER:
GROUP:
ACL:S-1-1-0:ALLOWED/0x0/FULL
 

Penbrock

Member
Joined
May 27, 2017
Messages
26
Never mind. I forgot the first rule of windows. Reboot.
After rebooting windows I got everything back
 
Top