diff --git a/Enumeration/NFS.md b/Enumeration/NFS.md index 4f3c858..eb1fbf3 100644 --- a/Enumeration/NFS.md +++ b/Enumeration/NFS.md @@ -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 ```