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

📄 netrc.5

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 5
字号:
.TH netrc 5.SH Namenetrc \- file used by ftp auto-login procedure (.netrc).SH Description.NXR "netrc=>\\&.netrc file" "format"The.PN \&.netrc file contains frequently needed options for.PN ftptransfers.The file resides in the owner's home directory on the machinefrom which the owner initiates the file transfer.If the file includes passwords, set permissions on the file with.MS chmod 1so that only the owner has readpermission..PPThe .PN \&.netrcfile uses the following format:.IP \(bu 5Each line of the .PN \&.netrc file defines options for a specific machine.  .IP \(bu 5A line in the .PN \&.netrc file can be either a machine line or adefault line.  .IP \(bu 5The default line must be the first line in the file if itis present.  .IP \(bu 5Fields in a default line appear in this order:default, default machine name..IP \(bu 5Fields in a machine line appear in this order: machine, machinename, options..IP \(bu 5Fields on each line are separated by spaces or tabs..PPThe following are valid options for a machine line:.PP.TStab(@);lfHB lfHB lfHB lfHBlfR  lfR  lfR lfR ._.sp 4pOption@Parameter@Default@Description.sp 4p_.sp 6pmachine@machine name@none@Identifies a remote @@@machine namelogin@name@local name@Identifies user on the @@@remote machinepassword@password@none@Password for remote @@@login nameaccount@password@none@Additional account passwordmacdef@macro name@none@Defines a macro like the @@@\f(CWftp macdef \fRcommand.sp 6p_.TE.ne 13.SH ExampleThis is an example of a .PN \&.netrc file:.EXmachine cactus login smithmachine nic.ddn.mil login anonymous password anonymousmachine palm.stateu.edu login smith password ualonerwelcomemacdef byenowquitmacdef lsdir.EEThe first line allows .PN ftpto log Smith into the machine.PN cactusafter prompting for and receiving Smith's password, as shown in this example:.br.ne 8.EX$ ftp cactusConnected to cactus.tech.eduFTP server ready.Password required for SMITH.User logged inftp>.EE.PPThe second line of the file allows the user to perform ananonymous .PN ftptransfer after typing this command:.EX$ ftp nic.ddn.mil.EESee .MS ftp 1cfor a description of anonymous FTP transfers..PPThe third line allows Smith to log into the machine.PN palm.stateu.edu .Smith will not be prompted for a password because thismachine line includes password information.  Because the .PN \&.netrcfile includes password information, the filemust not have read permission set for world and group..PPThe .PN macdeflines are macro definitions, which operate much like shell aliases.  A blank linemust follow each macro definition to signal the end of the macro. The first macro definition defines .PN byenowas an alias for the.PN ftp.PN quitcommand..SH See Alsoftp(1c)

⌨️ 快捷键说明

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