[AIX 네트워크 관리 7] TCP/IP (1) 개요, 계획·설치·구성, 보안 rcmds, .netrc

핵심 정리

  • TCP/IP는 하드웨어와 무관하게 여러 네트워크를 잇는 프로토콜 묶음으로, 파일 전송, 원격 로그인·명령 실행, 원격 인쇄, 메일, 대화, 네트워크 관리 기능을 줍니다. 더 넓은 네트워크 관리는 SNMP가 맡습니다.
  • 네트워크 계획: 하드웨어 종류 → 물리 배치(게이트웨이 정하기) → 평면/계층 구조 → 다른 네트워크 연결과 정적·동적 라우팅 → 주소 체계(인터넷 연결이면 ISP에서 주소 받기) → 서브넷 → 호스트 이름 → 이름 서버 또는 /etc/hosts → 제공할 서비스.
  • 구성은 Web-based System Manager, SMIT, 파일 편집, 명령으로 할 수 있습니다. 부팅 때 rc.net이 최소 구성을 하며, BSD 방식으로 /etc/rc.bsdnet을 쓰려면 smit configtcp에서 BSD Style rc Configuration을 고릅니다. 이름 서버 구성은 SMIT로 할 수 없습니다.
  • 보안 rcmds(rlogin, rcp, rsh, telnet, ftp)의 인증 방법은 Kerberos V.5, Kerberos V.4(rsh·rcp만), Standard AIX이며 lsauthent·chauthent로 보고 바꿉니다. 여러 개면 앞 방법이 실패할 때 다음으로 넘어가고, Standard AIX는 마지막이어야 합니다.
  • $HOME/.netrc(권한 600)는 ftp·rexec 자동 로그인과 ftp 매크로(macdef, 로그인 정의마다 16개까지, init은 로그인 때 자동 실행)를 정의합니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (내용이 거의 같음)
원문 Networks and communication management — 5.3판 5866쪽, 6.1판 100108쪽
파일 /etc/rc.net, /etc/rc.bsdnet, $HOME/.netrc, /usr/samples/tcpip/netrc, $HOME/.3270keys, $HOME/.k5login, libauthm.a, libvaliduser.a
관련 명령어 smit configtcp, lsauthent, chauthent, ifconfig, route, netstat, no, ftp

컴퓨터끼리 통신할 때는 어떤 규칙, 곧 프로토콜이 있어야 데이터를 질서 있게 주고받을 수 있습니다. 전 세계에서 가장 흔히 쓰는 프로토콜 묶음 가운데 하나가 TCP/IP(Transmission Control Protocol/Internet Protocol)입니다(다만 유럽의 많은 곳은 X.25 프로토콜을 씁니다). TCP/IP로 흔히 하는 일은 전자 우편, 컴퓨터 사이 파일 전송, 원격 로그인입니다.

mail 사용자 명령, MH(Message Handling) 사용자 명령, sendmail 서버 명령은 TCP/IP로 시스템 사이에 메일을 주고받을 수 있고, BNU(Basic Networking Utilities)는 TCP/IP로 시스템 사이에 파일과 명령을 주고받을 수 있습니다.

TCP/IP는 컴퓨터 사이의 통신 표준을 정하고, 네트워크를 라우팅하고 서로 잇는 규칙을 자세히 정한 프로토콜 묶음입니다. 인터넷에서 널리 쓰이므로 연구 기관, 대학, 정부, 산업계가 서로 통신할 수 있습니다.

TCP/IP는 네트워크에 연결된 여러 컴퓨터(호스트) 사이의 통신을 가능하게 합니다. 각 네트워크는 다른 네트워크에 연결되어 그 네트워크의 호스트와 통신할 수 있습니다. 네트워크 기술은 많고, 그 가운데 다수가 패킷 교환과 스트림 전송으로 동작하지만, TCP/IP에는 하드웨어 독립성이라는 큰 장점이 있습니다.

인터넷 프로토콜은 전송 단위와 그 전송 방법을 정하므로, TCP/IP는 네트워크 하드웨어의 세부를 감춰 여러 종류의 네트워크 기술이 연결되어 정보를 주고받게 합니다. 인터넷 주소 덕분에 네트워크의 어느 기계든 다른 어느 기계와도 통신할 수 있습니다. TCP/IP는 사용자에게 필요한 여러 통신 서비스의 표준도 제공합니다.

TCP/IP는 컴퓨터 시스템을 인터넷 호스트로 만들어, 네트워크에 붙어 다른 인터넷 호스트와 통신하게 하는 기능을 줍니다. TCP/IP에는 다음을 하게 하는 명령과 기능이 있습니다.

  • 시스템 사이에 파일 전송
  • 원격 시스템에 로그인
  • 원격 시스템에서 명령 실행
  • 원격 시스템에서 파일 인쇄
  • 원격 사용자에게 전자 우편 보내기
  • 원격 사용자와 대화식으로 이야기하기
  • 네트워크 관리

참고: TCP/IP는 기본적인 네트워크 관리 기능을 제공합니다. SNMP(Simple Network Management Protocol)는 더 많은 네트워크 관리 명령과 기능을 제공합니다.

영어 원문

Transmission Control Protocol/Internet Protocol

When computers communicate with one another, certain rules, or protocols, allow them to transmit and receive data in an orderly fashion. Throughout the world, one of the most routinely used sets of protocols is the Transmission Control Protocol/Internet Protocol (TCP/IP). (Much of Europe, however, uses the X.25 protocol.) Some common functions for using TCP/IP are electronic mail, computer-to-computer file transfer, and remote login.

The mail user command, the Message Handling (MH) user commands, and the sendmail server command can use TCP/IP for sending and receiving mail between systems, and the Basic Networking Utilities (BNU) can use TCP/IP for sending and receiving files and commands between systems.

TCP/IP is a suite of protocols that specify communications standards between computers and detail conventions for routing and interconnecting networks. It is used extensively on the Internet and consequently allows research institutions, colleges and universities, government, and industry to communicate with each other.

TCP/IP allows communication between a number of computers (called hosts) connected on a network. Each network can be connected to another network to communicate with hosts on that network. Although there are many types of network technologies, many of which operate with packet-switching and stream transport, TCP/IP offers one major advantage: hardware independence.

Because Internet protocols define the unit of transmission and specify how to send it, TCP/IP can hide the details of network hardware, allowing many types of network technologies to connect and exchange information. Internet addresses allow any machine on the network to communicate with any other machine on the network. TCP/IP also provides standards for many of the communications services that users need.

TCP/IP provides facilities that make the computer system an Internet host, which can attach to a network and communicate with other Internet hosts. TCP/IP includes commands and facilities that allow you to:

  • Transfer files between systems

  • Log in to remote systems

  • Run commands on remote systems

  • Print files on remote systems

  • Send electronic mail to remote users

  • Converse interactively with remote users

  • Manage a network

Note: TCP/IP provides basic network management capability. The Simple Network Management Protocol (SNMP) provides more network management commands and functions.

TCP/IP 용어

TCP/IP와 관련해 쓰는 다음 인터넷 용어를 알아 두면 도움이 됩니다.

용어 뜻
client(클라이언트) 네트워크의 다른 컴퓨터나 프로세스의 데이터, 서비스, 자원에 접근하는 컴퓨터나 프로세스
host(호스트) 인터넷 네트워크에 붙어 다른 인터넷 호스트와 통신할 수 있는 컴퓨터. 사용자의 로컬 호스트는 그 사용자가 작업하는 컴퓨터이고, 외부(foreign) 호스트는 네트워크의 다른 호스트입니다. 통신 네트워크 입장에서 호스트는 패킷의 출발지이자 목적지입니다. 어떤 호스트든 클라이언트, 서버, 또는 둘 다일 수 있습니다. 인터넷 네트워크에서 호스트는 인터넷 이름과 주소로 식별됩니다.
network(네트워크) 두 대 이상의 호스트와 그 사이를 잇는 링크의 조합. 물리 네트워크는 네트워크를 이루는 하드웨어이고, 논리 네트워크는 하나 이상의 물리 네트워크 전체나 일부 위에 겹쳐 놓은 추상 구조입니다. 인터넷 네트워크가 논리 네트워크의 예입니다. 인터페이스 프로그램이 논리 네트워크 동작을 물리 네트워크 동작으로 바꿉니다.
packet(패킷) 호스트와 네트워크 사이의 한 트랜잭션에 해당하는 제어 정보와 데이터 블록. 프로세스가 인터넷 네트워크로 데이터를 주고받을 때 쓰는 교환 매체이며, 출발지에서 목적지로 보냅니다.
port(포트) 프로세스의 논리적 연결 지점. 프로세스 사이의 데이터는 포트(또는 소켓)를 거쳐 전송됩니다. 포트마다 보내기·받기 큐가 있습니다. 인터페이스 프로그램 네트워크에서 각 포트는 쓰임에 따라 인터넷 포트 번호를 가집니다. 특정 포트는 인터넷 호스트 주소와 포트 번호를 합친 인터넷 소켓 주소로 식별됩니다.
process(프로세스) 실행 중인 프로그램. 컴퓨터에서 능동적인 요소입니다. 터미널, 파일, 다른 I/O 장치는 프로세스를 거쳐 서로 통신합니다. 따라서 네트워크 통신은 프로세스 간 통신입니다.
protocol(프로토콜) 물리나 논리 수준에서 통신을 처리하는 규칙의 모음. 프로토콜은 서비스를 제공하려고 다른 프로토콜을 쓰는 경우가 많습니다. 예를 들어 연결 수준 프로토콜은 두 호스트 사이의 연결을 유지하는 패킷을 나르려고 전송 수준 프로토콜을 씁니다.
server(서버) 네트워크의 다른 컴퓨터나 프로세스가 접근할 수 있는 데이터, 서비스, 자원을 제공하는 컴퓨터나 프로세스
영어 원문

TCP/IP terminology

You might find it useful to become familiar with the following Internet terms as they are used in relation to TCP/IP.

  • client — A computer or process that accesses the data, services, or resources of another computer or process on the network.
  • host — A computer that is attached to an Internet network and can communicate with other Internet hosts. The local host for a particular user is the computer at which that user is working. A foreign host is any other host name on the network. From the point of view of the communications network, hosts are both the source and destination of packets. Any host can be a client, a server, or both. On an Internet network, a host is identified by its Internet name and address.
  • network — The combination of two or more hosts and the connecting links between them. A physical network is the hardware that makes up the network. A logical network is the abstract organization overlaid on all or part of one or more physical networks. The Internet network is an example of a logical network. The interface program handles translation of logical network operations into physical network operations.
  • packet — The block of control information and data for one transaction between a host and its network. Packets are the exchange medium used by processes to send and receive data through Internet networks. A packet is sent from a source to a destination.
  • port — A logical connecting point for a process. Data is transmitted between processes through ports (or sockets). Each port provides queues for sending and receiving data. In an interface program network, each port has an Internet port number based on how it is being used. A particular port is identified with an Internet socket address, which is the combination of an Internet host address and a port number.
  • process — A program that is running. A process is the active element in a computer. Terminals, files, and other I/O devices communicate with each other through processes. Thus, network communications is interprocess communications (that is, communication between processes).
  • protocol — A set of rules for handling communications at the physical or logical level. Protocols often use other protocols to provide services. For example, a connection-level protocol uses a transport-level protocol to transport packets that maintain a connection between two hosts.
  • server — A computer or process that provides data, services, or resources that can be accessed by other computers or processes on the network.

TCP/IP 네트워크 계획하기

TCP/IP는 아주 유연한 네트워크 도구이므로 조직의 필요에 맞게 고칠 수 있습니다. 네트워크를 계획할 때는 이 주제의 주요 사항을 생각합니다. 각 사항의 자세한 내용은 다른 주제에서 다루며, 이 목록은 사항을 소개하는 것이 목적입니다.

  1. 쓸 네트워크 하드웨어 종류를 정합니다: 토큰링, 이더넷 버전 2, IEEE 802.3, FDDI(Fiber Distributed Data Interface), SOC(Serial Optical Channel), SLIP(Serial Line Interface Protocol).
  2. 네트워크의 물리 배치를 계획합니다. 호스트 기계마다 어떤 기능을 맡을지 생각합니다. 예를 들어 네트워크에 케이블을 깔기 전에 어느 기계가 게이트웨이가 될지 정해야 합니다.
  3. 평면(flat) 네트워크와 계층(hierarchical) 네트워크 가운데 어느 구조가 맞는지 정합니다. 네트워크가 꽤 작고, 한 장소에 있고, 물리 네트워크 하나로 이루어져 있으면 평면 네트워크가 맞을 것입니다. 네트워크가 아주 크거나 여러 장소·여러 물리 네트워크로 복잡하면 계층 네트워크가 더 효율적일 수 있습니다.
  4. 네트워크를 다른 네트워크에 연결하려면 게이트웨이를 어떻게 설정하고 구성할지 계획해야 합니다. 생각할 점은 다음과 같습니다.
      1. 어느 기계가 게이트웨이가 될지 정합니다.
      1. 정적 라우팅, 동적 라우팅, 또는 둘을 함께 쓸지 정합니다. 동적 라우팅을 고르면, 지원해야 할 통신 프로토콜 종류를 생각해 게이트웨이마다 어떤 라우팅 데몬을 쓸지 정합니다.
  5. 주소 체계를 정합니다. 네트워크가 더 큰 인터네트워크의 일부가 아니면 필요에 가장 맞는 주소 체계를 고릅니다. 인터넷 같은 더 큰 인터네트워크에 연결하려면 인터넷 서비스 제공자(ISP)에게서 공식 주소를 받아야 합니다.
  6. 시스템을 서브넷으로 나눠야 하는지 정합니다. 나눈다면 서브넷 마스크를 어떻게 줄지 정합니다.
  7. 이름 체계를 정합니다. 네트워크의 기계마다 고유한 호스트 이름이 있어야 합니다.
  8. 이름 풀이에 이름 서버가 필요한지, /etc/hosts 파일로 충분한지 정합니다. 이름 서버를 쓰기로 하면 필요한 이름 서버의 종류와, 네트워크를 효율적으로 지원하는 데 몇 대가 필요한지 생각합니다.
  9. 원격 사용자에게 제공할 서비스 종류를 정합니다. 예를 들어 메일, 인쇄, 파일 공유, 원격 로그인, 원격 명령 실행 등입니다.
