40 votes

Is there any reason to allow SMB over the internet?

SMB is a file sharing protocol and, as such, it is sometime left open to the internet for, well, sharing files. However, this is a very bad idea. Compared to simpler protocol as FTP or WebDAV, which ...
  • 45.5k
19 votes
Accepted

How do I find out what version of SMB is in use by each attached client to a Windows Server 2016?

I did find a way to do this. Hopefully this helps someone else looking for the same information. On the server, open a powershell then enter this command: Get-SmbSession | Select-Object -Property ...
  • 433
16 votes
Accepted

How do I find out what version of SMB is enabled on a remote host?

https://nmap.org/nsedoc/scripts/smb-protocols.html Example Usage nmap -p445 --script smb-protocols <target> nmap -p139 --script smb-protocols <target>
12 votes
Accepted

Does NFS and SMB support sparse files?

NFS: it has a partial support for sparse file. Basically, it supports creating a sparse file but, when reading, the file is expanded to include zeroes. This means that, while you can create a sparse ...
  • 45.5k
10 votes

How do I find out what version of SMB is enabled on a remote host?

On Windows 8 and higher, you can use the powerhsell command Get-SmbConnection to check which SMB version is used per connection.
  • 373
10 votes

Does NFS and SMB support sparse files?

NFS Yes, NFS 4.2 fully supports sparse files (see this canonical document and this presentation). Prior to NFS 4.2, the NFS client/server model supported sparse files in the sense that the API ...
  • 285
9 votes
Accepted

Difference between durable file handles, resilient file handles and persistent file handles

Durable handles are part of SMB 2.0 Resilient handles are part of SMB 2.1 Persistent handles are part of SMB 2.2 which is now called SMB3 My main references for the following are: https://wiki.samba....
9 votes
Accepted

Cache of share in windows server

You're probably missing the fact that Offline Files must be enabled on the client side in order for files and programs accessed from the Share to be cached offline. Additionally, only files and ...
  • 109k
8 votes

TCP/IP ports necessary for CIFS/SMB operation

This configuration worked for me: 137/UDP, 138/UDP, 139/TCP and 445/TCP. Source and additional information at: http://www.icir.org/gregor/tools/ms-smb-protocols.html. So these are the iptables rules ...
  • 89
8 votes
Accepted

How do you check what version of Server Message Block client a workstation is using on Windows?

If you have Windows 8.1 or 2012, you can use the PowerShell cmdlet Get-SmbConnection for that. To interpret the answer (copied and pasted from here): SMB 1 - Windows 2000 SMB 2 - Windows ...
8 votes
Accepted

Can "wannacrypt" (wcrypt) spread via Linux server serving over SMB?

In general any ransomware can encrypt anything the infected user has access to, like any other malware can write to anywhere using the permissions of the account running it. That doesn't equal it ...
  • 44.8k
8 votes

Is there any reason to allow SMB over the internet?

Just don't do it. If anyone asks you to do it, I would strongly recommend telling them no and running away fast. You could technically provide this kind of service over a VPN, but if it's over any ...
  • 7,026
8 votes
Accepted

Moving Hyper-V virtual disk to SMB share gives file not found error in the end

The NAS is a 2U Synology Rack set up in SMB 2.0 and higher mode. Plenty of space on the share (and NAS). The server is Windows 2012 R2 SMB 2.xx is your problem. You need SMB 3.xx to allow Hyper-V ...
8 votes

Samba SMB Encryption - How safe is it?

You could see the Encryption in SMB 3.0: A protocol perspective and Encryption in SMB3 for technical details, but I think the fact that Azure Files allows mounting over the Internet using (only) SMB3 ...
  • 44.8k
8 votes
Accepted

Why does a MS GPO option break SMB shares that use a hosts file for the machine name?

It's not about the 'hosts' file – it breaks shares accessed through a different hostname than the server's "real" name. Your result is normal, as that's literally the whole purpose of the ...
  • 9,311
7 votes

Listing available smb shares on a network through the command line in linux

In samba version 4, nmblookup '*' no longer works; it only gives the local server. It used to work in samba version 3. Now, you have to use nmblookup WORKGROUP, which as Kurt mentioned, only ...
  • 111
7 votes
Accepted

SMB service is running on port 445 / Why / What process

"smb 445 tcp filtered" does not means that something is listening on port 445. From nmap man page: Filtered. means that a firewall, filter, or other network obstacle is blocking the port so that ...
  • 45.5k
7 votes
Accepted

SMBv2 and Windows 7

SMB protocol handshake is always SMB, for backwards compatibility. The connection is upgraded later on. If you deny all packets with SMB headers, no connection will be established. You cann see this ...
  • 4,574
7 votes

Expose Fileserver (SMB) over WEB / HTTP(S) Interface

NextCloud has WebDAV functionality / integration and can replicate data between off-site <-> on-premises in the way you want. This is no open source / free software, but you might want to give it a ...
6 votes

Listing available smb shares on a network through the command line in linux

a better way, more fiendly printed, is to use smbtree. $ smbtree Enter user01's password: DOMAIN_A \\FREEBOX_SERVER Freebox Server \\FREEBOX_SERVER\IPC$ ...
  • 61
6 votes

Listing available smb shares on a network through the command line in linux

Another way to do this is via Avahi (Bonjour), as long as the servers are publishing: avahi-browse -r _smb._tcp
  • 173
6 votes
Accepted

Virtualized Server 2003 vs Server 2008 R2 file transfer rate differences?

The reason is most likely that Sever 2003 R2 uses SMB 1.0, While Server 2008 R2 uses SMB 2.1. The linked article there has a table which shows what version of the protocol you'll be able to use with ...
  • 53.6k
6 votes
Accepted

How to know when to properly use iSCSI, NFS or SMB?

I am presented with SMB, NFS and iSCSI options to connect to the server. Meaning, I have the option of either setting up a share via NFS or SMB or creating a virtual iSCSI drive in which I can ...
  • 3,532
6 votes

Cannot view or map drives by host shortname

As Noor Khaldi says it could be a problem related with NetBios or the TCP Helper of NetBios. The destination computer and the client one are in the same local domain? It could be a problem related ...
6 votes
Accepted

High CPU Load on Synology by smbd

First, this seems a common problem with DS213j and DSM 5.1+. Someone reported that after a reboot, the problem went away: have you tried it? From your top data, it seems that the CPU is busy with ...
  • 45.5k
6 votes

Is there any reason to allow SMB over the internet?

Is there any reason? I will leave that up to you. It can be done. Open port 445 and config SMB and you can access your shared folders over the internet similar to how you would do it over your local ...
  • 1,986
6 votes

Is there any reason to allow SMB over the internet?

No. Leave the minimum number of ports exposed to the Internet. If you need to use SMB for something (transferring files with a trusted other party, with authentication and timestamps on every action ...
6 votes

KB 4480970 and or KB 4480960 breaks SMB2 connections to Windows 7 shares

EDIT 14Jan2019:- please see the new accepted answer instead, it contains the official fix instead of this work-around. I'm posting an answer in the hope others find it easier to find here than I did ...
  • 243
6 votes

Expose Fileserver (SMB) over WEB / HTTP(S) Interface

Pydio has Web UX for CIFS/SMB shares: https://pydio.com
  • 8,928
6 votes

No write permission on mounted CIFS drive

CIFS share will be mounted as root using your command, so normal user not able write anything there. You need to specify the user and group ID for whom you want to assign read/write permission. You ...

Only top scored, non community-wiki answers of a minimum length are eligible