[Samba] Samba and UFW

mmcg29440 at frontier.com mmcg29440 at frontier.com
Wed Jan 30 14:16:58 UTC 2019


Rowland,

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.

Regards,

Marty

-----Original Message-----
From: Rowland Penny <rpenny at samba.org> 
Sent: Tuesday, January 29, 2019 10:49 AM
To: samba at lists.samba.org
Subject: Re: [Samba] Samba and UFW

On Tue, 29 Jan 2019 10:19:30 -0500
Marty via samba <samba at lists.samba.org> wrote:

> Rowland,
> 
>  
> 
> 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:

135 	tcp
137 	udp
138 	udp
139 	tcp
445 	tcp 

Rowland






More information about the samba mailing list