Print this page
5069 Removal of wu-ftpd
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Adam Stevko <adam.stevko@gmail.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man4/netrc.4
+++ new/usr/src/man/man4/netrc.4
1 1 '\" te
2 2 .\" Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
3 3 .\" Copyright 1989 AT&T
4 4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 7 .TH NETRC 4 "Aug 25, 2006"
8 8 .SH NAME
9 9 netrc \- file for ftp remote login data
10 10 .SH DESCRIPTION
11 -.sp
12 11 .LP
13 12 The \fB\&.netrc\fR file contains data for logging in to a remote host over the
14 13 network for file transfers by \fBftp\fR(1). This file resides in the user's
15 14 home directory on the machine initiating the file transfer. Its permissions
16 15 should be set to disallow read access by group and others. See \fBchmod\fR(1).
17 16 .sp
18 17 .LP
19 18 Tokens can be separated by \fBSPACE\fR, \fBTAB\fR, or \fBNEWLINE\fR characters.
20 19 The following tokens are supported:
21 20 .sp
22 21 .ne 2
23 22 .na
24 23 \fB\fBaccount\fR \fIstring\fR\fR
25 24 .ad
26 25 .RS 19n
27 26 Supply an additional account password. If this token is present, the auto-login
28 27 process supplies the specified string if the remote server requires an
29 28 additional account password. If the remote server does not require an
30 29 additional account password, the auto-login process initiates an \fBACCT\fR
31 30 command.
32 31 .RE
33 32
34 33 .sp
35 34 .ne 2
36 35 .na
37 36 \fB\fBdefault\fR\fR
38 37 .ad
39 38 .RS 19n
40 39 Same as \fBmachine\fR \fIname\fR, except that default matches any name. There
41 40 can be only one \fBdefault\fR token, and it must be after all \fBmachine\fR
42 41 tokens. The \fBdefault\fR token is normally used as follows:
43 42 .sp
44 43 .in +2
45 44 .nf
46 45 default login anonymous password \fIuser\fR@\fIsite\fR
47 46 .fi
48 47 .in -2
49 48 .sp
50 49
51 50 Such an entry gives the user automatic anonymous \fBftp\fR login to machines
52 51 not specified in \fB\&.netrc\fR.
53 52 .RE
54 53
55 54 .sp
56 55 .ne 2
57 56 .na
58 57 \fB\fBlogin\fR \fIname\fR\fR
59 58 .ad
60 59 .RS 19n
61 60 Identify a user on the remote machine. If this token is present, the auto-login
62 61 process initiates a login using the specified name.
63 62 .RE
64 63
65 64 .sp
66 65 .ne 2
67 66 .na
68 67 \fB\fBmachine\fR \fIname\fR\fR
69 68 .ad
70 69 .RS 19n
71 70 Identify a remote machine name. The auto-login process searches the
72 71 \fB\&.netrc\fR file for a \fBmachine\fR token that matches the remote machine
73 72 specified on the \fBftp\fR command line or as an \fBopen\fR command argument.
74 73 Once a match is made, the subsequent \fB\&.netrc\fR tokens are processed,
75 74 stopping when the \fBEOF\fR is reached or another \fBmachine\fR token is
76 75 encountered.
77 76 .RE
78 77
79 78 .sp
80 79 .ne 2
81 80 .na
82 81 \fB\fBmacdef\fR \fIname\fR\fR
83 82 .ad
84 83 .RS 19n
85 84 Define a macro. This token functions the same as \fBftp\fR \fBmacdef\fR. A
86 85 macro is defined with the specified name; its contents begin with the next
87 86 \fB\&.netrc\fR line and continue until a null line (consecutive \fBNEWLINE\fR
88 87 characters) is encountered. If a macro named \fBinit\fR is defined, it is
89 88 automatically executed as the last step in the auto-login process.
90 89 .RE
91 90
92 91 .sp
93 92 .ne 2
94 93 .na
95 94 \fB\fBpassword\fR \fIstring\fR\fR
96 95 .ad
97 96 .RS 19n
98 97 Supply a password. If this token is present, the auto-login process supplies
99 98 the specified string if the remote server requires a password as part of the
100 99 login process. If this token is present in the \fB\&.netrc\fR file, \fBftp\fR
101 100 aborts the auto-login process if the \fB\&.netrc\fR is readable by anyone
102 101 besides the user.
103 102 .RE
104 103
105 104 .sp
106 105 .ne 2
107 106 .na
108 107 \fB\fBskipsyst\fR\fR
109 108 .ad
110 109 .RS 19n
111 110 Skip the \fBSYST\fR command that is sent by default to all remote servers upon
112 111 connection. The system command is what enables the automatic use of binary mode
113 112 rather than the protocol default ascii mode.
114 113 .sp
115 114 As some older servers cannot handle the \fBftp\fR command, this directive is
116 115 provided to allow inter-operability with these servers.
117 116 .RE
118 117
119 118 .SH EXAMPLES
120 119 .LP
121 120 \fBExample 1 \fRA Sample \fB\&.netrc\fR File
122 121 .sp
123 122 .LP
124 123 A \fB\&.netrc\fR file containing the following line:
125 124
126 125 .sp
127 126 .in +2
128 127 .nf
↓ open down ↓ |
107 lines elided |
↑ open up ↑ |
129 128 machine ray login demo password mypassword
130 129 .fi
131 130 .in -2
132 131
133 132 .sp
134 133 .LP
135 134 allows an autologin to the machine \fBray\fR using the login name \fBdemo\fR
136 135 with password \fBmypassword\fR.
137 136
138 137 .SH FILES
139 -.sp
140 138 .ne 2
141 139 .na
142 140 \fB\fB~/.netrc\fR\fR
143 141 .ad
144 142 .RS 12n
145 143
146 144 .RE
147 145
148 146 .SH SEE ALSO
149 -.sp
150 147 .LP
151 -\fBchmod\fR(1), \fBftp\fR(1), \fBin.ftpd\fR(1M)
148 +\fBchmod\fR(1), \fBftp\fR(1)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX