mountd

MOUNTD(8)                   System Manager's Manual                  MOUNTD(8)



åå
       mountd - NFS ãã¦ã³ããã¼ã¢ã³

æ¸å¼
       /usr/sbin/rpc.mountd [ -f exports-file ] [ -d facility ] [ -P port ]
       [ -Dhnprv ] [ --debug facility ] [ --exports-file=file ] [ --help ]
       [ --allow-non-root ] [ --re-export ] [ --no-spoof-trace ] [ --version ]

説æ
       mountd ããã°ã©ã 㯠NFS ã®ãã¦ã³ããã¼ã¢ã³ã§ããã mountd 㯠NFS ã¯ã©ã¤ã¢ã³ããã
       MOUNT ãªã¯ã¨ã¹ããåãåãã¨ã ã¨ã¯ã¹ãã¼ããã¡ã¤ã« /etc/exports
       ã®ãªã¹ããåç§ãããã®ãªã¯ã¨ã¹ããæ£å½ãªãã®ãã©ããããã§ãã¯ããã
       ã¯ã©ã¤ã¢ã³ãããã®ãã¡ã¤ã«ã·ã¹ãã ã®ãã¦ã³ãã許å¯ããã¦ããå ´åã«ã¯ã mountd
       ã¯è¦æ±ããããã£ã¬ã¯ããªã®ãã¡ã¤ã«ãã³ãã«ãä½æãã ãã®ã¨ã³ããªã /etc/rmtab
       ã«è¿½å ããã UMOUNT ãªã¯ã¨ã¹ããåãåãã¨ã mountd ã¯ã¯ã©ã¤ã¢ã³ãã®ã¨ã³ããªã
       rmtab ããåé¤ããã ãã ã UMOUNT ãªã¯ã¨ã¹ãã®å¾ã§ãã
       ã¯ã©ã¤ã¢ã³ãã¯ä¾ç¶ãã¡ã¤ã«ãã³ãã«ãæ±ããã¨ãå¯è½ã§ãããã¨ã«æ³¨æãããã¨
       (ä¾ãã°ã¯ã©ã¤ã¢ã³ããåããªã¢ã¼ããã¡ã¤ã«ã·ã¹ãã ã
       å¥ãã®ãã¦ã³ããã¤ã³ãã«ãã¦ã³ããã¦ããå ´åãªã©)ã ã¾ãã¯ã©ã¤ã¢ã³ãã mountd
       ã«ç¥ãããã«ãªãã¼ãããã¨ã rmtab ã«å¤ãã¨ã³ããªãæ®ã£ã¦ãã¾ããã¨ã«ã注æãããã¨ã

   inetd ããã®èµ·å
       mountd ã¯é常ã·ã¹ãã ã®ãã¼ãæã«èµ·åãããã inetd ããèµ·åãããã¨ãã§ããã以ä¸ã® 2
       è¡ã /etc/inetd.conf ã«è¿½å ããã°ãã:

       mount/1-2 dgram  rpc/udp wait  root  /usr/sbin/rpc.mountd rpc.mountd
       mount/1-2 stream rpc/tcp wait  root  /usr/sbin/rpc.mountd rpc.mountd

       inetd ããèµ·åããå ´åã«ã¯ãé©å½ãªæéã«åä½è¦æ±ããªã㨠mountd ã¯çµäºããã

