What is an SMB Protocol?
The Server Message Block (SMB) protocol is designed to support file sharing, serial ports, printers, and other communications interfaces such as mail slots and named pipes established between two or more computers. The protocol can be used on top of the TCP/IP or other network protocols such as NetBEUI on the Internet. SMB primarily allows client programs or applications to read, write, create, and update files on a remote server.
How does the SMB Protocol Work?
SMB functions as a request-response or client-server protocol. The only time that the protocol does not work in a response-request framework is when a client requests an opportunistic lock (oplock) and the server has to break an existing oplock because the current mode is incompatible with the existing oplock. Client computers using SMB connect to a supporting server using NetBIOS over TCP/IP, IPX/SPX, or NetBUI. Once the connection is established, the client computer or program can then open, read/write, and access files similar to the file system on a local computer.
SMB Protocol Security
The SMB protocol supports two levels of security. The first is the share level. The server is protected at this level and each share has a password. The client computer or user has to enter the password to access data or files saved under the specific share. This is the only security model available in the Core and Core Plus SMG protocol definitions. User level protection was later added to the SMB protocol. It is applied to individual files and each share is based on specific user access rights. Once a server authenticates the client, he/she is given a unique identification (UID) that is presented upon access to the server. The SMB protocol has supported individual security since LAN Manager 1.0 was implemented.
SMB Protocol Variants
A number of protocol variants have been created since the original SMB protocol definition. These variants were created in order to handle the online environment’s increased complexity. The first variant was the Core Protocol or PC NETWORK PROGRAM 1.0 that supported connecting to and from file and print shares, opening and closing print files, opening/closing/writing/deleting files and directories, setting file attributes, and locking/unlocking byte ranges in files. Newer variants have added additional functionality to the base protocol.
What are the Available SMB Servers and Clients?
Some of the available SMB clients are: Microsoft Windows clients (Windows NT, Windows for Workgroups, etc.), SMBlib, Samba’s smbclient, Linus’s smbfs, and Digital’s PATHWORKS clients. There are also a number of SMB servers on the market. Some of these include: Samba (Unix, Solaris, and Linux deployments), Microsoft Windows Servers, LAN Manager and LAN Manager for UNIX, VisionFS, TotalNET Advanced Server, Advanced Server for UNIX, PATCHWORKS, and LAN Server for OS/2.
Comments (4)
Leave a Reply
- IMAP (Internet Message Access Protocol)
If you are a perpetual user of the Internet and its services such as email, then the chances are high that you've come across the term, IMAP or Internet Message Access Protocol. IMAP, in layman's term, is a technique of retrieving e-mails from a mail server using a suitable e-mail client. Normally, you don't see [...]...
- DHCP (Dynamic Host Configuration Protocol)
An IP address can be defined as a unique numeric identifier (address) that is assigned to each computer operating in a TCP/IP based network. Manually configuring computers with IP addresses and other TCP/IP configuration parameters is not an intricate task. However, manually configuring thousands of workstations with unique IP addresses would be a time consuming, [...]...
- POP3 (Post Office Protocol 3)
POP3 is an internet-based standard for retrieval of e-mail by a user from an e-mail server. POP stands for Post Office Protocol. The "3" means it is the third revision of the standard; POP1 and POP2 were made obsolete by POP3, which has been popular for many years now. For users, there are two primary [...]...
- SMTP (Simple Mail Transfer Protocol)
SMTP is short for Simple Mail Transfer Protocol and it is used to transfer e-mail messages between computers. It is a text based protocol in which message text is specified along with the recipients of the message. Simple Mail Transfer Protocol is a 'push' protocol and it cannot be used to 'pull' the messages from [...]...
- FTP (File Transfer Protocol)
FTP (File Transfer Protocol) is the generic term for a group of computer programs aimed at facilitating the transfer of files or data from one computer to another. It originated in the Massachusetts Institute of Technology (MIT) in the early 1970s when mainframes, dumb terminals and time-sharing were the standard. Traditionally, when communications speeds were [...]...





How can one use SMB to access files from a common computer (server) e.g. students to access class notes from a common remote computer where they can browse through the folders and files.
Windows has this built in as a sharing feature so you can use a Windows computer for a server. Right click on a folder with the files you want to be accessible and go to properties. Then click on a “Sharing” tab and then a “Share” button. You can select which user on the computer should have access (or you can add a new user). Windows will then show the address of that folder on the local network (something like \\ComputerName\SharedFolder) which can be used on other computers to connect (go to Network in Windows Explorer and it should list other computers on the network).
At least this is how it is in Windows 7, but even Windows XP has sharing. Mac OS X and Ubuntu have the same thing. They all use SMB as a protocol.
What ports does SMB use? does it still use port 137,138 and139
Yes, port 139 usually, but sometimes it runs over TCP on port 445.