Hello, I am trying to setup my HL15 to be a media storage unit, but am running into issues when I try to setup file sharing over SMB or NFS. I was following the directions in the manual and on page 48 it says you can run testparm -s. When I do that, I get this response:
Load smb config files from /etc/samba/smb.conf
“include = registry” only effective in global section
Error loading services.
I don’t know what this error means or how to resolve. and I couldn’t find another thread to help me. Any help would be nice. Thanks!
@daemon1001, you can remove the include = /etc/cockpit/zfs/shares.conf from your config as you are using the filesharing tab and that would be if you were using the sharing model built directly into the ZFS tab which we do not use or recommend using
@Joshua, could you please send your /etc/samba/smb.conf file so I can instruct you on what needs to be changed to fix your SMB
Hi @Joshua,
As Hutch said, we can remove the "include = /etc/cockpit/zfs/shares.conf if you are you using the file sharing tab. I had originally tried setting up file sharing through the zfs tab.
@Joshua, As I mentioned above can you remove the “include = /etc/cockpit/zfs/shares.conf” liner from the file and restart SMB?
That option if only if you are using the built-in SMB share option on the ZFS tab which we do not recommend. We would recommend using the File-Sharing tb for managing SMB shares which would be the “include = registry” option
You can use vim or nano to edit it (either delete the line or put a ‘#’ sign at the start to make the line a comment.
‘sudo service smbd restart’ will get the service restarted.
Hi @Joshua,
You don’t need to export this file anywhere. The operating system expects it to be where it is /etc/samba/smb.conf
Run this command ‘sudo nano /etc/samba/smb.conf’
Either comment the desired line by inserting a '#" at the beginning of the line or delete it altogether.
hit ‘ctrl + o’ (This will write out the changes to the file. that’s letter o not number 0)
then hit ‘ctrl + x’ (that will exit the command nano)
Then type ‘sudo service smbd restart’ which will force linux to read and update any changes you made smb.conf
Okay, so I have done this and it looked like it wrote it successfully, but when I ran service ‘sudo service smbd restart’ it failed. I then rand 'sudo service smb restart and it looked like it did something, but when I did ‘testparm -s’. I got a failed result (Pictures attached)