Re: [Samba] Samba and UFW
- Date: Wed, 30 Jan 2019 09:16:58 -0500
- From: Marty via samba <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] Samba and UFW
The computer name 'martin-RB042AV-ABA-a1410y' was set by Linux Mint when it
was installed. I'm not sure I can change it. I check it on the Mint forum.
I'll turn off the smb... feature and see what happens. Yes the ports listed
below are open and set to pass through the firewall. Should I unset the
netbios name". Going to try the modification to the ufw rules file as
suggested by Reinl.
From: Rowland Penny <rpenny@xxxxxxxxx>
Sent: Tuesday, January 29, 2019 10:49 AM
Subject: Re: [Samba] Samba and UFW
On Tue, 29 Jan 2019 10:19:30 -0500
Marty via samba <samba@xxxxxxxxxxxxxxx> 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 'martin-RB042AV-ABA-a1410y' ?
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 hostname.
> 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:
To unsubscribe from this list go to the following URL and read the