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

📄 implement

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻
📖 第 1 页 / 共 3 页
字号:
(e.g. cua0),(Hardwired lines have a number ``0'' in this field.),.IP speedis the line speed..RE.LPThe line.IP "" 12cul0\ \ cua0\ \ 300.LPwould be set up for a system whichhad device cul0 wired to a call-unitcua0 for use at 300 baud..SHL-dialcodes.LPThis file contains entries with location abbreviations usedin the.I L.sysfile (e.g. py, mh, boston).The entry format is.IP "" 12abb\ \ dial-seq.LPwhere;.RS.IP abb 12is the abbreviation,.IP dial-seqis the dial sequence to call that location..RE.LPThe line.IP "" 12py\ \ 165\-.LPwould be set up so that entry py7777 wouldsend 165\-7777 to the dial-unit..SHLOGIN/SYSTEM NAMES.LPIt is assumed that the.I "login name"used by a remote computer to call into a local computeris not the same as the login name of a normal userof that local machine.However, several remote computers may employ the samelogin name..LPEach computer is given a unique.I "system name"which is transmitted at the start of each call.This name identifies the calling machine to the called machine..SHUSERFILE.LPThis file contains user accessibility information.It specifies four types of constraint;.RS.IP [1]which files can be accessed by a normal user of the local machine,.IP [2]which files can be accessed from a remote computer,.IP [3]which login name is used by a particular remote computer,.IP [4]whether a remote computer should be called back in order to confirmits identity..RE.LPEach line in the file has the following format.IP "" 6login,sys\ \ .B [c.B ]\ \ path-name\ \ .B [path-name.B ]\ ....LPwhere;.RS.IP login 12is the login name for a user or the remote computer,.IP  sysis the system name for a remote computer,.IP cis the optional.Icall-back required.Rflag,.IP path-nameis a path-name prefix that is acceptable for.I user..LP.RE.LPThe constraints are implemented as follows..RS.IP [1]When the program is obeying a command stored on the local machine,.I MASTERmode,the path-names allowed are those given for the first line in the.I USERFILEthat has a login name that matches the login name of the userwho entered the command.If no such line is found, the first line with a.I nulllogin name is used..IP [2]When the program is responding to a command from a remote machine,.I SLAVEmode, the path-names allowed are those given for the first linein the file that has the system name that matches the system nameof the remote machine.If no such line is found, the first one with a.I nullsystem name is used..IP [3]When a remote computer logs in, the login name thatit uses must appear in the.I USERFILE .There may be several lines with the same login name but one of them musteither have the name of the remote system or must contain a.I nullsystem name..IP [4]If the line matched in ([3]) contains a ``c'',the remote machine is called back before any transactions take place..RE.LPThe line.IP "" 12u,m  /usr/xyz.LPallows machine.I mto login with name.I uand request the transfer of files whose names start with``/usr/xyz''..LPThe line.IP "" 12dan,  /usr/dan.LPallows the ordinary user.I danto issue commands for files whose name starts with``/usr/dan''..LPThe lines.IP "" 12u,m /usr/xyz  /usr/spool.bru,  /usr/spool.LPallows any remote machine to login with name.I u ,but if its system name is not.I m ,it can only ask to transfer files whose names start with``/usr/spool''..LPThe lines.IP "" 12root,  /.br,   /usr.LPallows any user to transfer files beginning with ``/usr''but the user with login.I rootcan transfer any file..SHL.sys.LPEach entry in this file represents one systemwhich can be called by the local uucp programs.The fields are described below..RS.SHsystem name.LPThe name of the remote system..SHtime.LPThis is a string which indicates the days-of-weekand times-of-day when the system shouldbe called(e.g. MoTuTh0800\-1730)..LPThe day portion may be a list containingsome of.IP.ISu Mo Tu We Th Fr Sa.R.LPor it may be.I Wkfor any week-day or.I Anyfor any day..LPThe time should be a range of times (e.g. 0800\-1230).If no time portion is specified, any timeof day is assumed to be ok for the call..SHdevice.LPThis is either.I ACUor the hardwired device to be used for the call.For the hardwired case, the last part of thespecial file name is used (e.g. tty0)..SHspeed.LPThis is the line speed for the call (e.g. 300)..SHphone.LPThe phone number is made up of an optionalalphabetic abbreviation and a numeric part.The abbreviation is one which appears in the.I L-dialcodesfile (e.g. mh5900, boston995\-9980)..LPFor the hardwired devices, this field containsthe same string as used for the.I devicefield..SHlogin.LPThe login information is given as a series offields and subfields in the format.IPexpect\ \ send\ .B [expect\ \ send.B ]\ ....LPwhere;.I expectis the string expected to be read and.I sendis the string to be sent when the.I expectstring is received..LPThe expect field may be made up of subfieldsof the form.IPexpect\fB[\fR\-send\-expect\fB]\fR....LPwhere the.I sendis sent if the prior.I expectis not successfully readand the.I expectfollowing the.I sendis the next expected string..LPThere are two special names available to be sentduring the login sequence.The string.I EOTwill send an EOT character and the string.I BREAKwill try to send a BREAK character.(The.I BREAKcharacter is simulated using line speed changesand null characters and may not work on alldevices and/or systems.).RE.LPA typical entry in the L.sys file would be.IP "" 6sys Any ACU 300  mh7654 login uucp ssword: word.LPThe expect algorithm looks at the last part of thestring as illustrated in the password field..RE.NHAdministration.LPThis section indicates some events and files which must beadministered for the.I uucpsystem.Some administration can be accomplished by .I "shell files"which can be initiated by.I crontabentries.Others will require manual intervention.Some sample .I "shell files"are given toward the end of this section..SHSQFILE \- sequence check file.LPThis file is set up in the.I programdirectory and contains an entry for each remotesystem with which you agree to perform conversationsequence checks.The initial entry is just the system name ofthe remote system.The first conversation will add two items to the line,the conversation count, and the date/time of the mostresent conversation.These items will be updated with each conversation.If a sequence check fails, the entry will have tobe adjusted..SHTM \- temporary data files.LPThese files are created in the.I spooldirectory while files are being copiedfrom a remote machine.Their names have the form.IP "" 12\fBTM\fR.pid.ddd.LPwhere.I pidis a process-id and.I dddis a sequential three digit number starting at zerofor each invocation of.I uucicoand incremented for each file received.After the entire remote file is received, the.I TMfile is moved/copied to the requested destination.If processing is abnormally terminated or themove/copy fails, the file will remain in thespool directory..LPThe leftover files should be periodically removed;the.I uucleanprogram is useful in this regard.The command.IP "" 12uuclean\ \ \-pTM.LPwill remove all.I TMfiles older than three days..SHLOG \- log entry files.LPDuring execution of programs, individual.I LOGfiles are created in the.I spooldirectory with information aboutqueued requests, calls to remote systems,execution of.I uuxcommands and file copy results.These files should be combined into the.I LOGFILEby using the.I uulogprogram.This program will put the new.I LOGfiles at the beginning of the existing.I LOGFILE.The command.IP "" 12uulog.LPwill accomplish the merge.Options are available to print some or all thelog entries after the files are merged.The.I LOGFILEshould be removed periodicallysince it is copied each time new LOGentries are put into the file..LPThe.I LOGfiles are created initially with mode 0222.If the program which creates the file terminates normally,it changes themode to 0666.Aborted runs may leave the files with mode0222 and the.I uulogprogram will not read or remove them.To remove them, either use.I rm ,.I uuclean ,or change the mode to 0666 and let.I uulogmerge them with the.I LOGFILE ..SHSTST \- system status files.LPThese files are created in the spool directory by the.I uucicoprogram.They contain information of failures such as login, dialup orsequence check and will contain a.I TALKINGstatus when to machines are conversing.The form of the file name is.IP\fBSTST\fR.sys.LPwhere.I sysis the remote system name..LPFor ordinary failures (dialup, login), the file will preventrepeated tries for about one hour.For sequence check failures, the file must be removed beforeany future attempts to converse with that remote system..LPIf the file is left due to an aborted run, it may contain a.I TALKINGstatus.In this case, the file must be removed before a conversationis attempted..SHLCK \- lock files.LPLock files are created for each device in use (e.g. automatic callingunit) and each system conversing.This prevents duplicate conversations and multiple attempts to use thesame devices.The form of the lock file name is.IP "" 12\fBLCK..\fRstr.LPwhere.I stris either a device or system name.The files may be left in the spool directory if runs abort.They will be ignored (reused) after a time of about 24 hours.When runs abort and calls are desired before the time limit,the lock files should be removed..SHShell Files.LPThe.I uucpprogram will spool work and attempt to start the.I uucicoprogram, but the starting of.I uucicowill sometimes fail.(No devices available, login failures etc.).Therefore, the.I uucicoprogram should be periodically started.The command to start.I uucicocan be put in a ``shell'' file with a command to merge.I LOGfiles and started by a crontab entry on an hourly basis.The file could contain the commands.IP.I program /uulog.br.I program /uucico\ \ \-r1.LPNote that the ``\-r1'' option is required to start the.I uucicoprogram in.I MASTERmode..LPAnother shell file may be set up on a daily basis to remove.I TM ,.I STand.I LCKfilesand.I C.or.I D.files for work which can not be accomplished forreasons like bad phone number, login changes etc.A shell file containing commands like.IP.I program /uuclean\ \ \-pTM \-pC. \-pD..br.I program /uuclean\ \ \-pST \-pLCK \-n12.LPcan be used.Note the ``\-n12'' option causes the.I STand.I LCKfiles older than 12 hours to be deleted.The absence of the ``\-n'' option will use a three day timelimit..LPA daily or weekly shell should also be createdto remove or save old.I LOGFILE s.A shell like.IPcp.I spool /LOGFILE\ \ .I spool /o.LOGFILE.brrm.I spool /LOGFILE.LPcan be used..SHLogin Entry.LPOne or more logins should be set up for.I uucp .Each of the ``/etc/passwd'' entries shouldhave the``\fIprogram\fR/uucico''as the shell to be executed.The login directory is not used, but if the systemhas a special directory for use by the users forsending or receiving file, it should as thelogin entry.The various logins are used in conjunction with the.I USERFILEto restrict file access.Specifying the.I shellargument limits the login to the use of uucp(.I uucico )only..SHFile Modes.LPIt is suggested that the owner and file modes of variousprograms and files be set as follows..LPThe programs.I uucp ,.I uux ,.I uucicoand.I uuxqtshould be owned by the.I uucplogin with the ``setuid'' bit set and only executepermissions (e.g. mode 04111).This will prevent outsiders from modifying the programsto get at a standard.I shellfor the.I uucplogins..LPThe.I L.sys ,.I SQFILEand the.I USERFILEwhich are put in the.I programdirectory should be owned bythe.I uucplogin and set with mode 0400..SG MH-1273-DAN-unix

⌨️ 快捷键说明

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