영어 원문

Planning your TCP/IP network

Because TCP/IP is such a flexible networking tool, you can customize it to fit the specific needs of your organization. Consider the major issues in this topic when planning your network. The details of these issues are discussed in other topics. This list is intended only to introduce you to the issues.

  1. Decide which type of network hardware you want to use: token-ring, Ethernet Version 2, IEEE 802.3, Fiber Distributed Data Interface (FDDI), Serial Optical Channel (SOC), or Serial Line Interface Protocol (SLIP).

  2. Plan the physical layout of the network. Consider which functions each host machine will serve. For example, you must decide which machine or machines will serve as gateways before you cable the network.

  3. Decide whether a flat network or a hierarchical network organization best fits your needs. If your network is fairly small, at a single site, and consists of one physical network, then a flat network probably suits your needs. If your network is very large or complex with multiple sites or multiple physical networks, a hierarchical network might be a more efficient network organization for you.

  4. If your network is to be connected to other networks, you must plan how your gateways should be set up and configured. Things to consider are: a. Decide which machine or machines will serve as gateways. b. Decide whether you need to use static or dynamic routing, or a combination of the two. If you choose dynamic routing, decide which routing daemons each gateway will use in light of the types of communications protocols you need to support.

  5. Decide on an addressing scheme.

If your network will not be part of a larger internetwork, choose the addressing scheme that best fits your needs. If you want your network to be connected to a larger internetwork such as the Internet, you will have to obtain an official set of addresses from your internet service provider (ISP).

  1. Decide whether your system needs to be divided into subnets. If so, decide how you will assign subnet masks.

  2. Decide on a naming scheme. Each machine on the network needs its own unique host name.

  3. Decide whether your network needs a name server for name resolution or if using the /etc/hosts file will be sufficient. If you choose to use name servers, consider the type of name servers you need and how many you need to serve your network efficiently.

  4. Decide the types of services you want your network to provide to remote users; for example, mail services, print services, file sharing, remote login, remote command execution, and others.

TCP/IP 설치

이 절은 TCP/IP의 설치를 다룹니다.

TCP/IP 설치에 관한 정보는 Installation and Migration을 봅니다.

영어 원문

Installation of TCP/IP

This section will discuss the Installation of Transmission Control Protocol/Internet Protocol (TCP/IP).

For information on installing Transmission Control Protocol/Internet Protocol (TCP/IP), see Installation and Migration.

TCP/IP 구성

시스템에 TCP/IP 소프트웨어를 설치하면 시스템 구성을 시작할 수 있습니다.

많은 TCP/IP 구성 작업은 여러 방법으로 할 수 있습니다.

  • Web-based System Manager 네트워크 응용 프로그램 사용(빠른 경로 wsm network)
  • SMIT(System Management Interface Tool) 사용
  • 파일 편집
  • 셸 프롬프트에서 명령 실행

예를 들어 rc.net 셸 스크립트는 시스템 시작 과정에서 TCP/IP에 필요한 최소 호스트 구성을 합니다(rc.net 스크립트는 두 번째 부팅 단계에서 구성 관리자 프로그램이 실행합니다). Web-based System Manager나 SMIT로 호스트 구성을 하면 rc.net 파일이 자동으로 구성됩니다.

또는 일반 텍스트 편집기로 /etc/rc.bsdnet 파일을 구성할 수 있습니다. 이 방법에서는 ifconfig, hostname, route 같은 전통적인 UNIX TCP/IP 구성 명령을 지정할 수 있습니다. 파일 편집 방법을 쓰면 smit configtcp 빠른 경로로 들어가 BSD Style rc Configuration을 골라야 합니다. TCP/IP 파일과 파일 형식에 관한 정보는 Communications Programming Concepts의 List of TCP/IP Programming References를 봅니다.

이름 서버 구성 같은 일부 작업은 Web-based System Manager나 SMIT로 할 수 없습니다.

영어 원문

Configuration of TCP/IP

After the TCP/IP software is installed on your system, you are ready to begin configuring your system.

Many TCP/IP configuration tasks can be performed in more than one way, either by:

  • Using the Web-based System Manager Network application (fast path wsm network)

  • Using the System Management Interface Tool (SMIT)

  • Editing a file format

  • Issuing a command at the shell prompt.

For example, the rc.net shell script performs required minimum host configuration for TCP/IP during the system startup process (the rc.net script is run by the configuration manager program during the second boot phase). By using Web-based System Manager or SMIT to perform the host configuration, the rc.net file is configured automatically.

Alternatively, you can configure the /etc/rc.bsdnet file using a standard text editor. With this method, you can specify the traditional UNIX TCP/IP configuration commands such as ifconfig, hostname, and route. If using the file edit method, you must enter smit configtcp fast path and then select BSD Style rc Configuration. See List of TCP/IP Programming References in Communications Programming Concepts for information about TCP/IP files and file formats.

A few tasks, such as configuring a name server, cannot be done using Web-based System Manager or SMIT.

호스트 구성

네트워크의 호스트 기계마다 최종 사용자와 네트워크 전체의 필요에 맞게 동작하도록 구성해야 합니다.

네트워크의 호스트마다 네트워크 인터페이스를 구성하고, 인터넷 주소를 설정하고, 호스트 이름을 설정해야 합니다. 게이트웨이나 다른 호스트로 가는 정적 경로를 설정하고, 기본으로 시작할 데몬을 지정하고, 이름 풀이를 위해 /etc/hosts 파일을 설정해야(또는 호스트가 이름 서버로 이름을 풀도록 설정해야) 합니다.

