A file share server is a dedicated system that stores files and makes them accessible to multiple users across a network. Rather than storing documents locally on individual computers, organizations centralize files on a server where users can access, edit, and collaborate on shared data. This approach simplifies backup procedures, improves collaboration, and allows administrators to manage permissions from a single location.
Common File Sharing Protocols
Different protocols handle file sharing depending on the operating system and network environment.
SMB (Server Message Block)
SMB is the primary file sharing protocol for Windows networks. Modern Windows systems use SMB 3.x (Windows 10/11 and Server 2016 and later negotiate SMB 3.1.1), which adds encryption, integrity checking, and better performance over SMB 2. SMB operates over TCP port 445. When you map a network drive in Windows using a UNC path like \\servername\sharename, you're using SMB.
SMB is also known as CIFS (Common Internet File System), an older dialect of the same protocol; you will still hear the file share service called "SMB/CIFS." A history point worth knowing: legacy SMB relied on NetBIOS over TCP, using UDP ports 137 and 138 and TCP port 139, but modern SMB runs directly on TCP 445 and does not need NetBIOS. On the exam, if you see port 445, think SMB file sharing. SMBv1, the oldest dialect, is now disabled by default in current Windows because it was exploited by ransomware such as WannaCry, so encountering a device that only speaks SMBv1 is both a compatibility and a security problem.
NFS (Network File System)
NFS is the standard file sharing protocol for Linux and Unix systems. It allows remote directories to be mounted as if they were local storage. NFS is commonly used in data centers and environments with many Linux servers. NFSv4 uses TCP port 2049.
Where SMB carries Windows-style user permissions inside the protocol, traditional NFS trusts the client to report the user and group IDs, so security historically depended on controlling which hosts were allowed to mount an export. NFSv4 improved this with stronger authentication options. A mixed environment often runs both: Windows clients reach a share over SMB while Linux servers reach the same data over NFS, which is why cross-platform file servers matter.
AFP (Apple Filing Protocol)
AFP was Apple's native file sharing protocol for macOS. While older Mac systems still support AFP, Apple has transitioned to SMB as the default protocol for file sharing, improving cross-platform compatibility.
FTP/SFTP
FTP (File Transfer Protocol) transfers files between systems but lacks the seamless integration of SMB or NFS. SFTP (SSH File Transfer Protocol) adds encryption for secure transfers. FTP uses ports 20 and 21, while SFTP uses port 22.
| Protocol | Port(s) | Primary environment | Encrypted |
|---|---|---|---|
| SMB / CIFS | TCP 445 | Windows file sharing | Yes, in SMB 3.x |
| NFS | TCP 2049 | Linux / Unix | Optional (v4) |
| AFP | TCP 548 | Legacy macOS | No |
| FTP | TCP 20/21 | Cross-platform transfer | No |
| SFTP | TCP 22 | Secure transfer over SSH | Yes |
Windows File Sharing
Creating a Share
To share a folder in Windows:
- Right-click the folder and select Properties
- Navigate to the Sharing tab
- Click Advanced Sharing
- Check "Share this folder"
- Set the share name and configure permissions
- Click OK to create the share
Share Permissions vs. NTFS Permissions
Windows uses two layers of permissions that work together:

Share Permissions apply only when accessing files over the network. Options include Full Control, Change, and Read. These are simpler but less granular.
NTFS Permissions apply whether accessing files locally or over the network. They offer granular control including Read, Write, Modify, Read & Execute, List Folder Contents, and Full Control.
You'll find the two layers in different places. Right-click the folder and choose Properties: the Security tab shows its NTFS permissions, and Sharing > Advanced Sharing > Permissions shows its share permissions. When users can open files over the network but can't save them, check both tabs, because the more restrictive layer is the one capping them.
When both permission types apply, the most restrictive combination wins. For example, if share permissions grant Full Control but NTFS permissions only allow Read, the effective permission is Read.
The three share permission levels build on each other. Read lets users open files and run programs. Change adds creating, editing, saving, and deleting files. Full Control adds changing permissions and taking ownership.
Best practice: follow least privilege. Give each group the lowest share permission that still lets it do the job, then fine-tune with NTFS permissions. A team that needs to save files gets Change, not Full Control, because nobody on the team needs to change permissions or take ownership. Some admins open the share to Full Control and do all the restricting in NTFS, but when a question asks for the least permission that works, the answer is Change.
How the two permission layers actually combine
Getting the combination rule right is a frequent exam and help-desk stumbling point, so it is worth walking through carefully. The evaluation happens in a specific order. First, within a single layer, permissions are cumulative: if a user belongs to a group with Read and another group with Modify, the user's NTFS permission is the sum, Modify. Second, an explicit Deny overrides any Allow in the same layer; a user in a group that is denied access is blocked even if another group grants it. Third, once each layer's effective permission is calculated, the system compares the network share result against the NTFS result and takes the more restrictive of the two.

The key nuance students miss: "most restrictive wins" applies between the two layers, not within them. Consider a user whose group has Change at the share level and whose account has Full Control at NTFS. The effective network permission is Change, because the share layer caps it. Now the same user sitting at the console, logging in locally, is not going through the share at all, so only NTFS applies and they get Full Control.