ãªãã·ã§ã³
       -f ã¾ã㯠--exports-file
              ãã®ãªãã·ã§ã³ã¯ã¨ã¯ã¹ãã¼ããã¡ã¤ã«ãæå®ããã
              ã¨ã¯ã¹ãã¼ããã¡ã¤ã«ã«ã¯ããã®ãµã¼ãã¼ããµã¼ãã¹ãæä¾ããã¯ã©ã¤ã¢ã³ãã¨ã
              ããããã®ãã¦ã³ãã«å¯¾ãã¦é©ç¨ããããã©ã¡ã¼ã¿ããªã¹ãããã¦ãã (exports(5)
              ãè¦ã)ã ããã©ã«ãã®ã¨ã¯ã¹ãã¼ããã¡ã¤ã«ã¯ /etc/exports ã§ããã

       -d facility ã¾ã㯠--debug facility
              ããããã®ãã©ã³ã¶ã¯ã·ã§ã³ã«å¯¾ãã詳細ãªå容ãã æ¨æºã¨ã©ã¼åºåã«ã‐
              ã°è¡¨ç¤ºããã facility ã«æå®ã§ããã®ã¯ã call (ãã¹ã¦ã®ã³ã¼ã«ãè¨é²)ã
              auth (ã¯ã©ã¤ã¢ã³ãã®èªè¨¼)ã fhcache (ãã¡ã¤ã«ãã³ãã«ã®ãã£ãã·ã¥æä½)ã
              rmtab (/etc/rmtab ã®æä½) ã§ããã
              ããã©ã«ãã§ã¯ããã¼ã¢ã³ããã©ã¢ã°ã©ã¦ã³ãã§å®è¡ãããªããã°ã ãã°åºåã¯
              syslogd ã«éãããã

       -F ã¾ã㯠--foreground
              é常 mountd ã¯ç«¯æ«ããåé¢ (detach)
              ãããããã®ãªãã·ã§ã³ãä¸ããããã¨åé¢ããªãã debug
              æå ±ã¯æ¨æºã¨ã©ã¼åºåã«è¡¨ç¤ºãããã

       -h ã¾ã㯠--help
              ãã«ãã®çãè¦ç´ã表示ããã

       -n ã¾ã㯠--allow-non-root
              IP ã®ç¹æ¨©ãã¼ã以å¤ããæ¥ããã¦ã³ãè¦æ±ã許å¯ããã NFS
              ã¯ã©ã¤ã¢ã³ãã®å¤ãå®è£ã§ã¯ããã®æå®ãå¿è¦ãªå ´åãããã
              éã«æ°ããå®è£ã«ã¯ãç¹æ¨©ãã¼ãã®ãã§ãã¯ãä¿¡é ¼ããªããã®ãããã

       -P portnum ã¾ã㯠--port portnum
              mountd ã« portnum ãã¼ããç£è¦ãããã ããã©ã«ãã§ã¯ã mountd ã¯
              /etc/services ã§æå®ããã¦ãã mount/udp ãã¼ããç£è¦ãã
              (ãããã¯ãããæå®ããã¦ããªã㨠1024 以ä¸ã®ä»»æã®ãã¼ããç£è¦ãã)ã

       -p ã¾ã㯠--promiscuous
              ãµã¼ãããç¡å¶é (promiscuous)ãã¢ã¼ãã«ããã
              ãããã¯ã¼ã¯ä¸ã®ãã¹ã¦ã®ãã¹ãã«å¯¾ãã¦ãµã¼ãã¹ãæä¾ããã

       -r ã¾ã㯠--re-export
              ã¤ã³ãã¼ããã NFS ã SMB ãã¡ã¤ã«ã·ã¹ãã ã®åã¨ã¯ã¹ãã¼ãã許ãã
              ããã«ããããã·ã³ã¯ NFS/SMB ã®ä¸ç¶å¨ã¨ãªãã
              ã«ã¼ãããã¯ãã¦ã³ããåã¨ã¯ã¹ãã¼ãããã¨ãã«ã¯ç¹ã«æ³¨æãããã¨ã
              ãã¦ã³ããã¤ã³ãã«åå¥ããã¨ãã¯ã©ã¤ã¢ã³ããã¡ã¤ã«ã·ã¹ãã ã®ã³ã¼ãã¨
              ãµã¼ãã¼ã¯ãããããã¯ãã¦ãã¾ãã

       -t ã¾ã㯠--no-spoof-trace
              ããã©ã«ãã§ã¯ã mountd ã¯æ¨©éã®ãªãã¯ã©ã¤ã¢ã³ãããã®å¨ã¦ã®ã¢ã¯ã»ã¹ãã‐
              ã°ã«è¨é²ããã ãã®ãªãã·ã§ã³ã使ãã¨ã exports
              ãã¡ã¤ã«ã«æ示çã«ãªã¹ãããã¦ããå¨ã¦ã®ãã¹ãã«ã¤ãã¦ã
              ãã®ãããªæããã¾ãè¡çºããã°ã«è¨é²ããªãã

       -v ã¾ã㯠--version
              ããã°ã©ã ã®ç¾å¨ã®ãã¼ã¸ã§ã³çªå·ã表示ããã

   ã¢ã¯ã»ã¹å¶å¾¡
       ã»ãã¥ãªãã£ãå¼·åããããã mountd ã¸ã®ã¢ã¯ã»ã¹ã¯ TCP wrapper
       ã©ã¤ãã©ãªã§å¶éãããã¨ãã§ããã åã©ã¤ãã©ãªã¯ Wietse Venema ã® tcp_wrappers
       ããã±ã¼ã¸ã®ä¸é¨ã§ããã ãã®ãªãã·ã§ã³ããµãã¼ããããã©ããã¯ã³ã³ãã¤ã«æã«æå®ã§ããã ã‐
       ã¼ã«ã«ãªãããã¯ã¼ã¯ (ä¾ã¨ã㦠192.168.1.0 ã¨ããã) ã ãã«
       ã¢ã¯ã»ã¹ã許å¯ãããå ´åã¯ã以ä¸ã®ãããªè¡ã /etc/hosts.allow
       ãã¡ã¤ã«ã«è¿½å ããã°ãã:

       rpc.mountd : 192.168.1. : allow
       rpc.mountd : ALL        : deny

       ãã®ä¾ã¯ãTCP wrapper ã©ã¤ãã©ãªã
       ãªãã·ã§ã³ããµãã¼ããã¦ã³ã³ãã¤ã«ãããå ´åã«æå¹ã§ãã (ç‐
       èã¯ãªãã·ã§ã³ã®ãµãã¼ããå¼·ããããã)ã
       ãªãã·ã§ã³ããµãã¼ãããªãããã«ã³ã³ãã¤ã«ãããå ´åã¯ã 以ä¸ã® 2 è¡ã
       /etc/hosts.allow 㨠/etc/hosts.deny ã¨ã«ãããã追å ããå¿è¦ããã:

       # hosts.allow:
       rpc.mountd : 192.168.1
       # hosts.deny
       rpc.mountd : ALL

       ããã®æå ±ãå¤æ´ããããå¤æ´ãæå¹ã«ããã«ã¯ mountd ãåèµ·åããå¿è¦ããããä¸åº¦ kill
       ãã¦åèµ·åãããã HUP ã·ã°ãã«ãéãã°è¯ãã

ãã°
       /etc/mtab ã®æå ±ã¯ä¸æ£ç¢ºã§ãããã¨ã®ã»ããå¤ãã

ã·ã°ãã«
       SIGHUP ãåãåãã¨ã mountd 㯠exports ãã¡ã¤ã«ã¨ã /etc/hosts.allow ããã³
       /etc/hosts.deny ãã¡ã¤ã«ã§å®ç¾©ããã¦ãããã¹ã¦ã®ã¢ã¯ã»ã¹å¶éãèªã¿ãªããã
       ã¨ã¯ã¹ãã¼ãã®å¤æ´ãæå¹ã«ããã«ã¯ã nfsd ã«ã SIGHUP ãéãå¿è¦ããããã¨ã«æ³¨æããã

ãã¡ã¤ã«
       /etc/exports
       /etc/rmtab

é¢é£é ç®
       exports(5), nfsd(8), ugidd(8C), showmount(8)



                                11 August 1997                       MOUNTD(8)