영어 원문

Host configuration

Each host machine on your network must be configured to function according to the needs of the end users and the network as a whole.

For each host on the network, you must configure the network interface, set the Internet address, and set the host name. You also must set up static routes to gateways or other hosts, specify daemons to be started by default, and set up the /etc/hosts file for name resolution (or set up the host to use a name server for name resolution).

서버 역할 호스트 구성

호스트 기계가 게이트웨이, 파일 서버, 이름 서버 같은 특정 역할을 맡는다면, 기본 구성을 마친 뒤 필요한 구성 작업을 해야 합니다.

예를 들어 네트워크가 계층 구조이고 도메인 이름 프로토콜로 이름을 인터넷 주소로 풀려면, 네트워크에 이 기능을 제공할 이름 서버를 적어도 하나 구성해야 합니다.

서버 호스트가 전용 기계일 필요는 없으며 다른 용도로도 쓸 수 있다는 점을 기억합니다. 네트워크의 이름 서버 기능이 꽤 작으면 그 기계를 워크스테이션이나 네트워크의 파일 서버로도 쓸 수 있습니다.

참고: 시스템에 NIS나 NIS+가 설치되어 있으면 이 서비스도 이름 풀이를 제공할 수 있습니다. 자세한 내용은 Network Information Services (NIS and NIS+) Guide를 봅니다.

영어 원문

Host as server configuration

If the host machine will have a specific function like serve as a gateway, file server, or name server, you must perform the necessary configuration tasks after the basic configuration is complete.

For example, if your network is organized hierarchically and you want to use the Domain Name protocol to resolve names into Internet addresses, you will need to configure at least one name server to provide this function for your network.

Remember, a server host does not have to be a dedicated machine, it can be used for other things as well. If the name server function for your network is fairly small, the machine might also be used as a workstation or as a file server for your network.

Note: If your system has either NIS or NIS+ installed, these services can also provide name resolution. For more information, see Network Information Services (NIS and NIS+) Guide.

게이트웨이 구성

네트워크가 다른 네트워크와 통신하려면 게이트웨이 호스트를 적어도 하나 구성해야 합니다.

어떤 통신 프로토콜을 지원할지 생각한 다음, 그 프로토콜을 지원하는 라우팅 데몬(routed나 gated 데몬)을 씁니다.

영어 원문

Gateway configuration

If your network is going to communicate with other networks, you will need to configure at least one gateway host.

You must consider which communications protocols you want to support, and then use whichever routing daemon (the routed or gated daemon) that supports those protocols.

TCP/IP 구성·관리 명령

여러 명령으로 TCP/IP 네트워크를 구성하고 관리할 수 있습니다.

명령 설명
arp ARP(Address Resolution Protocol)가 쓰는 인터넷 주소 → 하드웨어 주소 변환 표를 보여 주거나 바꿉니다.
finger 지정한 호스트의 사용자 정보를 돌려줍니다.
host 지정한 호스트의 인터넷 주소나 지정한 인터넷 주소의 호스트 이름을 보여 줍니다.
hostname 로컬 호스트의 인터넷 이름과 주소를 보여 주거나 설정합니다.
ifconfig 네트워크 인터페이스와 그 특성을 구성합니다.
netstat 로컬·외부 주소, 라우팅 표, 하드웨어 통계, 전송한 패킷 요약을 보여 줍니다.
no 현재 네트워크 커널 옵션을 설정하거나 보여 줍니다.
ping 호스트에 닿을 수 있는지 판단합니다.
route 라우팅 표를 손으로 다루게 합니다.
ruptime 로컬 물리 네트워크에 연결되어 rwhod 서버를 실행 중인 호스트의 상태 정보를 보여 줍니다.
rwho 로컬 물리 네트워크에 연결되어 rwhod 서버를 실행 중인 호스트의 사용자 상태 정보를 보여 줍니다.
setclock 네트워크 시간 서비스를 읽어 로컬 호스트의 시각과 날짜를 맞춥니다.
timedc timed 데몬의 정보를 돌려줍니다.
trpt TCP 소켓의 프로토콜 추적을 보고합니다.
whois 인터넷 이름 디렉터리 서비스를 제공합니다.
영어 원문

TCP/IP configuration and management commands

You can use a variety of commands to configure and manage a TCP/IP network. They are described in this table.

  • arp — Displays or changes the Internet address to hardware address translation tables used by the Address Resolution protocol.
  • finger — Returns information about users on a specified host.
  • host — Shows the Internet address of a specified host or the host name of a specified Internet address.
  • hostname — Shows or sets the Internet name and address of the local host.
  • ifconfig — Configures network interfaces and their characteristics.
  • netstat — Shows local and foreign addresses, routing tables, hardware statistics, and a summary of packets transferred.
  • no — Sets or shows current network kernel options.
  • ping — Determines whether a host is reachable.
  • route — Permits you to manipulate the routing tables manually.
  • ruptime — Shows status information on hosts that are connected to local physical networks and are running the rwhod server.
  • rwho — Shows status information for users on hosts that are connected to local physical networks and running the rwhod server.
  • setclock — Reads the network time service and sets the time and date of the local host accordingly.
  • timedc — Returns information about the timed daemon.
  • trpt — Reports protocol tracing on TCP sockets.
  • whois — Provides the Internet name directory service.

TCP/IP 네트워크 구성하기

네트워크를 구성하는 길잡이로 쓰는 절차입니다. 관련 내용을 읽고 이해했는지 확인합니다.

이 절차를 시작하기 전에 다음 조건을 확인합니다.

  1. 네트워크 하드웨어가 설치되고 케이블이 연결되어 있어야 합니다. 하드웨어 설치와 케이블 연결은 TCP/IP LAN 어댑터 카드를 봅니다.
  2. TCP/IP 소프트웨어가 설치되어 있어야 합니다. TCP/IP 소프트웨어 설치는 Installation and migration을 봅니다.

네트워크를 올리고 제대로 동작한 뒤에는 디버깅용으로 이 점검 목록을 참고하면 도움이 됩니다.

TCP/IP 네트워크를 구성하는 단계는 다음과 같습니다.

  1. TCP/IP의 기본 구조는 TCP/IP 프로토콜을 읽습니다. 다음을 이해해야 합니다.

    • TCP/IP의 계층 구조(곧 프로토콜마다 있는 계층이 다름)
    • 데이터가 계층을 거쳐 흐르는 방식
  2. 네트워크의 호스트 기계마다 최소 구성을 합니다. 곧 호스트마다 네트워크 어댑터를 더하고, IP 주소를 주고, 호스트 이름을 주고, 네트워크로 가는 기본 경로를 정합니다. 이 작업의 배경 정보는 TCP/IP 네트워크 인터페이스, TCP/IP 주소 지정, 네트워크의 호스트 이름 짓기를 봅니다.

    참고: 네트워크의 기계는 최종 사용자 호스트, 파일 서버, 게이트웨이, 이름 서버 가운데 무엇이 되든 이 기본 구성이 필요합니다.

  3. 네트워크의 호스트 기계마다 inetd 데몬을 구성하고 시작합니다. TCP/IP 데몬을 읽은 다음 inetd 데몬 구성하기의 안내를 따릅니다.

  4. 호스트 기계마다 로컬 이름 풀이를 하거나 이름 서버를 쓰도록 구성합니다. 계층 도메인 이름 네트워크를 설정하면 적어도 한 호스트를 이름 서버로 구성합니다. 이름 풀이의 안내를 읽고 따릅니다.

  5. 네트워크가 원격 네트워크와 통신하면 적어도 한 호스트를 게이트웨이로 구성합니다. 게이트웨이는 정적 경로나 라우팅 데몬으로 네트워크 간 라우팅을 할 수 있습니다. TCP/IP 라우팅의 안내를 읽고 따릅니다.

  6. 네트워크의 호스트 기계마다 어떤 서비스를 쓸지 정합니다. 기본으로 모든 서비스를 쓸 수 있습니다. 특정 서비스를 쓰지 못하게 하려면 클라이언트 네트워크 서비스의 안내를 따릅니다.

  7. 네트워크의 어느 호스트가 서버가 되고, 그 서버가 어떤 서비스를 제공할지 정합니다. 실행할 서버 데몬을 시작하려면 서버 네트워크 서비스의 안내를 따릅니다.

  8. 필요한 원격 프린트 서버를 구성합니다. 자세한 내용은 Printers and printing의 Printing administration을 봅니다.

  9. 선택: 원하면 호스트가 네트워크의 마스터 시간 서버를 쓰거나 마스터 시간 서버 역할을 하도록 구성합니다. 자세한 내용은 Commands Reference 5권의 timed 데몬을 봅니다.

영어 원문

Configuring a TCP/IP network

Use this procedure as a guide for configuring your network. Ensure that you have read and understood the appropriate material.

Before beginning this procedure, make sure that the following prerequisites are true:

  1. Network hardware is installed and cabled. For more information about installing and cabling your hardware, see TCP/IP local area network adapter cards.

  2. TCP/IP software is installed. For more information about installing the TCP/IP software, see the Installation and migration.

After you bring your network up and it is running properly, you might find it useful to refer to this checklist for the purpose of debugging.

To configure your TCP/IP network, use the following steps:

  1. Read TCP/IP protocols for the basic organization of TCP/IP. You should understand:
  • the layered nature of TCP/IP (that is, different protocols reside at different layers)

  • how data flows through the layers

  1. Minimally configure each host machine on the network. This means adding a network adapter, assigning an IP address, and assigning a host name to each host, as well as defining a default route to your network. For background information on these tasks, refer to TCP/IP network interfaces, TCP/IP addressing, and Naming hosts on your network.

Note: Each machine on the network needs this basic configuration whether it will be an end-user host, a file server, a gateway, or a name server.

  1. Configure and start the inetd daemon on each host machine on the network. Read TCP/IP daemons and then follow the instructions in Configuring the inetd daemon.

  2. Configure each host machine to perform either local name resolution or to use a name server. If you are setting up a hierarchical Domain Name network, configure at least one host to function as a name server. Read and follow the instructions in Name resolution.

  3. If your network will communicate with any remote networks, configure at least one host to function as a gateway. The gateway can use static routes or a routing daemon to perform internetwork routing. Read and follow the instructions in TCP/IP routing.

  4. Decide which services each host machine on the network will use. By default, all services are available. Follow the instructions in Client network services if you wish to make a particular service unavailable.

  5. Decide which hosts on the network will be servers, and which services a particular server will provide. Follow the instructions in Server network services to start the server daemons you wish to run.

  6. Configure any remote print servers you will need. See Printing administration in Printers and printing for more information.

  7. Optional: If desired, configure a host to use or to serve as the master time server for the network. See the timed daemon in the Commands Reference, Volume 5 for more information.

인증과 보안 rcmds

이 명령들은 지금 쓰는 인증 방법에 더해 추가 인증 방법을 제공하도록 강화되었습니다.

보안 rcmds는 rlogin, rcp, rsh, telnet, ftp입니다. 이 명령들은 기본으로 Standard AIX 인증 방법을 씁니다. 추가 방법 두 가지는 Kerberos V.5와 Kerberos V.4입니다.

Kerberos V.5 인증 방법을 쓰면 클라이언트는 DCE 보안 서버나 Native Kerberos 서버에서 Kerberos V.5 티켓을 받습니다. 티켓은 사용자의 현재 DCE나 Native 자격 증명 일부를, 연결하려는 TCP/IP 서버용으로 암호화한 것입니다. TCP/IP 서버의 데몬이 티켓을 복호화하므로 TCP/IP 서버가 사용자를 확실히 식별할 수 있습니다. 티켓에 적힌 DCE나 Native 주체(principal)가 운영 체제 사용자 계정에 접근할 수 있으면 연결이 진행됩니다.

참고: DCE 버전 2.2부터 DCE 보안 서버가 Kerberos V.5 티켓을 돌려줄 수 있습니다. AIX 운영 체제의 보안 rcmds는 NAS(Network Authentication Service) 버전 1.3이 제공하는 Kerberos V.5 라이브러리와 GSSAPI 라이브러리를 씁니다.

Kerberos V.5는 클라이언트를 인증할 뿐 아니라 현재 사용자의 자격 증명을 TCP/IP 서버로 넘깁니다. 자격 증명이 전달 가능(forwardable)으로 표시되어 있으면 클라이언트는 Kerberos TGT(Ticket Granting Ticket)로 서버에 보냅니다. TCP/IP 서버 쪽에서 DCE 보안 서버와 통신 중이면 데몬이 k5dcecreds 명령으로 TGT를 완전한 DCE 자격 증명으로 올립니다.

ftp 명령은 다른 명령과 다른 인증 방법을 씁니다. GSSAPI 보안 메커니즘으로 ftp 명령과 ftpd 데몬 사이에 인증을 주고받습니다. ftp 클라이언트는 clear/safe/private 하위 명령으로 데이터 암호화를 지원합니다.

운영 체제 클라이언트와 서버 사이에서는 암호화된 데이터 연결에 여러 바이트 전송을 허용하도록 ftp가 강화되었습니다. 표준은 암호화된 데이터 연결에 한 바이트 전송만 정의합니다. 다른 회사 기계에 연결해 데이터 암호화를 쓰면 ftp는 한 바이트 전송 제한을 따릅니다.

