📄 4.t
字号:
each a directory and a password, and putting users who will wishto share software in the same groups..PPSeveral guest accounts have been provided on the distributionsystem; these accounts are for people at Berkeley,Bell Laboratories, and otherswho have done major work on UNIX in the past. You can delete these accounts,or leave them on the system if you expect that these people would haveoccasion to login as guests on your system..Sh 2 "Site tailoring".PPAll programs that require the site's name, or some similarcharacteristic, obtain the information through system callsor from files located in.Pn /etc .Aside from parts of thesystem related to the network, to tailor the system to yoursite you must simply select a site name, then edit the file.DS/etc/netstart.DEThe first lines in.Pn /etc/netstartuse a variable to set the hostname,.DShostname=\fImysitename\fP/bin/hostname $hostname.DEto define the value returned by the.Xr gethostname (2)system call. If you are running the name server, your sitename should be your fully qualified domain name. Programs such as.Xr getty (8),.Xr mail (1),.Xr wall (1),and.Xr uucp (1)use this system call so that the binary images are siteindependent..PPYou will also need to edit.Pn /etc/netstartto do the network interface initialization using.Xr ifconfig (8).If you are not sure how to do this, see sections 5.1, 5.2, and 5.3.If you are not running a routing daemon and havemore than one Ethernet in your environmentyou will need to set up a default route;see section 5.4 for details.Before bringing your system up multiuser,you should ensure that the networking is properly configured.The network is started by running.Pn /etc/netstart .Once started, you should test connectivity using.Xr ping (8).You should first test connectivity to yourself, then another host on your Ethernet,and finally a host on another Ethernet.The.Xr netstat (8)program can be used to inspect and debugyour routes; see section 5.4..Sh 2 "Setting up the line printer system".PPThe line printer system consists of at leastthe following files and commands:.DS.TSl l./usr/bin/lpq spooling queue examination program/usr/bin/lprm program to delete jobs from a queue/usr/bin/lpr program to enter a job in a printer queue/etc/printcap printer configuration and capability database/usr/sbin/lpd line printer daemon, scans spooling queues/usr/sbin/lpc line printer control program/etc/hosts.lpd list of host allowed to use the printers.TE.DE.PPThe file.Pn /etc/printcapis a master database describing lineprinters directly attached to a machine and, also, printersaccessible across a network. The manual page.Xr printcap (5)describes the format of this database and alsoshows the default values for such things as the directoryin which spooling is performed. The line printer system handlesmultiple printers, multiple spooling queues, local and remoteprinters, and also printers attached via serial lines that requireline initialization such as the baud rate. Raster output devicessuch as a Varian or Versatec, and laser printers such as an Imagen,are also supported by the line printer system..PPRemote spooling via the network is handled with two spoolingqueues, one on the local machine and one on the remote machine.When a remote printer job is started with.Xr lpr ,the job is queued locally and a daemon process created to oversee thetransfer of the job to the remote machine. If the destinationmachine is unreachable, the job will remain queued until it ispossible to transfer the files to the spooling queue on theremote machine. The.Xr lpqprogram shows the contents of spoolqueues on both the local and remote machines..PPTo configure your line printers, consult the printcap manual pageand the accompanying document, ``4.3BSD Line Printer Spooler Manual'' (SMM:7).A call to the.Xr lpdprogram should be present in.Pn /etc/rc ..Sh 2 "Setting up the mail system".PPThe mail system consists of the following commands:.DS.TSl l./usr/bin/mail UCB mail program, described in \fImail\fP\|(1)/usr/sbin/sendmail mail routing program/var/spool/mail mail spooling directory/var/spool/secretmail secure mail directory/usr/bin/xsend secure mail sender/usr/bin/xget secure mail receiver/etc/aliases mail forwarding information/usr/bin/newaliases command to rebuild binary forwarding database/usr/bin/biff mail notification enabler/usr/libexec/comsat mail notification daemon.TE.DEMail is normally sent and received using the.Xr mail (1)command (found in.Pn /usr/bin/mail ),which provides a front-end to edit the messages sentand received, and passes the messages to.Xr sendmail (8)for routing.The routing algorithm uses knowledge of the network name syntax,aliasing and forwarding information, and network topology, asdefined in the configuration file.Pn /usr/lib/sendmail.cf ,to process each piece of mail.Local mail is delivered by giving it to the program.Pn /usr/libexec/mail.localthat adds it to the mailboxes in the directory.Pn /var/spool/mail/<username> ,using a locking protocol to avoid problems with simultaneous updates.After the mail is delivered, the local mail delivery daemon.Pn /usr/libexec/comsatis notified, which in turn notifies users who have issued a``\fIbiff\fP y'' command that mail has arrived..PPMail queued in the directory.Pn /var/spool/mailis normally readable only by the recipient.To send mail that is secure against perusal(except by a code-breaker) you should use the secret mail facility,which encrypts the mail..PPTo set up the mail facility you should read the instructions in thefile READ_ME in the directory.Pn /usr/src/usr.sbin/sendmailand then adjust the necessary configuration files.You should also set up the file.Pn /etc/aliasesfor your installation, creating mail groups as appropriate.For more informations see``Sendmail Installation and Operation Guide'' (SMM:8) and``Sendmail \- An Internetwork Mail Router'' (SMM:9)..Sh 3 "Setting up a UUCP connection".LPThe version of.Xr uucpincluded in \*(4B has the following features:.IP \(bu 3support for many auto call units and dialersin addition to the DEC DN11,.IP \(bu 3breakup of the spooling area into multiple subdirectories,.IP \(bu 3addition of an.Pn L.cmdsfile to control the setof commands that may be executed by a remote site,.IP \(bu 3enhanced ``expect-send'' sequence capabilities whenlogging in to a remote site,.IP \(bu 3new commands to be used in polling sites andobtaining snap shots of.Xr uucpactivity,.IP \(bu 3additional protocols for different communication media..LPThis section gives a brief overview of.Xr uucpand points out the most important steps in its installation..PPTo connect two UNIX machines with a.Xr uucpnetwork link using modems,one site must have an automatic call unitand the other must have a dialup port.It is better if both sites have both..PPYou should first read the paper in the UNIX System Manager's Manual:``Uucp Implementation Description'' (SMM:14).It describes in detail the file formats and conventions,and will give you a little context.In addition,the document ``setup.tblms'',located in the directory.Pn /usr/src/usr.bin/uucp/UUAIDS ,may be of use in tailoring the software to your needs..PPThe.Xr uucpsupport is located in three major directories:.Pn /usr/bin,.Pn /usr/lib/uucp,and.Pn /var/spool/uucp .User commands are kept in.Pn /usr/bin,operational commands in.Pn /usr/lib/uucp ,and.Pn /var/spool/uucpis used as a spooling area.The commands in.Pn /usr/binare:.DS.TSl l./usr/bin/uucp file-copy command/usr/bin/uux remote execution command/usr/bin/uusend binary file transfer using mail/usr/bin/uuencode binary file encoder (for \fIuusend\fP)/usr/bin/uudecode binary file decoder (for \fIuusend\fP)/usr/bin/uulog scans session log files/usr/bin/uusnap gives a snap-shot of \fIuucp\fP activity/usr/bin/uupoll polls remote system until an answer is received/usr/bin/uuname prints a list of known uucp hosts/usr/bin/uuq gives information about the queue.TE.DEThe important files and commands in.Pn /usr/lib/uucpare:.DS.TSl l./usr/lib/uucp/L-devices list of dialers and hard-wired lines/usr/lib/uucp/L-dialcodes dialcode abbreviations/usr/lib/uucp/L.aliases hostname aliases/usr/lib/uucp/L.cmds commands remote sites may execute/usr/lib/uucp/L.sys systems to communicate with, how to connect, and when/usr/lib/uucp/SEQF sequence numbering control file/usr/lib/uucp/USERFILE remote site pathname access specifications/usr/lib/uucp/uucico \fIuucp\fP protocol daemon/usr/lib/uucp/uuclean cleans up garbage files in spool area/usr/lib/uucp/uuxqt \fIuucp\fP remote execution server.TE.DEwhile the spooling area contains the following important files and directories:.DS.TSl l./var/spool/uucp/C. directory for command, ``C.'' files/var/spool/uucp/D. directory for data, ``D.'', files/var/spool/uucp/X. directory for command execution, ``X.'', files/var/spool/uucp/D.\fImachine\fP directory for local ``D.'' files/var/spool/uucp/D.\fImachine\fPX directory for local ``X.'' files/var/spool/uucp/TM. directory for temporary, ``TM.'', files/var/spool/uucp/LOGFILE log file of \fIuucp\fP activity/var/spool/uucp/SYSLOG log file of \fIuucp\fP file transfers.TE.DE.PPTo install.Xr uucpon your system,start by selecting a site name(shorter than 14 characters). A.Xr uucpaccount must be created in the password file and a password set up.Then,create the appropriate spooling directories with mode 755and owned by user.Xr uucp ,group \fIdaemon\fP..PPIf you have an auto-call unit,the L.sys, L-dialcodes, and L-devices files should be created.The L.sys file should containthe phone numbers and login sequencesrequired to establish a connection with a.Xr uucpdaemon on another machine.For example, our L.sys file looks something like:.DSadiron Any ACU 1200 out0123456789- ogin-EOT-ogin uucpcbosg Never Slave 300cbosgd Never Slave 300chico Never Slave 1200 out2010123456.DEThe first field is the name of a site,the second shows when the machine may be called,the third field specifies how the host is connected(through an ACU, a hard-wired line, etc.),then comes the phone number to use in connecting through an auto-call unit,and finally a login sequence.The phone numbermay contain common abbreviations that are defined in the L-dialcodes file.The device specification should refer to devicesspecified in the L-devices file.Listing only ACU causes the.Xr uucpdaemon,.Xr uucico ,to search for any available auto-call unit in L-devices.Our L-dialcodes file is of the form:.DSucb 2out 9%.DEwhile our L-devices file is:.DSACU cul0 unused 1200 ventel.DERefer to the README file in the.Xr uucpsource directory for more information about installation..PPAs.Xr uucpoperates it creates (and removes) many smallfiles in the directories underneath.Pn /var/spool/uucp .Sometimes files are left undeleted;these are most easily purged with the.Xr uucleanprogram.The log files can grow without bound unless trimmed back;.Xr uulogmaintains these files.Many useful aids in maintaining your.Xr uucpinstallation are included in a subdirectory UUAIDS beneath.Pn /usr/src/usr.bin/uucp .Peruse this directory and read the ``setup'' instructions also located there.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -