Seth Woolley's Man Viewer

netrc(5) - .netrc, netrc - user configuration for ftp - man 5 netrc

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

NETRC(5)                    BSD File Formats Manual                   NETRC(5)

NAME
     netrc, .netrc -- user configuration for ftp

DESCRIPTION
     This file(1,n) contains configuration and autologin information for the File
     Transfer Protocol client ftp(1).

     The .netrc file(1,n) contains login(1,3,5) and initialization information used by the
     auto-login process.  It resides in(1,8) the user's home directory.  The fol-
     lowing tokens are recognized; they may be separated by spaces, tabs, or
     new-lines:

     machine name
               Identify a remote machine name.  The auto-login process
               searches the .netrc file(1,n) for a machine token that matches the
               remote machine specified on the ftp command line or as an open(2,3,n)
               command argument.  Once a match is made, the subsequent .netrc
               tokens are processed, stopping when the end of file(1,n) is reached
               or another machine or a default token is encountered.

     default   This is the same as machine name except that default matches
               any name.  There can be only one default token, and it must be
               after all machine tokens.  This is normally used as:

                     default login(1,3,5) anonymous password user@site

               thereby giving the user automatic anonymous ftp login(1,3,5) to
               machines not specified in(1,8) .netrc.  This can be overridden by
               using the -n flag to disable auto-login.

     login(1,3,5) name
               Identify a user on the remote machine.  If this token is
               present, the auto-login process will initiate a login(1,3,5) using the
               specified name.

     password string(3,n)
               Supply a password.  If this token is present, the auto-login
               process will supply the specified string(3,n) if(3,n) the remote server
               requires a password as part of the login(1,3,5) process.  Note that if(3,n)
               this token is present in(1,8) the .netrc file(1,n) for any user other
               than anonymous, ftp will abort(3,7) the auto-login process if(3,n) the
               .netrc is readable by anyone besides the user.

     account string(3,n)
               Supply an additional account password.  If this token is
               present, the auto-login process will supply the specified
               string(3,n) if(3,n) the remote server requires an additional account
               password, or the auto-login process will initiate an ACCT com-
               mand if(3,n) it does not.

     macdef name
               Define a macro.  This token functions like the ftp macdef com-
               mand functions.  A macro is defined with the specified name;
               its contents begin with the next .netrc line and continue until
               a null line (consecutive new-line characters) is encountered.
               If a macro named(5,8) init is defined, it is automatically executed
               as the last step in(1,8) the auto-login process.

SEE ALSO
     ftp(1), ftpd(8)

Linux NetKit (0.17)           September 23, 1997           Linux NetKit (0.17)

References for this manual (incoming links)