added description on user permissions

This commit is contained in:
gurkenhabicht 2023-10-21 11:13:35 +02:00
parent 781892ac64
commit 90d5915e5e
1 changed files with 12 additions and 1 deletions

View File

@ -39,5 +39,16 @@ file system hierarchy.
Mount a share via the following command
```sh
mount -t nfs $TARGET_IP /tmp/nfsfiles
mount -t nfs $TARGET_IP: /tmp/nfsfiles
```
## User ID
The now mounted share got the same user permissions as on the original machine you connected to.
That means you might want to create a user following the same uid or the same gid to get permissions to open the directory.
If the permissions of the directory inside the mounted NFS share are set for uid 1003 it would look like the following example
```sh
sudo useradd nfsuser -u 1003 -m -s /bin/bash
```