참고: rlogin, rsh, telnet 보안 rcmds 명령과 klogin, kshell Kerberos V.5 인증 방법은 원격 호스트와의 연결을 닫기 전에 세 번까지 시도하게 합니다.

영어 원문

Authentication and the secure rcmds

These commands have been enhanced to provide additional authentication methods to those used today.

The secure rcmds are rlogin, rcp, rsh, telnet, and ftp. By default these commands use the, Standard AIX method of authentication. The two additional methods are Kerberos V.5 and Kerberos V.4.

When using the Kerberos V.5 authentication method, the client gets a Kerberos V.5 ticket from the DCE security server or Native Kerberos server. The ticket is a portion of the user's current DCE or Native credentials encrypted for the TCP/IP server with which they wish to connect. The daemon on the TCP/IP server decrypts the ticket. This allows the TCP/IP server to absolutely identify the user. If the DCE or Native principal described in the ticket is allowed access to the operating system user's account, the connection proceeds.

Note: Beginning with DCE version 2.2, the DCE security server can return Kerberos V.5 tickets. The secure rcmds in the AIX operating system uses the Kerberos V.5 library and the GSSAPI library provided by NAS (Network Authentication Service) version 1.3.

In addition to authenticating the client, Kerberos V.5 forwards the current user's credentials to the TCP/IP server. If the credentials are marked forwardable, the client sends them to the server as a Kerberos TGT (Ticket Granting Ticket). On the TCP/IP server side, if one is communicating with a DCE security server, the daemon upgrades the TGT into full DCE credentials using the k5dcecreds command.

The ftp command uses a different authentication method than the other commands. It uses the GSSAPI security mechanism to pass the authentication between the ftp command and the ftpd daemon. Using the clear/safe/private subcommands, the ftp client supports data encryption.

Between operating system clients and servers, ftp has been enhanced to allow multiple-byte transfers for encrypted data connections. The standards define only single-byte transfers for encrypted data connections. When connected to third-party machines and using data encryption, ftp follows the single-byte transfer limit.

Note: The rlogin, rsh, and telnet secure rcmds commands, along with the klogin and kshell Kerberos V.5 authentication methods, allow three attempts before the connection to the remote host is closed.

보안 rcmds의 시스템 구성

모든 보안 rcmds에는 그 시스템에서 어떤 인증 방법을 허용할지 정하는 시스템 수준 구성 장치가 있습니다. 이 구성은 나가는 연결과 들어오는 연결을 모두 제어합니다.

인증 구성은 라이브러리 libauthm.a와, 이 라이브러리의 두 루틴 get_auth_methods와 set_auth_methods를 명령줄에서 쓰게 하는 두 명령 lsauthent와 chauthent로 이루어집니다.

시스템은 Kerberos V.5, Kerberos V.4, Standard AIX 세 가지 인증 방법을 지원합니다. 인증 방법은 네트워크를 거쳐 사용자를 인증하는 데 어떤 방법을 쓸지 정합니다.

  • Kerberos V.5는 DCE(Distributed Computing Environment)의 기반이므로 가장 흔한 방법입니다. 운영 체제는 들어오는 Kerberos V.5 티켓을 완전한 DCE 자격 증명으로 올리거나, 들어오는 Native Kerberos V.5 티켓을 씁니다.
  • Kerberos V.4는 보안 rcmds 가운데 rsh와 rcp 두 명령만 씁니다. SP 시스템의 이전 버전과 호환하려고 제공하며, SP 시스템에서만 동작합니다. Kerberos V.4 티켓은 DCE 자격 증명으로 올리지 않습니다.
  • Standard AIX 인증 방법은 AIX 운영 체제가 쓰는 인증 방법을 말합니다.

인증 방법을 둘 이상 구성하면 대체(fallback) 방식으로 동작합니다. 첫 방법으로 연결하지 못하면 클라이언트는 구성된 다음 인증 방법으로 인증을 시도합니다.

인증 방법은 어떤 순서로든 구성할 수 있습니다. 다만 Standard AIX는 그 뒤로 넘어갈 방법이 없으므로 마지막에 구성해야 합니다. Standard AIX를 인증 방법으로 구성하지 않으면 암호 인증을 시도하지 않으며, 이 방법을 쓰는 연결 시도는 모두 거부됩니다.

인증 방법 없이 시스템을 구성할 수도 있습니다. 이때 시스템은 보안 rcmds를 쓰는 모든 터미널로부터의, 그리고 모든 터미널로의 연결을 거부합니다. 또 Kerberos V.4는 rsh와 rcp 명령에서만 지원하므로, Kerberos V.4만 쓰도록 구성한 시스템은 telnet, ftp, rlogin 연결을 허용하지 않습니다.

관련 정보

get_auth_method 서브루틴, set_auth_method 서브루틴, lsauthent 명령, chauthent 명령

영어 원문

System configuration for the secure rcmds

For all of the secure rcmds, there is a system-level configuration mechanism to determine which authentication methods are allowed for that system. The configuration controls both outgoing and incoming connections.

The authentication configuration consists of a library, libauthm.a, and two commands, lsauthent and chauthent, that provide command-line access to the library's two routines: get_auth_methods and set_auth_methods.

The system supports three different authentication methods: Kerberos V.5, Kerberos V.4, and Standard AIX. The authentication method defines which method is used to authenticate a user across a network.

  • Kerberos V.5 is the most common method, as it is the basis for the Distributed Computing Environment (DCE). The operating system either upgrades incoming Kerberos V.5 tickets to full DCE credentials or uses incoming Native Kerberos V.5 tickets.

  • Kerberos V.4 is used by only two of the secure rcmds: rsh and rcp. It is provided to support compatibility with an earlier version on SP systems and is functional only on one. A Kerberos V.4 ticket is not upgraded to DCE credentials.

  • The term, Standard AIX authentication method, refers to the authentication method that is used by the AIX operating system.

There is a fallback implementation when more than one authentication method is configured. If the first method fails to connect, the client attempts to authenticate by using the next authentication method that is configured.

Authentication methods can be configured in any order. The only exception is that Standard AIX must be the final authentication method that is configured because there is no fallback option from it. If Standard AIX is not a configured authentication method, password authentication is not attempted, and any connection attempt that uses this method is rejected.

It is possible to configure the system without any authentication methods. In this case, the system refuses all connections from and to any terminal that uses secure rcmds. Also, because Kerberos V.4 is supported only with the rsh and rcp commands, a system that is configured to use only Kerberos V.4 does not allow connections that use telnet, ftp, or rlogin.

Related information

get_auth_method subroutine set_auth_method subroutine lsauthent command

chauthent command

보안 rcmds의 Kerberos V.5 사용자 확인

