Free course · 12 lessons · independent — not affiliated with LizardSystems
LANScan365

Module C · Secure the LANLesson 9 of 12

Who can read and write each share

Network Scanner can test, share by share, whether an account can read or write. Use it to find every writable share, check it against what was intended, and fix the ones that are open too wide.

  • About 45 minutes
  • Tool: LizardSystems Network Scanner
  • You finish with access-review.md

By the end of this lesson you will

  • Scan with Check access and read the Write, Read, Access denied and Error results
  • Explain whose permissions a scan is testing, and change it when you need to
  • Confirm a finding with Get-SmbShareAccess and icacls before changing anything
  • Fix over-broad access with groups and record the decision in an access review

The question behind every share

By now you know what is shared on your network. The security question is different: who can do what with each share? A share that everyone can read may be fine (a folder of letter templates). A share that everyone can write to is a different matter: it is where ransomware encrypts, where someone drops a file that the next person opens, and where a mistake deletes a year of work.

Network Scanner can answer the question for every share on the network in one pass, instead of you clicking through permissions server by server.

Readable is a data question. Writable is a security question. Start with writable.

Turn on Check access

On the Scan tab, under Netbios (Samba), tick Check access. For each share found, Network Scanner now tests what the scanning account can do and marks the share with one of four results, which are also the four access-rights options on the Filter tab:

ResultMeaningWhat to think
WriteThe account can create or change filesIs that intended for this account? For everyone like it?
ReadThe account can list and open files but not change themFine for reference shares; odd for Payroll
Access deniedThe share exists but refuses the accountOften exactly right — the share is protected
ErrorThe check could not completeTimeout, an unusual device, or a permissions quirk; look at it by hand

Whose access are you testing?

A scan tests the permissions of one account. By default that is the account running Network Scanner — the Current user option on the Netbios (Samba) tab of Preferences. Choose The following user and enter a user name, password and domain, and the checks run as that account instead.

Preferences, Netbios (Samba) tab: Timeout for operations 300 ms; Authorization with Current user selected, or The following user with User name, Password and Domain fields
Figure 1 Netbios (Samba) preferences: access is tested as the current user, or as an account you specify here.

This matters because an administrator can write almost everywhere. A scan as KESTREL\it.admin answers “what can the administrators change?” — useful, but not the question you care about most. In this lesson, run the scan as yourself and treat every Write as “at least administrators can write here”. In lesson 11 you repeat it as an ordinary user, which is where the real surprises live.

Filter for Write

A full scan with access checks on returns a long tree. Cut it down to the question:

Filter tab with Computers by state, Resources by type and Resources by access rights options
Figure 2 For a writable-shares review, keep Write ticked and clear Read, Access denied and Error; clear IPC$ and Administrative shares too.
  1. Leave only writable shares

    On the Filter tab, under Resources by access rights, keep Write ticked and clear the other three. Clear Administrative shares and IPC$ under Resources by type — lesson 10 deals with those separately.

  2. Hide the noise

    Clear Inactive and Without resources so only computers with a writable share remain.

  3. Read the list against the register

    Open your share-register.md from lesson 3. For every writable share, the register should say that the Staff group (or some group you belong to) is meant to change it. Anything else is a question.

At Kestrel the filtered tree showed nine writable shares. Seven matched the register. Two did not: \\KT-FS1\Scans, which the register said only Staff and the printers’ scan account should change, and \\KT-FS1\Deploy$, which was not in the register at all. Deploy$ is the subject of lesson 10. Scans is this lesson’s example.

Verify on the server

Network Scanner tells you the effective result for one account. Before changing anything, look at the permissions that produced it. From your admin PC, with Windows’ own tools:

Get-SmbShareAccess on KT-FS1 shows Deploy$ granting Everyone Full and Scans granting Everyone Change and KESTREL Staff Change; icacls on Scans shows Everyone with Modify
Figure 3 The cause: Scans grants Everyone Change at the share level and Modify in NTFS, so nothing narrows it down. Deploy$ grants Everyone Full Control.

This is the pattern from lesson 3’s permissions table: broad on both layers. Someone set up scan-to-folder, the printer could not write, and Everyone was added to make the error go away. “Everyone” on a domain file server includes every authenticated account — staff, service accounts, and any account an attacker manages to use.

Fix it with groups, not exceptions

The fix is to grant exactly the groups the register names, in NTFS, and remove Everyone. For Kestrel’s Scans share, with Windows’ tools on KT-FS1:

PowerShell on KT-FS1 (run as administrator)
# Share level: authenticated users may connect; NTFS decides the rest
Grant-SmbShareAccess  -Name Scans -AccountName 'NT AUTHORITY\Authenticated Users' -AccessRight Change -Force
Revoke-SmbShareAccess -Name Scans -AccountName Everyone -Force

# NTFS: remove Everyone, keep Staff and the printers' scan account
icacls E:\Shares\Scans /remove:g Everyone
icacls E:\Shares\Scans /grant 'KESTREL\Staff:(OI)(CI)M' 'KESTREL\svc.scan:(OI)(CI)M'
  • Test the business process straight away. Scan a page on KT-PRN1 to the folder. If it fails, the printer uses a different account than you think — check it in the printer console, not by adding Everyone back.
  • Re-scan. The server settings say what you intended; only a fresh scan shows what the network actually allows.
  • Write it down. The change goes into the access review with the date and who approved it.

The access review

The access review is the record of every writable share and the decision on each. It is also the document an auditor will ask for.

ShareWritable as it.adminIntended writers (register)FindingDecisionOwner
\\KT-FS1\ClientsYesStaffOKKeepPartners
\\KT-FS1\TemplatesYesITOKKeepOffice manager
\\KT-FS1\ScansYesStaff, svc.scanEveryone: ChangeFixed 2026-09-22Office manager
\\KT-FS1\Deploy$Yes— not in registerEveryone: FullLesson 10Unknown
\\KT-PC09\ShareYesDesktop sharing a folderMove to KT-FS1, removeIT
\\KT-NAS\BackupYesBackup serviceAdmins only — confirm in lesson 11KeepIT

Exercise: review every writable share

  • Tick Check access and scan all in-scope segments as your own account; save the result.
  • Filter to Write only, without administrative shares and IPC$.
  • For each writable share, compare with your share register and fill a row in C:\LANScan365\notes\access-review.md.
  • For every mismatch, confirm with Get-SmbShareAccess and icacls before deciding.
  • Fix at least one over-broad share with groups, test the business process, and prove it with a re-scan.

Checkpoint

Tick these off before moving on. If one fails, the lesson section above it has the fix.

  • You have a saved scan with Check access on, made as a known account
  • Every share your account can write to is listed in access-review.md with a decision
  • No business share grants Change or Full Control to Everyone
  • Every change you made is confirmed by a fresh scan, not just by the server settings