Skip to main content

How permissions work

The following sections applies to NFSv3

On the server, directories and files have owners and groups ownership. Those ownerships are in reality just unsigned integers. These two values are also referred to as uid and gid.

You are probably wondering what that exactly means, so I am gonna give you two examples.

Imagine that you have a folder on the server that is owned by root user and root group. That means that the uid is 0 and gid is also 0.  On your system you also have have a user and group with the uid and gid of 0. In this example there are no problems since the uid and gid match with an existing user and group.

Now here is an example of a problematic case. Imagine that you have a folder on the server that is owned by yourself. Let's say that that your user on the server has the uid and gid of 1001. But on your PC your user has the uid and gid of 1000. This is a problem, because you won't be the owner on your PC.