Diff for /wikisrc/guide/net-services.mdwn between versions 1.1 and 1.4

version 1.1, 2013/03/10 10:19:38 version 1.4, 2015/06/19 19:18:31
Line 1 Line 1
   **Contents**
   
   [[!toc levels=3]]
   
 # Network services  # Network services
   
 ## The Network File System (NFS)  ## The Network File System (NFS)
Line 39  A client host can access a remote direct Line 43  A client host can access a remote direct
   
  * The server host exports the directory to the client. The list of filesystems   * The server host exports the directory to the client. The list of filesystems
    a NFS server exports can be checked with the `showmount -e` command, see     a NFS server exports can be checked with the `showmount -e` command, see
    [showmount(8)](http://netbsd.gw.com/cgi-bin/man-cgi?showmount+8+NetBSD-5.0.1+i386):     [[!template id=man name="showmount" section="8"]]:
   
         # showmount -e 192.168.1.2          # showmount -e 192.168.1.2
         Exports list on 192.168.1.2:          Exports list on 192.168.1.2:
Line 48  A client host can access a remote direct Line 52  A client host can access a remote direct
  * The client host mounts the remote directory with the command `mount   * The client host mounts the remote directory with the command `mount
    192.168.1.2:/home /home`     192.168.1.2:/home /home`
   
 The [mount(8)](http://netbsd.gw.com/cgi-bin/man-cgi?mount+8+NetBSD-current)  The [[!template id=man name="mount" section="8"]]
 command has a rich set of options for remote directories which are not very  command has a rich set of options for remote directories which are not very
 intuitive (to say the least).  intuitive (to say the least).
   
Line 97  Each client machine has its number subst Line 101  Each client machine has its number subst
 line of the previous example.  line of the previous example.
   
 ### Setting up NFS automounting for `/net` with  ### Setting up NFS automounting for `/net` with
 [amd(8)](http://netbsd.gw.com/cgi-bin/man-cgi?amd+8+NetBSD-5.0.1+i386)  [[!template id=man name="amd" section="8"]]
   
 #### Introduction  #### Introduction
   
 The problem with NFS (and other) mounts is, that you usually have to be root to  The problem with NFS (and other) mounts is, that you usually have to be root to
 make them, which can be rather inconvenient for users. Using  make them, which can be rather inconvenient for users. Using
 [amd(8)](http://netbsd.gw.com/cgi-bin/man-cgi?amd+8+NetBSD-5.0.1+i386) you can  [[!template id=man name="amd" section="8"]] you can
 set up a certain directory (Commonly `/net`), under which one can make any  set up a certain directory (Commonly `/net`), under which one can make any
 NFS-mount as a normal user, as long as the filesystem about to be accessed is  NFS-mount as a normal user, as long as the filesystem about to be accessed is
 actually exported by the NFS server.  actually exported by the NFS server.
Line 137  amd configuration): Line 141  amd configuration):
   
         amd=yes          amd=yes
   
  2. **mkdir /amd**   2. `mkdir /amd`
   
  3. **mkdir /net**   3. `mkdir /net`
   
  4. Taking `/usr/share/examples/amd/amd.conf`, put the following into   4. Taking `/usr/share/examples/amd/amd.conf`, put the following into
     `/etc/amd.conf`:      `/etc/amd.conf`:
Line 155  amd configuration): Line 159  amd configuration):
         *             host==${key};type:=link;fs:=/                           \          *             host==${key};type:=link;fs:=/                           \
                       host!=${key};opts:=ro,soft,intr,nodev,nosuid,noconn                        host!=${key};opts:=ro,soft,intr,nodev,nosuid,noconn
   
  6. Reboot, or (re)start **amd** by hand:   6. Reboot, or (re)start amd by hand:
   
         # sh /etc/rc.d/amd restart          # sh /etc/rc.d/amd restart
   
Line 202  Next, to adjust the system clock give th Line 206  Next, to adjust the system clock give th
   
 (substitute the names of the servers in the example with the ones that you are  (substitute the names of the servers in the example with the ones that you are
 actually using. Option `-b` tells  actually using. Option `-b` tells
 [ntpdate(1)](http://netbsd.gw.com/cgi-bin/man-cgi?ntpdate+8+NetBSD-current) to  [[!template id=man name="ntpdate" section="1"]] to
 set the system time with the settimeofday system call, instead of slewing it  set the system time with the settimeofday system call, instead of slewing it
 with adjtime (the default). This option is suggested when the difference between  with adjtime (the default). This option is suggested when the difference between
 the local time and the correct time can be considerable.  the local time and the correct time can be considerable.
Line 229  In this case add the following line to t Line 233  In this case add the following line to t
 (the path is mandatory or the script will probably not find the executable).  (the path is mandatory or the script will probably not find the executable).
 Option `-s` diverts logging output from the standard output (this is the  Option `-s` diverts logging output from the standard output (this is the
 default) to the system  default) to the system
 [syslog(3)](http://netbsd.gw.com/cgi-bin/man-cgi?syslog+3+NetBSD-5.0.1+i386)  [[!template id=man name="syslog" section="3"]]
 facility, which means that the messages from ntpdate will usually end up in  facility, which means that the messages from ntpdate will usually end up in
 `/var/log/messages`.  `/var/log/messages`.
   
Line 237  Besides ntpdate there are other useful N Line 241  Besides ntpdate there are other useful N
 one of the local hosts into an NTP server for the remaining hosts of the  one of the local hosts into an NTP server for the remaining hosts of the
 network. The local server will synchronize its clock with a public server. For  network. The local server will synchronize its clock with a public server. For
 this type of configuration you must use the  this type of configuration you must use the
 [ntpd(8)](http://netbsd.gw.com/cgi-bin/man-cgi?ntpd+8+NetBSD-current)  [[!template id=man name="ntpd" section="8"]]
 daemon and create the `/etc/ntp.conf` configuration file. For example:  daemon and create the `/etc/ntp.conf` configuration file. For example:
   
     server ntp1.inrim.it      server ntp1.inrim.it
Line 249  ntpd can be started too from `rc.conf`,  Line 253  ntpd can be started too from `rc.conf`, 
   
 NTP is not your only option if you want to synchronize your network: you can  NTP is not your only option if you want to synchronize your network: you can
 also use the timed daemon or the  also use the timed daemon or the
 [rdate(8)](http://netbsd.gw.com/cgi-bin/man-cgi?rdate+8+NetBSD-5.0.1+i386)  [[!template id=man name="rdate" section="8"]]
 command as well. timed was developed for 4.3BSD.  command as well. timed was developed for 4.3BSD.
   
 Timed too uses a master-slave hierarchy: when started on a host, timed asks the  Timed too uses a master-slave hierarchy: when started on a host, timed asks the
Line 263  be started with the `-F hostname` option Line 267  be started with the `-F hostname` option
 local clock).  local clock).
   
 Finally,  Finally,
 [rdate(8)](http://netbsd.gw.com/cgi-bin/man-cgi?rdate+8+NetBSD-5.0.1+i386) can  [[!template id=man name="rdate" section="8"]] can
 be used to synchronize once against a given host, much like  be used to synchronize once against a given host, much like
 [ntpdate(8)](http://netbsd.gw.com/cgi-bin/man-cgi?ntpdate+8+NetBSD-5.0.1+i386).  [[!template id=man name="ntpdate" section="8"]].
 The host in question must have the "time" service (port 37) enabled in  The host in question must have the "time" service (port 37) enabled in
 `/etc/inetd.conf`.  `/etc/inetd.conf`.
   

Removed from v.1.1  
changed lines
  Added in v.1.4


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb