version 2 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
---- |
|
|
2 |
__NAME__ |
|
|
3 |
|
|
|
4 |
|
|
|
5 |
netrc - user configuration for ftp |
|
|
6 |
__SYNOPSIS__ |
|
|
7 |
|
|
|
8 |
|
|
|
9 |
~/.netrc |
|
|
10 |
__DESCRIPTION__ |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
This file contains configuration and autologin information |
|
|
14 |
for the File Transfer Protocol client |
|
|
15 |
ftp(1). |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
The .netrc file contains login and initialization informa- tion 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: |
|
|
19 |
machine name |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
Identify a remote machine name. The auto-loginprocess searches the .netrc file for a machine token that matches the remote machine specified on the ftp command line or as an open command argu- ment. Once a match is made, the subsequent .netrc tokens are processed, stopping when the end of file is reached or another machine or a default token is encountered. |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
default |
|
|
26 |
This is the same as machine name except that default matches |
|
|
27 |
any name. There can be only one default token, and it must |
|
|
28 |
be after all machine tokens. This is normally used |
|
|
29 |
as: |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
default login anonymous password |
|
|
33 |
user@site |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
thereby giving the user automatic anonymous ftp login to |
|
|
37 |
machines not specified in .netrc. This can be |
|
|
38 |
overridden by using the -n flag to disable |
|
|
39 |
auto-login. |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
login name |
|
|
43 |
Identify a user on the remote machine. If this token is |
|
|
44 |
present, the auto-login process will ini- tiate a login |
|
|
45 |
using the specified name. |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
password string |
|
|
49 |
Supply a password. If this token is present, the auto-login |
|
|
50 |
process will supply the specified string if the remote |
|
|
51 |
server requires a password as part of the login process. |
|
|
52 |
Note that if this token is pre- sent in the .netrc |
|
|
53 |
file for any user other than anonymous, ftp will abort the |
|
|
54 |
auto-login process if the .netrc is readable by |
|
|
55 |
anyone besides the user. |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
account string |
|
|
59 |
Supply an additional account password. If this token is |
|
|
60 |
present, the auto-login process will sup- ply the specified |
|
|
61 |
string if the remote server requires an additional account |
|
|
62 |
password, or the auto-login process will initiate an |
|
|
63 |
ACCT command if it does not. |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
macdef name |
|
|
67 |
Define a macro. This token functions like the ftp macdef |
|
|
68 |
command functions. A macro is defined with the specified |
|
|
69 |
name; its contents begin with the next .netrc line |
|
|
70 |
and continue until a null line (consecutive new-line |
|
|
71 |
characters) is encountered. If a macro named init is |
|
|
72 |
defined, it is automati- cally executed as the last step in |
|
|
73 |
the auto-login process. |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
__SEE ALSO__ |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
ftp(1), ftpd(8) |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
Linux !NetKit (0.17) September 23, 1997 1 |
|
|
83 |
---- |