Network File Share

Footprinting the Service

sudo nmap --script nfs* 10.129.14.128 -sV -p111,2049

Showing Available Shares

showmount -e 10.129.14.128

Mounting NFS Shares

mkdir target-NFS
sudo mount -t nfs 10.129.14.128:/ ./target-NFS/ -o nolock
cd target-NFS
tree .

List Contents with Usernames & Group Names

ls -l mnt/nfs/

List Contents with UIDs & GUIDs

ls -n mnt/nfs/

Unmounting Share

sudo umount ./target-NFS

Dangerous Settings

Option
Description

rw

Read and write permissions.

insecure

Ports above 1024 will be used.

nohide

If another file system was mounted below an exported directory, this directory is exported by its own exports entry.

no_root_squash

All files created by root are kept with the UID/GID 0.

Last updated