Re: [Samba] Samba and UFW
- Date: Thu, 31 Jan 2019 21:12:15 -0500
- From: Marty via samba <samba@xxxxxxxxxxxxxxx>
- Subject: Re: [Samba] Samba and UFW
New information - P have an external BU drive. All backups go there. I had
it running to night and noticed that I could see it on the network and
browse the directories and files on it. Still did not have success with the
Windows 8.1 PC. Below is the response from smbclient using the Windows PC
ip. Maybe it will help. (ip modified for security)
martin@radio:~$ smbclient -L 192.168.XXX.XX
WARNING: The "syslog" option is deprecated
Enter WORKGROUP\martin's password:
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
Canon MF4100 Series (FAX) Printer Canon MF4100 Series (FAX)
Canon MF4100 Series UFRII LT Printer Canon MF4100 Series UFRII LT
HP LaserJet 5MP Printer HP LaserJet 5MP
IPC$ IPC Remote IPC
Office Laser Printer Office Laser
print$ Disk Printer Drivers
Reconnecting with SMB1 for workgroup listing.
Connection to 192.168.XXX.XX failed (Error
Failed to connect with SMB1 -- no workgroup available
From: mmcg29440@xxxxxxxxxxxx <mmcg29440@xxxxxxxxxxxx>
Sent: Wednesday, January 30, 2019 9:17 AM
To: 'Rowland Penny' <rpenny@xxxxxxxxx>; 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