Kerberos V.5 인증 방법을 쓰면 TCP/IP 클라이언트는 TCP/IP 서버용으로 암호화된 서비스 티켓을 받습니다. 서버가 티켓을 복호화하면 (DCE나 Native 주체로) 사용자를 안전하게 식별할 수 있습니다.

그러나 이 DCE나 Native 주체가 로컬 계정에 접근할 수 있는지는 따로 판단해야 합니다. DCE나 Native 주체를 로컬 운영 체제 계정에 대응시키는 일은 공유 라이브러리 libvaliduser.a의 서브루틴 하나 kvalid_user가 맡습니다. 다른 대응 방법을 원하면 시스템 관리자가 libvaliduser.a 라이브러리의 대안을 제공해야 합니다.

영어 원문

Kerberos V.5 user validation for the secure rcmds

When using the Kerberos V.5 authentication method, the TCP/IP client gets a service ticket encrypted for the TCP/IP server. When the server decrypts the ticket, it has a secure method of identifying the user (by DCE or Native principal).

However, it still needs to determine if this DCE or Native principal is allowed access to the local account. Mapping the DCE or Native principal to the local operating system account is handled by a shared library, libvaliduser.a, which has a single subroutine, kvalid_user. If a different method of mapping is preferred, the system administrator must provide an alternative for the libvaliduser.a library.

보안 rcmds의 DCE 구성

보안 rcmds를 쓰려면 연결될 수 있는 네트워크 인터페이스마다 DCE 주체 두 개가 있어야 합니다. 다음과 같습니다.

text
host/ FullInterfaceName
ftp/ FullInterfaceName

FullInterfaceName은 주 HostName.DomainName의 인터페이스 이름과 도메인 이름입니다.

영어 원문

DCE configuration for the secure rcmds

To use the secure rcmds, two DCE principals must exist for every network interface to which they can be connected.

They are:

text
host/ FullInterfaceName
ftp/ FullInterfaceName

where FullInterfaceName is the interface name and domain name for the primary HostName.DomainName.

보안 rcmds의 Native 구성

보안 rcmds를 쓰려면 연결될 수 있는 네트워크 인터페이스마다 주체 두 개가 있어야 합니다. 다음과 같습니다.

text
host/ FullInterfaceName@Realmname
ftp/ FullInterfaceName@Realmname

FullInterfaceName은 주 HostName.DomainName의 인터페이스 이름과 도메인 이름입니다. Realmname은 Native Kerberos V 렐름(realm)의 이름입니다.

영어 원문

Native configuration for the secure rcmds

To use the secure rcmds, two principles must exist for every network interface to which they can be connected.

They are:

text
host/ FullInterfaceName@Realmname
ftp/ FullInterfaceName@Realmname

where FullInterfaceName is the interface name and the domain name for the primary HostName.DomainName. Realmname is the name of the Native Kerberos V realm.

TCP/IP 사용자 정의

TCP/IP를 사용자에 맞게 고치려면 .netrc 파일을 만듭니다.

.netrc 파일은 ftp와 rexec 명령의 자동 로그인 정보를 지정합니다. $HOME/.netrc 파일에 정의하는 새 ftp 매크로를 쓸 수도 있습니다. 키 기능이나 키 순서를 바꾸려면 $HOME/.3270keys 파일을 만들어 편집합니다. 또 .k5login 파일은 어느 셀의 어느 DCE 주체가 사용자 계정에 접근할 수 있는지 지정합니다.

영어 원문

TCP/IP customization

To customize TCP/IP, create a .netrc file.

The .netrc file specifies automatic login information for the ftp and rexec commands. You can also write new ftp macros, which are defined in the $HOME/.netrc file. To customize key functions or sequences, create and edit the $HOME/.3270keys file. In addition, the .k5login file specifies which DCE principals on which cells are allowed access to the user's account.

.netrc 파일 만들기

$HOME/.netrc 파일을 만들고 편집하는 단계입니다.

  1. /usr/samples/tcpip/netrc 파일의 사본이 있어야 합니다.
  2. 시스템에서 securetcpip 명령이 실행되고 있지 않아야 합니다.

.netrc 파일을 만드는 방법은 다음과 같습니다.

  1. 다음 명령으로 /usr/samples/tcpip/netrc 파일을 $HOME 디렉터리에 복사합니다.
text
cp /usr/samples/tcpip/netrc $HOME
  1. $HOME/netrc 파일을 편집해 알맞은 HostName, LoginName, Password 값을 넣습니다. 예:
text
machine host1.austin.century.com login fred password bluebonnet
  1. 명령줄 프롬프트($)에서 chmod 명령으로 $HOME/netrc 파일의 권한을 600으로 설정합니다.
text
chmod 600 $HOME/netrc
  1. $HOME/netrc 파일의 이름을 $HOME/.netrc로 바꿉니다. 이름 앞의 마침표(.) 때문에 파일이 숨겨집니다.
text
mv $HOME/netrc $HOME/.netrc

$HOME/.netrc 파일에는 로그인 정의를 여럿 넣을 수 있고, 로그인 정의마다 매크로를 16개까지 넣을 수 있습니다.

영어 원문

Creating the .netrc file

These steps describe how to create and edit the $HOME/.netrc file:

  1. You must have a copy of the /usr/samples/tcpip/netrc file.

  2. The securetcpip command must not be running on your system.

To create the .netrc file:

  1. Copy the /usr/samples/tcpip/netrc file to your $HOME directory by typing the following command:
text
cp /usr/samples/tcpip/netrc $HOME
  1. Edit the $HOME/netrc file to supply the appropriate HostName, LoginName, and Password variables. For example:
text
machine host1.austin.century.com login fred password bluebonnet
  1. To set the permissions on the $HOME/netrc file to 600 by using the chmod command at the command line prompt ($), type:
text
chmod 600 $HOME/netrc
  1. Rename the $HOME/netrc file to $HOME/.netrc file. The initial period (.) causes the file to be hidden.
text
mv $HOME/netrc $HOME/.netrc

The $HOME/.netrc file can contain multiple login definitions and up to 16 macros per login definition.

ftp 매크로 쓰기

ftp 매크로를 만드는 단계입니다. $HOME/.netrc 파일을 만들어 두어야 합니다.

ftp 매크로를 쓰는 방법은 다음과 같습니다.

  1. $HOME/.netrc 파일을 편집해 다음 명령을 넣습니다.
text
macdef init
put schedule

ftp 매크로 끝에 빈 줄을 꼭 넣습니다. 빈 줄이 ftp 매크로를 끝냅니다. 위 예에서 macdef 하위 명령은 하위 명령 매크로 init을 정의합니다. 그다음 줄이 매크로가 지정하는 명령이며, 이 경우 put schedule이고 schedule은 파일 이름입니다.

  1. ftp 매크로를 만든 뒤 명령줄 프롬프트에서 다음을 입력합니다.
