From 90d5915e5ed2bbc8645f0f25ff68bff894983aa9 Mon Sep 17 00:00:00 2001 From: gurkenhabicht Date: Sat, 21 Oct 2023 11:13:35 +0200 Subject: [PATCH] added description on user permissions --- Enumeration/NFS.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 ```