File and Network Services in Windows: Shares, Permissions and a Worked Access Check

Follow one Windows file request from a UNC path to the stored object. Then calculate effective permissions, allocated space and ideal payload transfer time.

KnowledgeGate Team

Exam prep & CS education

Updated 26 Nov 20266 min read
File and Network Services in Windows: Shares, Permissions and a Worked Access Check

A local path, shared folder, mapped drive and UNC path can look like four different stores. In fact, several of these names may lead to the same server-side object. Nor is remote access decided by one vague "permission". A request passes through identity, share and file-system checks before the file opens.

Meera on client WS-07 opens \\FS1\Projects\Exam\plan.txt. Her rights, the storage used and the ideal transfer time follow from that request. The GATE CS Exam Preparation category places this trace within Operating Systems practice.

1. Separate the file system from the file service

A file system names, stores and protects objects on a server volume. A file service lets an authenticated client request operations on them over a network. A network service is the wider category; shared-file service is only one example.

Item

What it identifies or does

Exact value in the trace

client

originates the request

WS-07, 192.0.2.27/24

server name

name the client resolves

FS1

server address

network-layer destination returned for this lesson

192.0.2.40

UNC path

names server, share and path

\\FS1\Projects\Exam\plan.txt

share

published server-side entry point

Projects

server-local path

storage path hidden by the share

D:\Shares\Projects\Exam\plan.txt

mapped drive

client-side alias for the UNC root

P: -> \\FS1\Projects

file service in the stated trace

carries the remote file operations

SMB directly over TCP port 445

DNS resolves FS1; SMB carries file operations; the file system resolves Exam\plan.txt below the share root. Each does a different job, and none alone grants access. File Systems and Disk Scheduling in OS continues into directories, allocation and disk-side concepts.

2. Read a UNC path and trace the request in order

Parse the UNC path as server = FS1, share = Projects, and relative path = Exam\plan.txt. In this example, FS1 sees the corresponding local path as D:\Shares\Projects\Exam\plan.txt. A client cannot replace the UNC path with that server-local drive letter.

WS-07 resolves FS1 to 192.0.2.40. Applying /24 to both addresses gives network 192.0.2.0/24, so this trace uses local-subnet delivery. The client connects to TCP destination port 445; the server authenticates Meera; SMB maps Projects to D:\Shares\Projects; the file system appends Exam\plan.txt. The subnet result follows from the stated /24 addresses. TCP port 445 follows from the stated direct-hosted SMB transport.

If P: maps to \\FS1\Projects, then P:\Exam\plan.txt and the UNC path name the same object in this client session. Mapping creates an alias, not a copy, grants no extra permission and need not exist for another user or machine.

Request trace from WS-07 to FS1: name resolution, subnet reachability, TCP port 445, SMB identity, share and file-system authorisation.

3. Compute permissions as two remote-access gates

For this remote request, collect applicable share rights and file-system rights, then keep only rights allowed by both. No explicit deny, inherited entry, ownership rule or object-specific right applies in the stated ACL. A local open of D:\Shares\Projects\... skips the share gate, but the file-system ACL remains.

Meera belongs to Project-Team and All-Staff. Share Projects grants Project-Team: Change and All-Staff: Read, producing read, list, create, write, delete, but not change permissions or take ownership. Folder Exam grants Project-Team: Read & execute, Write, Create files and All-Staff: Read & execute, but not Delete, Change permissions or Take ownership.

Operation

Share permits?

File-system permits?

Remote result

read plan.txt

yes

yes

allowed

list Exam

yes

yes

allowed

create notes.txt

yes

yes

allowed

overwrite plan.txt

yes

yes

allowed

delete plan.txt

yes

no

denied

change the ACL

no

no

denied

A broad grant at one gate cannot rescue a right blocked at the other gate in this stated model.

4. Worked example: open the file, account for storage and estimate transfer time

Meera authenticates through both groups. Share Change includes reading, and both file-system group entries permit reading, so opening plan.txt for read is allowed. Delete is denied because the file-system ACL blocks it. Changing the ACL is denied at both layers.

