Solved Samba Config File Suggestions?

I copied this basic config from one of the forum posts to a create an smb4.conf file and it works....but it's not quite there yet.

Below,I had to change "netbios name" from "Server_Name" to "FreeBSD BOX",because on my Windows PC it showed up as "SERVER_NAME."

The other problem is,if I click on it Windows can't connect,one reason being because "freebsdbox" is denying the connection.

My modem/router=192.168.0.1
(all dhcp addresses start at .02)
freebsdbox=192.168.0.2
Dell-Box=192.168.0.16 (Windows 10)

There is a printer attached to the FreeBSD server, an HP Deskjet 3900

So...

I need:

-File service for all machines on the network
-Home Directory -mine
-Print service
Code:
[global]
workgroup = WORKGROUP
server string = FreeBSD Samba server
netbios name = FreeBSD Box
security = user
encrypt passwords = yes
hosts allow = 192.168.0. , 127.0.0.1
hosts deny = 0.0.0.0/0
socket options = TCP_NODELAY
log level = 2
log file = /var/log/samba.log.%m
max log size = 50
debug timestamp = yes

[Homes]
comment = Home Directories
read only = no
writeable = yes
I created a password,but got the error message"Unable to connect to SMB Server NT Status Unsuccessful" and also Windows Diagnostics says" Your DNS Server might be unavailable."

What about using SWAT?
(I enabled it in Inetd,and started it,but,,the ;901 webpage was blank.

Why is Webmin still using version 3.6?

Update:
Took the smb file from Daemon Notes:

http://daemon-notes.com/articles/network/samba

and adjusted it for my hardware and hostname.I realized that I had to forgot to create the Samba log directory,thus removing the "log directory not found" on startup error.

I also realized,after using smbclient on the localhost and getting "NT_status failed bad network name" that I had used netbios=FREEBSD BOX" not "freebsdbox",so after correcting that error,the smbclient command worked successfully and the shares were listed.
 
Last edited:
Back
Top