showmount 命令可显示有关已经远程挂载或可用于挂载的文件系统的信息。您可以使用 –e 选项列出共享的文件系统。例如:
# /usr/sbin/showmount -e bee export list for bee: /export/share/local (everyone) /export/home tulip,lilac /export/home2 rose
有关其他选项的信息,请参见 showmount(1M) 手册页。
在某些环境中,不应该显示有关共享文件系统以及挂载了这些文件系统的系统的信息。您可以将 sharectl 命令的 showmount_info 属性设置为 none,这样可确保客户机无法查看以下文件系统信息:
客户机无法访问的文件系统的相关信息
所有共享文件系统的相关信息
已挂载文件系统的其他系统的相关信息
bee# sharectl set -p showmount_info=none nfs
客户机 rose 上将显示以下信息:
# /usr/sbin/showmount -e bee export list for bee: /export/share/local (everyone) /export/home2 rose
不再显示有关 /export/home 文件系统的信息。