netrc

NAME

SYNOPSIS

DESCRIPTION

This file contains configuration and autologin information for the File Transfer Protocol client ftp(1)
The
file contains login and initialization information used by the auto-login process. It resides in the user's home directory. The following tokens are recognized; they may be separated by spaces, tabs, or new-lines:
  • name Identify a remote machine The auto-login process searches the
file for a c machine token that matches the remote machine specified on the command line or as an c open command argument. Once a match is made, the subsequent
tokens are processed, stopping when the end of file is reached or another c machine or a c default token is encountered.
  • default This is the same as c machine except that c default matches any name. There can be only one c default token, and it must be after all c machine tokens. This is normally used as:
  • thereby giving the user anonymous ftp login to machines not specified in
    This can be overridden by using the flag to disable auto-login.
  • name Identify a user on the remote machine. If this token is present, the auto-login process will initiate a login using the specified
  • string Supply a password. If this token is present, the auto-login process will supply the specified string if the remote server requires a password as part of the login process. Note that if this token is present in the
  • file for any user other than will abort the auto-login process if the
    is readable by anyone besides the user.
  • string Supply an additional account password. If this token is present, the auto-login process will supply the specified string if the remote server requires an additional account password, or the auto-login process will initiate an command if it does not.
  • name Define a macro. This token functions like the c macdef command functions. A macro is defined with the specified name; its contents begin with the next
  • line and continue until a null line (consecutive new-line characters) is encountered. If a macro named c init is defined, it is automatically executed as the last step in the auto-login process.

    SEE ALSO

    ftp(1) ftpd(8)