text
ftp hostname

hostname은 연결할 호스트의 이름입니다. ftp는 $HOME/.netrc 파일에서 호스트 이름에 맞는 로그인 정의를 찾아 그 정의로 로그인합니다.

  1. 로그인한 뒤 명령줄 프롬프트에서 다음을 입력합니다.
text
ftp init

이 예에서 ftp는 init이라는 매크로를 찾아 매크로가 지정하는 명령을 실행합니다. ftp 매크로는 바로 앞의 로그인 항목에 묶이며, $HOME/.netrc 파일 전체에 적용되지 않습니다. init 매크로는 로그인할 때 자동으로 실행됩니다. 다른 매크로는 ftp 프롬프트(ftp>)에서 다음처럼 입력해 실행할 수 있습니다.

text
$getit

이 예에서 $가 ftp 매크로 getit을 실행합니다.

영어 원문

Writing ftp macros

These steps describe how to create an ftp macro.

You must have created the $HOME/.netrc file.

To write an ftp macro:

  1. Edit the $HOME/.netrc file to include the following instructions:
text
macdef init
put schedule

Be sure to insert a blank line at the end of your ftp macro. The blank line terminates the ftp macro. In the above example, the macdef subcommand defines the subcommand macro init. The line following is the command the macro specifies, in this case put schedule, where schedule is the name of a file.

  1. After you create the ftp macro, at the command line prompt, type:
text
ftp hostname

Where hostname is the name of the host to which you are connecting. ftp scans the $HOME/.netrc file for a login definition matching your host name and uses that login definition to log you in.

  1. After you log in, at the command line prompt, type:
text
ftp init

In this example, ftp scans for the macro named init and executes the command or commands the macro specifies. An ftp macro is associated with the login entry immediately preceding it. ftp macros are not global to the $HOME/.netrc file. The macro init is executed automatically upon login. Other macros can be executed from the ftp prompt (ftp>) by typing the following:

text
$getit

In this example, the $ executes the ftp macro getit.

키 묶음 할당 바꾸기

TCP/IP를 사용자에 맞게 고칠 때 이 절차로 키 기능과 키 순서를 바꿀 수 있습니다.

  1. vi 편집기를 다룰 줄 알아야 합니다.
  2. 시스템에 vi 편집기가 있어야 합니다.

키 기능이나 키 순서를 바꾸려고 $HOME/.3270keys 파일을 만들고 편집하는 단계입니다.

  1. 다음 명령으로 /etc/3270.keys 파일을 $HOME 디렉터리에 .3270keys라는 이름으로 복사합니다.
text
cp /etc/3270.keys $HOME/.3270keys
  1. $HOME/.3270keys 파일의 bind 문을 바꿔 키 묶음의 할당을 바꿉니다.
      1. vi 편집기로 새 파일을 열고 입력 모드로 들어갑니다.
      1. Ctrl-V를 누른 다음 매핑할 키를 누릅니다. 누른 키의 값이 표시됩니다.
      1. 표시된 값을 $HOME/.3270keys 파일의 알맞은 줄 Sequence 열에 넣습니다.

예를 들어 vi 편집기를 실행하고 입력 모드로 들어간 뒤 Ctrl-V와 Alt-Insert를 누르면 [[141q가 표시됩니다. Sequence 열에서는 첫 [를 \e로 바꾸므로 구성한 줄은 다음과 같습니다.

text
3270 Function Sequence  Key
bind  pa1      "\e[141q" #a_insert

.k5login 파일

.k5login 파일은 보안 rcmds에 Kerberos V.5 인증을 쓸 때 씁니다. 어느 셀의 어느 DCE 주체가 사용자 계정에 접근할 수 있는지 지정합니다.

파일 위치는 $HOME/.k5login입니다. 로컬 사용자가 소유해야 하고 소유자는 이 파일의 읽기 권한이 있어야 합니다. 이 파일의 최소 권한은 400입니다.

.k5login 파일에는 계정에 접근할 수 있는 DCE 주체/셀 쌍의 목록이 들어 있습니다. 주체/셀 쌍은 (DCE 형식이 아니라) Kerberos 형식으로 적습니다. 예를 들어 파일에 다음이 있으면

text
UserA@Cell1

DCE 셀 Cell1의 DCE 주체 UserA가 계정에 접근할 수 있습니다.

DCE 주체가 사용자 계정 이름과 같고 사용자 계정에 $HOME/.k5login 파일이 없으면, (Kerberos V.5 인증이 구성되어 있는 한) DCE 주체가 계정에 접근할 수 있습니다.

Kerberos V.5 인증에 관한 자세한 내용은 인증과 보안 rcmds를 봅니다.

영어 원문

Changing the assignment of a key set

When customizing TCP/IP, you can use this procedure to change key functions and sequences.

  1. You must have working knowledge of the vi editor.

  2. The vi editor must be on your system.

The following steps describe how to create and edit the $HOME/.3270keys file to customize key functions or sequences:

  1. Copy the /etc/3270.keys file to the $HOME directory and rename it .3270keys using the following command:
text
cp /etc/3270.keys $HOME/.3270keys
  1. Change the bind statements in the $HOME/.3270keys file to change the assignment of a key set using the following steps: a. Start the vi editor on a new file and enter insert mode. b. Press the Ctrl-V key sequence and then the key that you want to map. This displays a value for the pressed key. c. Place the displayed value on the appropriate line in the Sequence column of the $HOME/.3270keys file.

For example, after you have invoked the vi editor and entered insert mode, press Ctrl-V and then Alt-Insert. This displays [[141q. The first [ is replaced with \e in the Sequence column so that the configured line looks like the following:

text
3270 Function Sequence  Key
bind  pa1      "\e[141q" #a_insert

.k5login file

The .k5login file is used when Kerberos V.5 authentication is used for the secure rcmds. This file specifies which DCE principals on which cells are allowed access to the user's account.

The file is located at $HOME/.k5login. It should be owned by the local user and the owner should have read permission on this file. The minimum permission setting for this file is 400.

The .k5login file contains a list of the DCE principal/cell pairs allowed to access the account. The principal/cell pairs are kept in Kerberos format (as opposed to DCE format). For example, if the file contains

text
UserA@Cell1

then the DCE principal UserA on the DCE cell Cell1 can access the account.

If the DCE principal is the same as the user's account name, and if there is no$HOME/.k5login file for the user's account, the DCE principal gains access to the account (provided Kerberos V.5 authentication is configured).

For more information about Kerberos V.5 authentication, see Authentication and the secure rcmds.