Skip to content

showmount

20 commands

Queries an NFS server’s mount daemon for exported directories and which clients may mount them.

  • NFS
  • file shares

Install showmount

sudo apt install nfs-common

Basic Export Enumeration2

showmount -e 192.168.1.20

Lists exported NFS directories available on the target IP address.

showmount --exports 192.168.1.20

Uses the long-form flag to list exported directories on the target.

Hostname and DNS Based Enumeration1

showmount -e nfs.example.local

Queries the NFS exports of a target server defined by its hostname.

Client Access and Permission Enumeration1

showmount -a 192.168.1.20

Lists all active mount points in the format host:directory.

Listing Mounted Clients1

showmount --all 192.168.1.20

Uses the long-form flag to display both client IP and mounted directory.

Listing Exported Directories2

showmount -d 192.168.1.20

Lists only the directories that are currently mounted by some client.

showmount --directories 192.168.1.20

Uses the long-form flag to list currently mounted directories without client IPs.

NFS Server Status Queries1

showmount 192.168.1.20

Runs with default behavior (typically equivalent to -a or list clients) against the target.

Local Host Enumeration1

showmount -e localhost

Checks the local machine for its own NFS exports.

General Tool Information2

showmount --help

Displays the help message summarizing usage and flags.

Link
showmount --version

Outputs the version information of the installed showmount tool.

Link

IPv6 Target Enumeration1

showmount -e 2001:db8::1

Queries NFS exports from a target specified by an IPv6 address.

Link

Red Team Initial Unix Reconnaissance1

showmount -e 10.10.10.15

Identifies potential entry points by listing accessible file shares on a specific target.

Link

Blue Team Exposure Validation1

showmount -e internal-nfs

Verifies that sensitive exports are not inadvertently exposed to the internal network.

Link

Incident Response and Assessment1

showmount -a 10.10.10.15

Reveals which IP addresses are currently connected to the compromised NFS server.

Link

Quiet and Script Friendly Output1

showmount --no-headers -e 192.168.1.20

Suppresses header lines for easier parsing in scripts (if supported by version).

Link

Advanced Combined Enumeration1

showmount -a nfs-primary.corp

Maps the full relationship of clients to mounts on the primary corporate NFS server.

Link

Specific Directory Discovery1

showmount -d backup-server

Checks specifically for directories actively in use on the backup server.

Link

Export Information with Hostnames1

showmount -e db-server.local

Retrieves the export list to determine allowed host subnets or wildcards.

Link

All Hosts Export Visibility1

showmount -a localhost

Audits the local system to see all incoming NFS connections from the network.

Link