👩‍💻Root Squash Explained 🍺 in AWS ☁️ & Linux🐥

Опубликовано: 12 Июль 2026
на канале: alden
459
17

Root squash, also known as "root squashing," is a security feature in Unix-like operating systems, particularly in NFS (Network File System) configurations.

In NFS, when a user on a client machine accesses files on an NFS server, the user's permissions are typically determined by their UID (user identifier) and GID (group identifier). However, when the client machine mounts the NFS share with root squash enabled, any requests made by the root user on the client machine are mapped to a designated unprivileged user (often "nobody" or another specified user) on the NFS server.

The purpose of root squash is to prevent the root user on a client machine from having unrestricted access to files on the NFS server. This is important for security reasons, as it helps to mitigate the risk of a compromised client machine gaining unauthorized access to sensitive files on the server.

By enforcing root squash, even if a malicious user gains root access on the client machine, they will be restricted in their ability to manipulate or access files on the NFS server.