Network File Sharing and Redundancy
Network file sharing protocols such as NFS and Samba are essential for modern data centers, but they also introduce security considerations that administrators must understand. This course…

In a Samba share configured with "map to guest = Bad Password", what happens when a user provides a wrong password but the username exists?
A RAID 5 array with four 1 TB disks loses one disk. How much usable storage remains and why?
When configuring a Samba share, why must users listed in "write list" also appear in "valid users"?
A system administrator wants to perform a daily backup that only copies files changed since the last backup of any level. Which backup type should they schedule?
During an rsync operation, which option ensures that newer files on the destination are not overwritten by older source files?
A data center classified as EN50600 Class 3 offers which of the following capabilities?
If a client mounts an NFS export with the "sync" option, what effect does this have on write operations?
In a RAID 10 configuration with four disks, what is the maximum number of disks that can fail simultaneously without data loss?
A Samba share is set with "read only = no" and "writeable = yes". Which statement best describes the resulting access rights?
Understanding Network File Sharing Security Settings
Network file sharing protocols such as NFS and Samba are essential for modern data centers, but they also introduce security considerations that administrators must understand. This course explores the most common configuration options, their implications, and best‑practice recommendations.
1. NFS Export Options – The no_root_squash Flag
When a Linux server exports a directory (e.g., /home) via NFS, the no_root_squash option determines how the server treats the root user from the client side.
- What it does: It disables the default root squashing behavior, allowing the client’s
rootUID (0) to be interpreted asrooton the server. - Security implication: The client’s root can act as root on the server, bypassing all permission checks. This means the client can read, modify, or delete any file within the exported directory, regardless of the server’s file‑system ACLs.
- When to use it: Only in trusted environments where the client is fully controlled, such as a dedicated backup server.
- When to avoid it: In multi‑tenant or less‑trusted networks; instead, use the default
root_squashto map client root to an unprivileged UID (oftennobody).
2. Samba Authentication – map to guest = Bad Password
Samba provides a flexible way to map failed authentication attempts to a guest account. The option map to guest = Bad Password is particularly useful for public shares.
- Behavior: If a user supplies a valid username but an incorrect password, Samba treats the connection as a guest login.
- Resulting access: The guest account typically has very limited permissions (often read‑only), depending on the share’s
guest okandread onlysettings.
Key Takeaways
- “Bad Password” → “Become Guest”.
- The username’s existence does not affect the outcome; only the password mismatch triggers the guest mapping.
- Use this setting for shares where you want to allow anonymous browsing but restrict write access.
How to Remember
- Mnemonic: Bad Password → Guest (BPG → B‑G).
- Imagine a locked door: a wrong key hands you a visitor badge instead of locking you out.
3. Samba Access Control – valid users vs. write list
In Samba, the valid users parameter defines who is allowed to access a share at all, while write list specifies which of those users may write.
- Why both are needed: Samba checks
valid usersfirst. If a user is not listed there, the request is denied beforewrite listis examined. - Practical rule: Any user you place in
write listmust also appear invalid usersto be granted write permissions.
Redundancy and Data Protection Strategies
Ensuring data availability and integrity is a core responsibility of system administrators. This section covers RAID levels, backup types, and data‑center redundancy standards.
4. RAID 5 Capacity Calculations
RAID 5 distributes parity information across all disks, allowing the array to survive a single disk failure without data loss.
- Configuration: Four disks, each 1 TB.
- Usable storage after one disk fails: 3 TB. One disk’s capacity is dedicated to distributed parity, so the remaining three disks provide the usable space.
- Why it works: Parity blocks are spread across the disks, enabling reconstruction of the lost data from the surviving disks.
5. Backup Types – Choosing the Right Strategy
Backups can be categorized by how they treat changed data. Understanding the differences helps you meet recovery point objectives (RPO) while minimizing storage usage.
- Full (Level 0): Copies every file; provides the simplest restore but consumes the most space.
- Differential (Level 1): Copies all changes since the last full backup; faster than full but grows larger over time.
- Incremental (Level 2): Copies only files changed since the previous backup of any level. This is the most storage‑efficient method for daily backups that need to capture every change.
For a daily backup that captures only newly‑changed files, schedule an incremental backup.
6. rsync Options – Protecting Destination Data
When synchronizing directories, you often want to avoid overwriting newer files on the destination.
- -u, --update: Skips files that are newer on the destination than on the source, preserving the most recent version.
- Other common options:
- -a, --archive – preserves permissions, timestamps, and recurses.
- --delete – removes files on the destination that no longer exist on the source.
- -c, --checksum – compares files based on checksum rather than size/time.
7. NFS Write Synchronization – The sync Option
By default, NFS may buffer writes for performance. Adding the sync mount option changes this behavior.
- Effect: Writes are committed to stable storage on the server before the server acknowledges the operation to the client.
- Benefit: Guarantees that data is safely stored even if the server crashes immediately after the write.
- Trade‑off: Increased latency compared to asynchronous writes, which can be mitigated with careful tuning.
Data‑Center Redundancy Standards – EN50600 Class 3
EN50600 defines a series of classes for data‑center infrastructure, focusing on power, cooling, and network redundancy.
8. Capabilities of EN50600 Class 3
- Multiple redundant paths: Both power and network paths are duplicated, allowing maintenance or failure of one path without impacting operations.
- Simultaneous repair: The design permits components to be serviced while the system remains fully operational.
- Contrast with lower classes that may have a single power path or lack fault tolerance during maintenance.
Putting It All Together – Best Practices Checklist
Use the following checklist when configuring file‑sharing services and planning redundancy.
- Review NFS export options: avoid
no_root_squashunless the client is fully trusted. - For public Samba shares, consider
map to guest = Bad Passwordto provide graceful fallback for mistyped passwords. - Always list users in
valid usersbefore adding them towrite list. - When using RAID 5, remember that usable capacity = (N‑1) × disk size; plan for parity overhead.
- Schedule incremental backups for daily change capture; supplement with periodic full backups.
- Use
rsync -uto protect newer destination files during synchronization. - Mount NFS exports with
syncwhen data integrity outweighs performance. - Design data centers to meet EN50600 Class 3 requirements for true fault tolerance.
By mastering these concepts, you will be able to build secure, resilient, and efficient network storage solutions that meet both operational and compliance requirements.
