


TFTPD(8C)             MAINTENANCE COMMANDS              TFTPD(8C)



NAME
     tftpd, in.tftpd -  TCP/IP  Trivial  File  Transfer  Protocol
     server

SYNOPSIS
     /usr/etc/in.tftpd [-s] [ _h_o_m_e_d_i_r ]

Sun386i SYNOPSIS
     /usr/etc/in.tftpd [-s] [-p] [ _h_o_m_e_d_i_r ]

AVAILABILITY
     This program  is  available  with  the  _N_e_t_w_o_r_k_i_n_g  software
     installation  option.   Refer  to  _I_n_s_t_a_l_l_i_n_g  _S_u_n_O_S _4._1 for
     information on how to install optional software.

DESCRIPTION
     tftpd is a server that  supports  the  TCP/IP  Trivial  File
     Transfer  Protocol  (TFTP).  This server is normally started
     by inetd(8C) and operates at the port indicated in the  tftp
     Internet  service  description  in the /etc/inetd.conf file;
     see inetd.conf(5) for details.  The default  /etc/inetd.conf
     file starts this server in secure mode, that is, with the -s
     option enabled.  To run unsecure tftpd, modify this file and
     remove the -s option.

     Before responding to  a  request,  the  server  attempts  to
     change  its  current directory to _h_o_m_e_d_i_r; the default value
     is /tftpboot.

Sun386i DESCRIPTION
     The tftpd daemon acts as described  above,  except  that  it
     will  perform  certain  filename  mapping  operations unless
     instructed otherwise by the -p command line argument or when
     operating  in  a  secure  environment.  This mapping affects
     only TFTP boot requests and will  not  affect  requests  for
     existing files.

     The semantics of the changes are as follows. Only  filenames
     of  the  format  _i_p-_a_d_d_r_e_s_s  or  _i_p-_a_d_d_r_e_s_s._a_r_c_h,  where _i_p-
     _a_d_d_r_e_s_s is the IP address in hex, and _a_r_c_h  is  the  hosts's
     architecture  (as  returned by the arch(1) command), that do
     not correspond to files in /tftpboot,  are  mapped.  If  the
     address is known through a Network Information Service (NIS)
     lookup, any file of the form /tftpboot/ip-address* (with  or
     without  a  suffix)  is returned. If there are multiple such
     files, any one may be returned. If the _i_p-_a_d_d_r_e_s_s is unknown
     (that  is  if the ipalloc (8C) service says the name service
     does not know the address), the filename is mapped  as  fol-
     lows: Names without the _a_r_c_h suffix are mapped into the name
     pnp.SUN3, and names with the suffix  are  mapped  into  pnp.
     _a_r_c_h. That file is returned if it exists.




Sun Release 4.1    Last change: 7 October 1990                  1






TFTPD(8C)             MAINTENANCE COMMANDS              TFTPD(8C)



OPTIONS
     -s   Secure.  When  specified,  the  directory  change  must
          succeed; and the daemon also changes its root directory
          to  _h_o_m_e_d_i_r.   This  option  is  set  in  the   default
          /etc/inetd.conf file.

          The use of tftp does not require an account or password
          on  the  remote system.  Due to the lack of authentica-
          tion information, tftpd will allow only publicly  read-
          able  files  to be accessed.  Files may be written only
          if they already exist and are publicly writable.  Note:
          this  extends  the  concept  of "public" to include all
          users on all hosts that can be reached through the net-
          work;  this  may not be appropriate on all systems, and
          its implications should be considered  before  enabling
          this service.

     tftpd runs with the user ID (UID) and group ID (GID) set  to
     -2, under the assumption that no files exist with that owner
     or  group.  However,  nothing  checks  this  assumption   or
     enforces this restriction.

Sun386i OPTIONS
     -p   Disable pnp entirely. Do not map filenames.

Sun386i FILES
     /tftpboot/*         filenames are IP addresses

SEE ALSO
     tftp(1C) inetd(8C), ipallocd(8C), netconfig(8C),

     Sollins, K.R., _T_h_e _T_F_T_P _P_r_o_t_o_c_o_l (_R_e_v_i_s_i_o_n _2), RFC 783, Net-
     work  Information  Center,  SRI  International,  Menlo Park,
     Calif., June 1981.

NOTES
     The Network Information Service (NIS) was formerly known  as
     Sun  Yellow Pages (YP). The functionality of the two remains
     the same; only the name has changed.

Sun386i WARNINGS
     A request for an _i_p-_a_d_d_r_e_s_s from a Sun-4 can be satisfied by
     a  file  named  _i_p-_a_d_d_r_e_s_s.386  for  compatibility with some
     early Sun-4 PROM monitors.











Sun Release 4.1    Last change: 7 October 1990                  2