On an ordinary non-sparse, uncompressed teaching volume, the file is 10,500 bytes long and allocation units are 4,096 bytes:

  1. ceil(10,500 / 4,096) = 3 units.

  2. 3 x 4,096 = 12,288 bytes allocated.

  3. 12,288 - 10,500 = 1,788 bytes unused in the final unit.

Metadata is excluded. A content read transfers 10,500 bytes, not automatically all allocated bytes. At 5,000,000 bit/s, (10,500 x 8) / 5,000,000 = 0.0168 seconds = 16.8 ms. Actual time is longer because lookup, connection, authentication, latency, metadata and protocol work are excluded.

read = allowed

overwrite = allowed

delete = denied

change ACL = denied

logical size = 10,500 bytes

allocated = 12,288 bytes

unused in final unit = 1,788 bytes

ideal payload-only time at 5 Mbit/s = 16.8 ms

Three access gates for plan.txt with the operation matrix, three 4,096-byte blocks holding 10,500 bytes, and the 16.8 ms transfer maths.

5. Diagnose failures at the layer that can cause them

Diagnose in order: parse the path, resolve FS1, reach 192.0.2.40, connect, authenticate Meera, locate Projects, pass its share check, resolve Exam\plan.txt, pass its file-system check, then read.

  • FS1 cannot be resolved: inspect naming first.

  • The address is reachable but the service connection fails: inspect service availability, filtering or endpoint configuration.

  • Projects is not found: inspect the share name or publication.

  • Meera authenticates but read is denied: inspect authorisation.

  • plan.txt is absent beneath Exam: inspect path and object state.

Name lookup does not prove port availability. A connection does not prove credentials or permission. Access to a share root does not prove access to every descendant. Not every failure is simply "the network".

6. Sharing adds coordination problems, not just remote paths

Availability asks whether the service works. Security asks who may do what. Consistency asks what readers see when clients act together. One check cannot answer all three.

Suppose score.txt contains 40. Meera and Arjun both read it and calculate 40 + 5 = 45. Meera writes 45, then Arjun writes 45. Under unsynchronised last-writer-wins behaviour, the result is 45, not 50. A lock, atomic update or version check can prevent or detect this. Write permission cannot. Caching may affect observed data or metadata, so questions must state coherence and failure assumptions.

7. Exam traps and stable question forms

Seven corrections matter: a mapped drive is an alias, not a copy; UNC starts with server and share; DNS is not authorisation; share and file-system permissions are separate gates; one gate cannot override the other; logical and allocated size can differ; payload time is not total response time.

Try these before reading the answers:

  1. Share Read plus file-system Modify.

  2. Share Change plus file-system Read & execute.

  3. A 15,000-byte file in 4,096-byte units.

  4. When does P:\Exam\plan.txt reach the same object as the UNC path?

Answers: (1) remote Read. (2) remote Read & execute. (3) ceil(15,000/4,096) = 4 units, 16,384 bytes allocated and 1,384 bytes unused. (4) Only in a client session where P: maps to \\FS1\Projects.

Stable questions ask you to parse UNC, order a request, intersect permissions, locate a failure, calculate allocation or reason about concurrent writes. Continue with File Systems and Allocation MCQs.

8. The short version and the next step

Ask: Which server? Which share? Which relative path? Which identity? What does the share allow? What does the file-system ACL allow? Meera on WS-07 reaches FS1/Projects/Exam/plan.txt; read and overwrite survive both gates, delete and ACL change do not; 10,500 logical bytes occupy 12,288 bytes in the stated allocation model.

Now replace Meera with Ravi, who belongs only to All-Staff. Share Read and file-system Read & execute make his effective remote data access read-only. He can list Exam and read plan.txt, but cannot create, overwrite, delete or change permissions. Rebuild the six-row table before checking that answer, then recompute allocation for 15,000 bytes in 4,096-byte units.

Finally, redraw both diagrams, explain why P: is an alias, and solve Ravi's variation. Use GATE Guidance by Sanchit Sir for the guided subject route, or the GATE Test Series to test recall.