Article Title: Network Security Manual 2. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
3. HONEYDANBER UUCP
There are two major UUCP versions. The first version was issued with the UNIX system VPC. In this section, it is called the old UUCP, And the other version is called the HONEYDANBER uuucp, Which is promulgated by AT&T.
Compared with the old UUCP, honeydanber uucp has several improvements:
<1> more dial-up and network types are supported:
. The smart automatic dial-up Modem and the standard AT&T 801 automatic dial.
. Network, such as datakit vcs, UNET/ETHERNET, 3COM/ETHERNET, SYTEK, TCP
(Bsd unix system ).
. The dial connecting to the LAN.
. X.25 permanent virtual Ring Network (using X.25 Protocol)
<2> reorganized the/usr/spool/uucp directory, under which each remote system has
Directory.
<3> enhanced security.
The. USERFILE and L. cmds files are combined into a file Permissions.
. Remote executable commands can be specified on a level-1 system.
. You can control file transfer and file transfer respectively.
. The default security settings are strict.
(1) differences between honeydanber uucp and old UCP
The/usr/lib/UUCP/Systems file in HONEYDANBER uucp is/usr/lib/UUCP/L in UCP. sys. honeydanber uucp/usr/spool/uucp /. A directory under log replaces the old UUCP file/usr/spool/uucp/logFILE. /usr/spool/uucp /. the directories uucico, uucp, uux, and uuxqt in the log contain the corresponding Command record files, each directory corresponds to a recent active remote system with a record file (the record file is usually stored in these directories for one week ).
If a remote system that calls the system is not listed in the system file, uucico will not allow the remote system to perform any operations, but start the shell program/usr/lib/uucp/remote. unknown,
The default version of the shell program provided by UCP will be in/usr/spool/UUCP /. the Admin/Foreign file specifies the logon time, date, and system name of the remote system. you only need to make remote. unknown cannot be executed, so that this operation can be disabled to be compatible with the old UUCP.
C., D., X., TM. And other files are stored in different directories under/usr/spool/uucp. The directory name is the remote system name corresponding to the file.
In honeydanber uucp, The USERFILE and the L. cmds file are merged. This new file
/Usr/lib/uucp/Permissions provides more flexible access control for external systems. the rule table in the file defines various systems that can issue requests. the format of rules and options is as follows.
Rule = list option = yes | no option = list...
Here, rule is the login name or machine name, and list is the rule table used to separate items (the items in the table change with rule or option). option is one of the options discussed below, or an option table, or only select yes/no to allow/not to allow an operation.
(2) logon name rules
The LOGNAME rule is used to control uucico started as a logon shell.
LOGNAME = nuucp
Add the following default limits to all systems that log on to the nuucp account:
The remote system can only send files to the/usr/spool/uucppublic directory.
The remote system cannot request to receive any files.
. When uucico calls a remote system, it sends the text that has been queued to be sent to the remote system.
This is the only way uucico can accurately identify remote systems (any system can call this
System and impersonate the xyz system ).
. Commands that can be executed by uuxqtux remote system are defined by default.
Commands are defined during compilation (generally only rmail and rnews commands are used ).
. Use a colon to separate the uucico logon accounts of several other systems.
LOGNAME = nuucp: xuucp: yuucp
Any system with a LOGNAME rule will be rejected if you need to log on to the UUCP for transmission (the system will send the message "get lost" and suspend it ).
A logname rule is enough to start the honeydanber uucp system. in fact, when the system is running, a LOGNAME rule with no options will be placed in the Permissions file, this rule applies to all logon accounts with/usr/lib/uucp/uucico in the shell field of the/etc/passwd file entry.
You can use several options to ignore the default limits. These options can be combined to allow or restrict various operations. for example, you can use the WRITE option to specify one or more directories to be sent to the file, instead of the/usr/spool/uucppublic directory.
LOGNAME = nuucp WRITE =/
This rule allows files to be sent to any directory of the system. The limitations of 2-4 items remain. Note:
Remote UCP requests allow you to rewrite any file with a write license. You can specify directories for multiple written files, which are separated by colons:
LOGNAME = nnuucp WRITE =/usr:/floppy
This rule allows remote systems to write files to/usr and/floppy directories.
You can use the REQUEST = yes option to allow remote users to copy files from the system.
LOGNAME = nuucp REQUEST = yes
Objects that can be copied can only be files in the/usr/spool/uucppublic directory, such as, 1, 3, and 4. The item restrictions are still valid. to allow the remote system to copy files from other directories, use READ to select
LOGNAME = nuucp REQUEST = yes READ =/usr
This rule allows the remote system to copy files that can be read by others in the/usr directory. You can also specify a directory table like the WRITE option.
The SENDFILES = yes option allows uucico to send queued files when a remote system calls the system.
LOGNAME = nuucp SENDFILES = yes
The four restrictions are still valid.
Use the CALLBACK = yes option to force a system call back to log on to the specified account.
Note: CALLBACK = yes cannot be combined with other options. If other options are listed with this option, other options will be ignored.
The NOREAD and NOWRITE options can be used with the READ and WRITE options respectively. specify the directory table under the NOREAD option to create Exception Handling for the READ option (that is, the directory in which the READ directory cannot be requested by the remote system). For example:
LOGNAME = nuucp, REQUEST = yes READ =/NOREAD =/etc
This rule allows the remote system to request files that can be read by any other person in the system, but does not include files in/etc. The combined usage of NOWRITE and WRITE is similar to above.
Generally, do not change the default limit too much. if the storage phone fee is transferred by another system or the system administrator cannot dial out, use the SENDFILE option. to remove the restriction on some machines, you should create a uucico Logon account for those machines only. for example:
LOGNAME = nuucp SENDFILES = yes
LOGNAME = trusted SENDFILES = yes REQUEST = yes READ =/WRITE =/
The above rules allow a system that logs on to the trusted Account to have another file access permission in the system, the nuucp account password should be sent to all system administrators who want to establish a connection with the uucp of the system. The trusted account password can only be sent to the administrator of the trusted system.
For example, if the system has credit and untrusted uucp accounts, it is best to use the PUBDIR option to create different public accounts for these two accounts, PUBDIR allows the system administrator to change uucico's concept of public directories (default:/usr/spool/uucppublic ). for example:
LOGNAME = nuucp SENDFILES = yes REQUEST = yes \
PUBDIR =/usr/spool/uucppublic/nuucp
LOGNAME = trusted SENDFILES = yes REQUEST = yes READ =/WRITE = /\
PUBDIR =/usr/spool/uucppublic/trusted
The above options enable the files to be sent to the public directory. For different login nuucp and trusted, put them in different directories. this will prevent unauthorized systems that log on to nuucp from copying and picking out files in the public directory of the trust system (note: the above options allow nuucp to request file transfer ). the backslash at the end of the line indicates that the next line is the row continued.
You can use the MYNAME option to assign a system name to the system that logs on to a specific account:
LOGNAME = Xuucp MYNAME = IOnker
(3) MACHINE rules
The MACHINE rule is used to ignore the default restrictions. by specifying a system name table in the MACHINE rule, uucico can change the default limits when calling these systems. the functions of the READ, WRITE, REQUEST, NOREAD, NOWRITE, and PUBDIR options are the same as those of LOGNAME. the CALLBACK and SENDFILES options are ignored. The MYNAME option must be used with the LOGNAME rule to specify the name that will be assigned to the calling system. This name is only used when the system is called.
The format of the MACHINE rule is as follows:
MACHINE = zuul: gozur: enigma WRITE =/READ =/
This rule allows the remote system zuul, gozar, And enigma to send/request files that can be read/written by any other person on the system. generally, do not allow the remote system to read and write files in other directories except the/usr/spool/uucppublic directory. Therefore, do not use MACHINE rules for trusted systems.
The system name OTHER is used to create MACHINE rules for all OTHER users specified to use outdoors.
The COMMANDS option is used to change the default command table that uuxqt executes through remote requests.
MACHINE = zuul COMMANDS = rmail: rnews: lp
The preceding options allow the system zuul to remotely execute the command rmail, rnews, lp. uucico without this option. uuxqt uses this option to determine the system name to execute the command.
The command specified by the COMMANDS option will use the default PATH. PATH is usually set to/bin:/usr/bin when uuxqt is edited. if the full PATH name is provided in the COMMANDS option, the default PATH can be ignored.
MACHINE = zuul COMMANDS = umail:/usr/local/bin/rnews: lp
Similarly, honeydanber uucp should not allow remote systems to run commands such as UCP or cat. remote Command Execution that can read and write files may threaten local security. although the local system checks the remote system name, any remote system can call the local system to claim to be "xyz", but the local system fully believes it is true. therefore, the local system may think that only zuul is allowed to run lp commands. however, in fact, any system that claims to be zuul is also allowed to run lp commands.
There are two ways to verify the identity of the system. one way is to refuse to use CALLBACK = yes To Talk To The Calling System. the local system can confirm the identity of the remote system as long as the phone and network lines are not broken or changed. another method is to use the VALIDATE option in the LOGNAME rule. if you must allow some systems to run "dangerous" COMMANDS, you can use the COMMANDS and VALIDATE options in combination,
The VALIDATE option is used to specify in the LOGNAME rule that a system must log on to the login account header specified by LOGNAME:
LOGNAME = trusted VALIDATE = zuul
MACHINE = COMMANDS = rmail: rnews: lp
When a remote system calls itself zuul to log on, uucico will query the Permissions file and find VALIDATE = zuul in the logname = trusted rule. If the remote system uses trusted, uucico will regard the system as zuul and continue to execute it. Otherwise, uucico will regard the system as a fake and refuse to execute the request. as long as zuul only has a trusted account's logon password, other systems cannot impersonate it. the VALIDATE option works only when the logon password is confidential and is not published to other untrusted system administrators or insecure systems. if the login password of the trusted system leaks, any system can be disguised as a trusted system.
If ALL is specified in the COMMANDS option, any command can be executed through remote requests. Therefore, do not use ALL! The rule "ALL" is actually to set the user's account Header
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service