[Samba] Samba and UFW
rpenny at samba.org
Tue Jan 29 15:48:31 UTC 2019
On Tue, 29 Jan 2019 10:19:30 -0500
Marty via samba <samba at lists.samba.org> wrote:
> I found the reason for the "wrong argument" error. The windows
> firewall was set to block remote connections. Fixed that now I'm able
> to connect to the network. Now I'm back to the original problem. That
> is I cannot connect to the windows network with ufw enabled. Error
> "Cannot mount location - file or directory does not exist". If I
> press ok the error repeats. If I disable ufw I can connect to the
> mount the Windows network and browse it with no problem. If I enable
> ufw after the network is mounted I still can browse it. Samba is
> running as a stand alone server on a Linux PC. OS is Mint 19.1. I
> have no problem accessing the Linux PC from it's console. That is the
> one I'm trying to connect to the windows network and another PC
> running Mint 18.1. martin-RB042AV-ABA-a1410y is the Linux computer's
> name. I have reset the netbios name to OFFICE which is the name of
> the Windows PC. Also rest workgroup to WORKGROUP. I do not see any
> reference to host name in smb.conf. Do I have to add it? What about
> sambapsswd should I add Linux user there?
First who set the the computers hostname to
There are two 'netbios' names'
The 'netbios name' which is the computers short hostname
The 'netbios domain name' which is the computers dns domain name.
You can set 'netbios name' in smb.conf, but if it isn't set, Samba will
set it for you. Well it would normally, except that it has to be 15
characters or less and yours is 25 characters. You need to shorten the
> Windows feature smb 1.0/cifs sharing is on.
For security, you should turn it off, but then networking browsing will
not work, you will need to map drives etc.
>I'll try removing the
> entry that forces smb1 in smb.conf and let it default to smb2/3. Not
> sure how to use SSL. I'll try the other suggestions from others.
Are these ports open on the Mint machine:
More information about the samba