⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 netrc.5

📁 ftp源码
💻 5
字号:
.\" Copyright (c) 1985, 1989, 1990 The Regents of the University of California..\" All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"	from: @(#)ftp.1	6.18 (Berkeley) 7/30/91.\"	from: ftp.1,v 1.2 1997/06/08 20:01:35 dholland Exp.\"     $Id: netrc.5,v 1.1.1.1 2006/11/14 06:36:00 wdshih Exp $.\".Dd September 23, 1997.Dt NETRC 5.Os "Linux NetKit (0.16)".Sh NAME.Nm netrc, .netrc.Nd user configuration for ftp.Sh DESCRIPTIONThis file contains configuration and autologin information for the File Transfer Protocol client .Xr ftp 1 ..PpThe.Pa .netrcfile contains login and initialization informationused 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:.Bl -tag -width password.It Ic machine Ar nameIdentify a remote machine.Ar name .The auto-login process searches the.Pa .netrcfile for a.Ic machinetoken that matches the remote machine specified on the.Nm ftpcommand line or as an.Ic opencommand argument.Once a match is made, the subsequent.Pa .netrctokens are processed,stopping when the end of file is reached or another.Ic machineor a.Ic defaulttoken is encountered..It Ic defaultThis is the same as.Ic machine.Ar nameexcept that.Ic defaultmatches any name.There can be only one.Ic defaulttoken, and it must be after all.Ic machinetokens.This is normally used as:.Pp.Dl default login anonymous password user@site.Ppthereby giving the user.Ar automaticanonymous ftp login tomachines not specified in.Pa .netrc .This can be overriddenby using the.Fl nflag to disable auto-login..It Ic login Ar nameIdentify a user on the remote machine.If this token is present, the auto-login process will initiatea login using the specified.Ar name ..It Ic password Ar stringSupply a password.If this token is present, the auto-login process will supply thespecified string if the remote server requires a password as partof the login process.Note that if this token is present in the.Pa .netrcfile for any user otherthan.Ar anonymous  ,.Nm ftpwill abort the auto-login process if the.Pa .netrcis readable byanyone besides the user..It Ic account Ar stringSupply an additional account password.If this token is present, the auto-login process will supply thespecified string if the remote server requires an additionalaccount password, or the auto-login process will initiate an.Dv ACCTcommand if it does not..It Ic macdef Ar nameDefine a macro.This token functions like the.Nm ftp.Ic macdefcommand functions.A macro is defined with the specified name; its contents begin with thenext.Pa .netrcline and continue until a null line (consecutive new-linecharacters) is encountered.If a macro named.Ic initis defined, it is automatically executed as the last step in theauto-login process..El.Sh SEE ALSO.Xr ftp 1 ,.Xr ftpd 8

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -