Manual page for netrc(4)
netrc - file for ftp remote login data
file contains data for logging in to a
remote host over the network for file transfers by
This file resides in the user's home directory
on the machine initiating the file transfer.
Its permissions should be set to
disallow read access by group and others (see
The following tokens
are recognized; they may be separated by
- machine name
Identify a remote machine name.
The auto-login process searches the
file for a
token that matches the remote machine specified on the
command line or as an
Once a match is made, the subsequent
tokens are processed, stopping when the
is reached or another
token is encountered.
- 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 name.
- password 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: if this token is present in the
will abort the auto-login process if the
is readable by anyone besides the user.
- account 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.
- macdef name
Define a macro.
This token functions the same as
A macro is defined with the
specified name; its contents begin with the next
line and continue until a
null line (consecutive
characters) is encountered.
If a macro named
is defined, it is automatically executed
as the last step in the
file containing the following line:
machine ray login demo password mypassword
allows an autologin to the machine
using the login name
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97