[AIX 운영 체제와 장치 관리 53] USB 장치와 로그인 — USB 플래시·블루레이 드라이브, 로그인과 로그아웃, su, .hushlogin, id·whoami·who·uname, 암호 지침과 passwd
https://archive.horanglab.com/posts/aix-osdev-53
핵심 정리
- USB 플래시 드라이브는 AIX 5.3 TL 5300-09, AIX 6.1 TL 6100-02부터 지원하며
usbms0같은 이름(이전에는/dev/flashdrive0)으로 구성됩니다. USB 블루레이 드라이브는 AIX 6.1 TL 6100-06부터cd0같은 이름으로 읽기 전용 지원됩니다. 둘 다 장치 패키지devices.usbif.08025002에 들어 있습니다. - AIX는 USB 플러그 앤 플레이를 지원하지 않아 root가
cfgmgr -l usb0을 실행해야 하고, 뺀 장치는rmdev -l을 실행할 때까지 ODM에서 Available 상태로 남습니다. 플래시 드라이브는 닫거나 마운트 해제한 뒤 빼야 데이터가 손상되지 않습니다. - 홈 디렉터리에
.hushlogin파일을 두면 로그인 메시지를 억제합니다. su로 다른 사용자가 되고 id로 확인합니다. - id는 사용자·그룹 이름과 ID, 유효 ID, 보조 그룹을, whoami와 logname은 로그인 이름을,
who am i는 로그인 이름·터미널·시각을,uname -n은 시스템 이름을 보여 줍니다. - 좋은 암호는 6자 이상이며 영문 대소문자와 숫자, 영문자가 아닌 문자를 섞습니다. passwd로 바꾸고, 새 암호 물음에 Enter나 Ctrl-D를 누르면 빈 암호가 됩니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 6.1 (USB 장치 지원 절이 새로 실림) |
| 원문 | Operating system and device management — 5.3판 299306쪽, 6.1판 561568쪽 |
| 관련 명령어 | cfgmgr -l usb0, rmdev -l usbmsN, rmdev -l cdN, login, su, touch .hushlogin, exit, logout, id, whoami, who am i, logname, uname, who, passwd |
| 관련 장치와 파일 | devices.usbif.08025002, /dev/usbms0, /dev/rusbms0, /dev/cd0, /dev/rcd0, .hushlogin |
USB(Universal Serial Bus) 하위 시스템의 여러 드라이버 계층이 함께 동작해 플래시 드라이브, 블루레이 드라이브, 테이프, CD-ROM, 키보드, 마우스, 스피커 같은 여러 USB 장치의 연결을 지원합니다.
영어 원문
USB device support
The different layers of drivers in the Universal Serial Bus (USB) subsystem work together to support the attachment of a range of USB devices that include flash drives, Blu-ray drive, tape, CD-ROM, keyboard, mouse, speakers, and so on.
USB 플래시 드라이브 지원
AIX 5.3 with the Technology Level 5300-09와 AIX 6.1 with the Technology Level 6100-02부터 USB(Universal Serial Bus) 플래시 드라이브를 지원합니다.
이 장치 지원은 다음 장치 패키지에 들어 있습니다.
devices.usbif.08025002
USB 플래시 드라이브에 대한 AIX 지원은 업계 표준 OEM USB 플래시 드라이브 표본으로 검증됐습니다. AIX USB 호스트 컨트롤러 장치 드라이버는 USB 2.0을 지원합니다. USB 플래시 드라이브는 usbms0, usbms1 같은 논리 이름으로 구성되며 원시(raw)와 블록 특수 파일을 모두 제공합니다. 예를 들어 usbms0의 원시 특수 파일은 /dev/rusbms0이고 블록 특수 파일은 /dev/usbms0입니다. AIX Version 5.3 with the 5300-11 Technology Level과 AIX Version 6.1 with the 6100-04 Technology Level 이전에는 USB 플래시 드라이브가 /dev/flashdrive0으로 구성됐습니다.
이 드라이브에서는 ISO(International Organization for Standardization) 파일 시스템(읽기 전용 ISO 9660)을 지원합니다. tar 명령, cpio 명령, backup이나 restore 아카이브로 드라이브에 시스템 백업을 만들 수 있습니다. dd 명령으로 드라이브에 ISO 이미지를 더할 수도 있습니다.
AIX 운영 체제는 USB 플래시 드라이브의 플러그 앤 플레이를 지원하지 않습니다. AIX 사용자가 플래시 드라이브를 쓸 수 있게 하려면 root 사용자가 드라이브를 시스템 USB 포트에 연결하고 다음 명령을 실행해야 합니다.
cfgmgr -l usb0
주의: 포트에서 플래시 드라이브를 뺄 때 조심합니다. 빼기 전에 드라이브를 제대로 닫거나 마운트 해제하지 않으면 드라이브의 데이터가 손상될 수 있습니다.
드라이브를 뺀 뒤에도 root 사용자가 다음 명령을 실행할 때까지 ODM(Object Data Manager)에서 Available 상태로 남습니다.
rmdev -l usbms n
드라이브가 Available 상태이면 시스템에 다시 연결할 수 있으며 다시 마운트하거나 다시 열 수 있습니다. 사용자가 아직 열고 있는 상태에서 드라이브를 시스템 USB 포트에서 뽑으면, 사용자가 닫았다가 다시 열 때까지 그 드라이브를 다시 쓸 수 없습니다.
영어 원문
USB flash drive support
Beginning with AIX 5.3 with the Technology Level 5300-09 and AIX 6.1 with the Technology Level 6100-02, Universal Serial Bus (USB) flash drives are supported.
Support for these devices is included in the following device package:
devices.usbif.08025002
AIX support for USB flash drives is validated against a sample of industry standard OEM USB flash drives. Device drivers for the AIX USB-host controller support USB 2.0. USB flash drives are configured with logical names, such as usbms0 and usbms1, and they present both raw and block special files. For example, the raw special file for usbms0 is /dev/rusbms0, and the block special file is /dev/usbms0. Before AIX Version 5.3 with the 5300-11 Technology Level and AIX Version 6.1 with the 6100-04 Technology Level, USB flash drives were configured as /dev/flashdrive0.
The International Organization for Standardization (ISO) file system (read-only ISO 9660) is supported on these drives. You can create a system backup on the drives by using the tar command, cpio command, or the backup or restore archives. You can also use the dd command to add the ISO images to the drives.
The AIX operating system does not support plug-and-play for USB flash drives. To make a flash drive available to AIX users, a root user must connect the drive to a system USB port and run the following command:
cfgmgr -l usb0
Attention: Use caution when you remove the flash drives from ports. If the drives are not properly closed or unmounted before you remove them, data on the drives can be corrupted.
After you remove the drives, they remain in the available state in the Object Data Manager (ODM) until the root user runs the following command:
rmdev -l usbms n
When a drive is in the available state, you can reconnect it to the system, and it can be remounted or reopened. If a drive is disconnected from a system USB port while it is still open to a user, that drive is not reusable until the user closes and reopens it.
USB 블루레이 드라이브 읽기 전용 지원
AIX Version 6.1 with the 6100-06 Technology Level 이후는 USB로 연결한 블루레이 드라이브를 인식하고 구성합니다.
이 기능은 다음 장치 패키지에 들어 있습니다.
devices.usbif.08025002
AIX 운영 체제가 블루레이 매체를 읽는 능력은 업계 표준 OEM(original equipment manufacturer) USB 블루레이 드라이브 표본으로 검증됐습니다.
USB 블루레이 드라이브는 cd0, cd1 같은 논리 이름으로 구성됩니다. 드라이브는 원시와 블록 특수 파일을 모두 제공합니다. 예를 들어 cd0의 원시 특수 파일은 /dev/rcd0이고 블록 특수 파일은 /dev/cd0입니다.
읽기 전용 기능은 ISO 파일 시스템(읽기 전용 ISO 9660), UDF(Universal Disk Format) 파일 시스템(버전 2.01 이하), dd와 tar 같은 표준 광 매체 접근 명령에 제공됩니다.
AIX 운영 체제는 USB 블루레이 드라이브에 든 CD, DVD, 블루레이 매체에 쓰는 작업을 지원하지 않습니다. (드라이브가 쓰기를 할 수 있으면) 쓰기 작업이 막히지는 않지만, 쓰기 작업 중 생기는 문제는 IBM이 지원하지 않습니다.
AIX 운영 체제는 USB 블루레이 드라이브의 플러그 앤 플레이를 지원하지 않습니다. AIX 사용자가 USB 블루레이 드라이브를 쓸 수 있게 하려면 root 사용자가 드라이브를 시스템 USB 포트에 연결하고 다음 명령을 실행해야 합니다.
cfgmgr -l usb0
드라이브를 뺀 뒤에도 root 사용자가 다음 명령을 실행할 때까지 ODM(Object Data Manager) 데이터베이스에서 Available 상태로 남습니다.
rmdev -l cd n
드라이브가 Available 상태이면 시스템에 다시 연결할 수 있습니다. 사용자가 아직 열고 있는 상태에서 드라이브를 시스템 USB 포트에서 뽑으면, 닫았다가 다시 열 때까지 그 드라이브를 쓸 수 없습니다.
영어 원문
USB Blu-ray drive read-only support
AIX Version 6.1 with the 6100-06 Technology Level, and later, recognizes and configures USB attached Blu-ray drives.
This feature is included in the following device package:
devices.usbif.08025002
The capability of the AIX operating system to read Blu-ray media is validated against a sample of industry standard original equipment manufacturer (OEM) USB Blu-ray drives.
USB Blu-ray drives are configured by using logical names, such as cd0 and cd1. The drives present both raw and block special files. For example, the raw special file for cd0 is /dev/rcd0 and the block special file is /dev/cd0.
The read-only capability is provided for the International Organization for Standardization (ISO) file system (read-only ISO 9660), the Universal Disk Format (UDF) file system (Version 2.01, or earlier), and standard optical media access commands, such as dd and tar.
The AIX operating system does not support the write operation to CD, DVD, or Blu-ray media present in the USB Blu-ray drive. Although the write operation is not prevented (if the drive is write-capable), IBM does not provide support for any issues that are encountered during the write operation.
The AIX operating system does not support plug-and-play for USB Blu-ray drives. To make a USB Blu-ray drive available to AIX users, a root user must connect the drive to the USB port of the system and run the following command:
cfgmgr -l usb0
After the drive is removed, the drive remains in the available state in the Object Data Manager (ODM) database until the root user runs the following command:
rmdev -l cd n
When a drive is in the available state, you can reconnect it to the system. If a drive is disconnected from a system USB port while it is still open to a user, you cannot use that drive until you close and reopen it.
로그인 이름, 시스템 ID, 암호
운영 체제가 알맞은 환경을 주려면 사용자가 누구인지 알아야 합니다.
운영 체제에 자신을 밝히려면 로그인 이름(사용자 ID나 사용자 이름이라고도 함)과 암호를 입력해 로그인합니다. 암호는 보안의 한 형태입니다. 로그인 이름을 아는 사람도 암호를 모르면 시스템에 로그인할 수 없습니다.
시스템이 다중 사용자 시스템으로 설정돼 있으면 권한 있는 사용자마다 시스템에 계정, 암호, 로그인 이름이 있습니다. 운영 체제는 사용자마다 쓴 자원을 추적합니다. 이를 시스템 계정이라 합니다. 사용자마다 시스템 저장 공간 안에 파일 시스템이라는 개인 영역이 주어집니다. 로그인하면 시스템에 다른 파일이 수천 개 있어도 파일 시스템에는 자기 파일만 있는 것처럼 보입니다.
한 시스템에 유효한 로그인 이름이 둘 이상 있을 수 있습니다. 한 로그인 이름에서 다른 이름으로 바꾸고 싶으면 시스템에서 로그아웃할 필요가 없습니다. 로그아웃하지 않고 서로 다른 셸에서 서로 다른 로그인 이름을 동시에, 또는 같은 셸에서 차례로 쓸 수 있습니다. 또 시스템이 다른 시스템과 연결된 네트워크의 일부이면 로그인 이름이 있는 다른 시스템 어디에든 로그인할 수 있습니다. 이를 원격 로그인이라 합니다.
운영 체제에서 일을 마치면 파일과 데이터를 안전하게 지키도록 로그아웃합니다.
영어 원문
Login names, system IDs, and passwords
The operating system must know who you are in order to provide you with the correct environment.
To identify yourself to the operating system, log in by typing your login name (also known as your user ID or user name) and a password. Passwords are a form of security. People who know your login name cannot log in to your system unless they know your password.
If your system is set up as a multiuser system, each authorized user will have an account, password, and login name on the system. The operating system keeps track of the resources used by each user. This is known as system accounting. Each user will be given a private area in the storage space of the system, called the file system. When you log in, the file system appears to contain only your files, although there are thousands of other files on the system.
It is possible to have more than one valid login name on a system. If you want to change from one login name to another, you do not have to log out of the system. Rather, you can use the different login names simultaneously in different shells or consecutively in the same shell without logging out. In addition, if your system is part of a network with connections to other systems, you can log in to any of the other systems where you have a login name. This is referred to as a remote login.
When you have finished working on the operating system, log out to ensure that your files and data are secure.
운영 체제에 로그인
운영 체제를 쓰려면 시스템이 실행 중이고 로그인해 있어야 합니다. 운영 체제에 로그인하면 시스템에 자신을 밝히고 시스템이 환경을 설정하게 합니다.
시스템은 하루 중 특정 시간과 일주일 중 특정 요일에만 로그인하도록 설정돼 있을 수 있습니다. 허용된 시간 밖에 로그인하려 하면 접근이 거부됩니다. 로그인 시간은 시스템 관리자가 확인할 수 있습니다.
로그인 프롬프트에서 로그인합니다. 운영 체제에 로그인하면 자동으로 홈 디렉터리(로그인 디렉터리라고도 함)에 놓입니다.
시스템이 켜진 뒤 시스템에 로그인해 세션을 시작합니다.
- login: 프롬프트 다음에 로그인 이름을 입력합니다.
login: LoginName
예를 들어 로그인 이름이 denise이면 다음과 같습니다.
login: denise
- password: 프롬프트가 표시되면 암호를 입력합니다. (입력하는 동안 화면에 암호가 표시되지 않습니다.)
password: [your password]
암호 프롬프트가 표시되지 않으면 암호가 정의되지 않은 것이며, 운영 체제에서 일을 시작할 수 있습니다.
기계가 켜져 있지 않으면 로그인하기 전에 다음을 합니다.
붙은 각 장치의 전원 스위치를 On으로 합니다.
전원 스위치를 On(I)으로 해 시스템 장치를 시작합니다.
세 자리 표시창을 봅니다. 자체 시험이 오류 없이 끝나면 세 자리 표시창이 비어 있습니다.
주의가 필요한 오류가 생기면 세 자리 코드가 남고 시스템 장치가 멈춥니다. 오류 코드와 복구 정보는 시스템 관리자에게 문의합니다.
자체 시험이 성공적으로 끝나면 화면에 다음과 비슷한 로그인 프롬프트가 표시됩니다.
login:
로그인한 뒤 운영 체제 설정에 따라 시스템은 명령행 인터페이스(셸)나 그래픽 인터페이스(예: AIXwindows나 CDE(Common Desktop Environment))로 시작합니다.
암호나 사용자 이름 구성에 관한 질문은 시스템 관리자에게 문의합니다.
영어 원문
Logging in to the operating system
To use the operating system, your system must be running, and you must be logged in. When you log in to the operating system, you identify yourself to the system and allow the system to set up your environment.
Your system might be set up so that you can only log in during certain hours of the day and on certain days of the week. If you attempt to log in at a time other than the time allowed, access will be denied. Your system administrator can verify your login times.
You log in at the login prompt. When you log in to the operating system, you are automatically placed into your home directory (also called your login directory).
After your system is turned on, log in to the system to start a session.
- Type your login name following the login: prompt:
login: LoginName
For example, if your login name is denise:
login: denise
- If the password: prompt is displayed, type your password. (The screen does not display your password as you type it.)
password: [your password]
If the password prompt is not displayed, you have no password defined; you can begin working in the operating system.
If your machine is not turned on, do the following before you log in:
Set the power switches of each attached device to On.
Start the system unit by setting the power switch to On (I).
Look at the three-digit display. When the self-tests complete without error, the three-digit display is blank.
If an error requiring attention occurs, a three-digit code remains, and the system unit stops. See your system administrator for information about error codes and recovery.
When the self-tests complete successfully, a login prompt similar to the following is displayed on your screen:
login:
After you have logged in, depending on how your operating system is set up, your system will start up in either a command line interface (shell) or a graphical interface (for example, AIXwindows or Common Desktop Environment (CDE)).
If you have questions concerning the configuration of your password or user name, please consult your system administrator.
여러 번 로그인(login 명령)
둘 이상의 프로젝트를 하면서 계정을 따로 유지하고 싶으면 동시에 둘 이상 로그인할 수 있습니다. 같은 로그인 이름이나 서로 다른 로그인 이름으로 시스템에 로그인하면 됩니다.
참고: 시스템마다 한 번에 활성일 수 있는 로그인 이름의 최대 수가 있습니다. 이 수는 사용권 계약으로 정해지며 설치마다 다릅니다.
예를 들어 이미 denise1로 로그인해 있고 다른 로그인 이름이 denise2이면 프롬프트에 다음을 입력합니다.
login denise2
password: 프롬프트가 표시되면 암호를 입력합니다. (입력하는 동안 화면에 암호가 표시되지 않습니다.) 이제 시스템에 로그인이 둘 실행 중입니다.
전체 구문은 Commands Reference, Volume 3의 login 명령을 봅니다.
영어 원문
Logging in more than one time (login command)
If you are working on more than one project and want to maintain separate accounts, you can have more than one concurrent login. You do this by using the same login name or by using different login names to log in to your system.
Note: Each system has a maximum number of login names that can be active at any given time. This number is determined by your license agreement and varies between installations.
For example, if you are already logged on as denise1 and your other login name is denise2, at the prompt, type the following:
login denise2
If the password: prompt is displayed, type your password. (The screen does not display your password as you type it.) You now have two logins running on your system.
See the login command in the Commands Reference, Volume 3 for the complete syntax.
시스템에서 다른 사용자 되기(su 명령)
(그 사용자의 로그인 이름을 알면) su(switch user) 명령으로 세션에 연결된 사용자 ID를 바꿀 수 있습니다.
예를 들어 사용자 joyce가 되고 싶으면 프롬프트에 다음을 입력합니다.
su joyce
password: 프롬프트가 표시되면 사용자 joyce의 암호를 입력합니다. 이제 사용자 ID가 joyce입니다. 암호를 모르면 요청이 거부됩니다.
사용자 ID가 joyce인지 확인하려면 id 명령을 씁니다.
관련 개념
- 사용자 ID 표시 — 지정한 사용자의 시스템 ID를 표시하려면 id 명령을 씁니다. 시스템 ID는 시스템에 사용자와 사용자 그룹을 식별하는 번호입니다.
관련 정보
- su 명령 구문
영어 원문
Becoming another user on a system (su command)
You can change the user ID associated with a session (if you know that user's login name) by using the su (switch user) command.
For example, if you want to switch to become user joyce, at the prompt, type the following:
su joyce
If the password: prompt is displayed, type the password for user joyce. Your user ID is now joyce. If you do not know the password, the request is denied.
To verify that your user ID is joyce, use the id command.
Related concepts
“Displaying user IDs” To display the system identifications (IDs) for a specified user, use the id command . The system IDs are numbers that identify users and user groups to the system.
Related information
su command syntax
로그인 메시지 억제
로그인에 성공하면 login 명령은 오늘의 메시지, 이 사용자의 마지막 성공·실패 로그인 시도 날짜와 시각, 인증 정보(보통 암호)를 마지막으로 바꾼 뒤 이 사용자의 실패한 로그인 시도 총수를 표시합니다. 홈 디렉터리에 .hushlogin 파일을 두면 이 메시지를 억제할 수 있습니다.
홈 디렉터리의 프롬프트에서 다음 명령을 입력합니다.
touch .hushlogin
touch 명령은 .hushlogin이라는 빈 파일이 없으면 만듭니다. 다음에 로그인할 때는 로그인 메시지가 모두 억제됩니다. 오늘의 메시지만 남기고 다른 로그인 메시지를 억제하도록 시스템에 지시할 수도 있습니다.
관련 정보
- touch 명령
영어 원문
Suppressing login messages
After a successful login, the login command displays the message of the day, the date and time of the last successful and unsuccessful login attempts for this user, and the total number of unsuccessful login attempts for this user since the last change of authentication information (usually a password). You can suppress these messages by including a .hushlogin file in your home directory.
At the prompt in your home directory, type the following command:
touch .hushlogin
The touch command creates the empty file named .hushlogin if it does not exist. The next time you log in, all login messages will be suppressed. You can instruct the system to retain only the message of the day and suppress other login messages.
Related information
touch command
운영 체제에서 로그아웃(exit와 logout 명령)
운영 체제에서 로그아웃하려면 시스템 프롬프트에서 다음 가운데 하나를 합니다.
- 파일 끝 제어 키 조합(Ctrl-D 키)을 누릅니다.
- 또는
exit를 입력합니다. - 또는
logout을 입력합니다.
로그아웃하면 시스템은 login: 프롬프트를 표시합니다.
영어 원문
Logging out of the operating system (exit and logout commands)
To log out of the operating system, do one of the following at the system prompt.
Press the end-of-file control-key sequence (Ctrl-D keys).
OR
Type exit.
OR
Type logout.
After you log out, the system displays the login: prompt.
사용자 ID 표시
지정한 사용자의 시스템 ID(식별자)를 표시하려면 id 명령을 씁니다. 시스템 ID는 시스템에 사용자와 사용자 그룹을 식별하는 번호입니다.
id 명령은 해당하면 다음 정보를 표시합니다.
- 사용자 이름과 실제 사용자 ID
- 사용자 그룹 이름과 실제 그룹 ID
- 있으면 사용자의 보조 그룹 이름과 보조 그룹 ID
예를 들어 프롬프트에 다음을 입력합니다.
id
시스템은 다음과 비슷한 정보를 표시합니다.
uid=1544(sah) gid=300(build) euid=0(root) egid=9(printq) groups=0(system),10(audit)
이 예에서 사용자는 사용자 이름 sah, ID 번호 1544이고, 기본 그룹 이름 build, ID 번호 300이며, 유효 사용자 이름 root, ID 번호 0, 유효 그룹 이름 printq, ID 번호 9이고, 보조 그룹 이름 system과 audit이 각각 ID 번호 0과 10입니다.
또 예를 들어 프롬프트에 다음을 입력합니다.
id denise
시스템은 다음과 비슷한 정보를 표시합니다.
uid=2988(denise) gid=1(staff)
이 예에서 사용자 denise는 ID 번호 2988이고 ID 번호 1인 기본 그룹 staff만 있습니다.
전체 구문은 Commands Reference, Volume 3의 id 명령을 봅니다.
관련 작업
- 시스템에서 다른 사용자 되기(su 명령) — 그 사용자의 로그인 이름을 알면 su 명령으로 세션에 연결된 사용자 ID를 바꿀 수 있습니다.
로그인 이름 표시(whoami와 logname 명령)
동시에 둘 이상 로그인해 있으면 로그인 이름, 특히 지금 쓰고 있는 로그인 이름을 놓치기 쉽습니다. whoami와 logname 명령으로 이 정보를 표시할 수 있습니다.
whoami 명령 사용
쓰고 있는 로그인 이름을 알아보려면 프롬프트에 다음을 입력합니다.
whoami
시스템은 다음과 비슷한 정보를 표시합니다.
denise
이 예에서 쓰고 있는 로그인 이름은 denise입니다.
전체 구문은 Commands Reference, Volume 6의 whoami 명령을 봅니다.
who am i 명령 사용
who 명령의 변형인 who am i 명령으로 로그인 이름, 터미널 이름, 로그인 시각을 표시할 수 있습니다. 프롬프트에 다음을 입력합니다.
who am i
시스템은 다음과 비슷한 정보를 표시합니다.
denise pts/0 Jun 21 07:53
이 예에서 로그인 이름은 denise, 터미널 이름은 pts/0이며, 이 사용자는 6월 21일 오전 7시 53분에 로그인했습니다.
전체 구문은 Commands Reference, Volume 6의 who 명령을 봅니다.
logname 명령 사용
who 명령의 또 다른 변형인 logname 명령은 who 명령과 같은 정보를 표시합니다.
프롬프트에 다음을 입력합니다.
logname
시스템은 다음과 비슷한 정보를 표시합니다.
denise
이 예에서 로그인 이름은 denise입니다.
운영 체제 이름 표시(uname 명령)
운영 체제 이름을 표시하려면 uname 명령을 씁니다.
예를 들어 프롬프트에 다음을 입력합니다.
uname
시스템은 다음과 비슷한 정보를 표시합니다.
AIX
이 예에서 운영 체제 이름은 AIX입니다.
전체 구문은 Commands Reference, Volume 5의 uname 명령을 봅니다.
시스템 이름 표시(uname 명령)
네트워크에 있을 때 시스템 이름을 표시하려면 uname 명령에 -n 플래그를 씁니다. 시스템 이름은 네트워크에 시스템을 식별하며 로그인 ID와 같지 않습니다.
예를 들어 프롬프트에 다음을 입력합니다.
uname -n
시스템은 다음과 비슷한 정보를 표시합니다.
barnard
이 예에서 시스템 이름은 barnard입니다.
전체 구문은 Commands Reference, Volume 5의 uname 명령을 봅니다.
로그인한 모든 사용자 표시
지금 로컬 시스템에 로그인한 모든 사용자 정보를 표시하려면 who 명령을 씁니다.
로그인 이름, 시스템 이름, 로그인 날짜와 시각이 표시됩니다.
참고: 이 명령은 로컬 노드에 로그인한 사용자만 식별합니다.
로컬 시스템 노드를 누가 쓰고 있는지 표시하려면 다음을 입력합니다.
who
시스템은 다음과 비슷한 정보를 표시합니다.
joe lft/0 Jun 8 08:34
denise pts/1 Jun 8 07:07
이 예에서 사용자 joe는 터미널 lft/0에서 6월 8일 오전 8시 34분에 로그인했습니다.
who 명령을 봅니다.
영어 원문
Displaying user IDs
To display the system identifications (IDs) for a specified user, use the id command . The system IDs are numbers that identify users and user groups to the system.
The id command displays the following information, when applicable:
User name and real user ID
Name of the user's group and real group ID
Name of the user's supplementary groups and supplementary group IDs, if any
For example, at the prompt, type the following:
id
The system displays information similar to the following:
uid=1544(sah) gid=300(build) euid=0(root) egid=9(printq) groups=0(system),10(audit)
In this example, the user has user name sah with an ID number of 1544; a primary group name of build with an ID number of 300; an effective user name of root with an ID number of 0; an effective group name of printq with an ID number of 9; and two supplementary group names of system and audit, with ID numbers 0 and 10, respectively.
For example, at the prompt, type the following:
id denise
The system displays information similar to the following:
uid=2988(denise) gid=1(staff)
In this example, the user denise has an ID number of 2988 and has only a primary group name of staff with an ID number of 1.
See the id command in the Commands Reference, Volume 3 for the complete syntax.
Related tasks
Becoming another user on a system (su command) You can change the user ID associated with a session (if you know that user's login name) by using the su (switch user) command.
Displaying your login name (whoami and logname commands)
When you have more than one concurrent login, it is easy to lose track of the login names or, in particular, the login name that you are currently using. You can use the whoami and logname commands to display this information.
Using the whoami command
To determine which login name is being used, at the prompt, type the following:
whoami
The system displays information similar to the following:
denise
In this example, the login name being used is denise.
See the whoami command in the Commands Reference, Volume 6 for the complete syntax.
Using the who am i command
A variation of the who command, the who am i command, allows you to display the login name, terminal name, and time of the login. At the prompt, type the following:
who am i
The system displays information similar to the following:
denise pts/0 Jun 21 07:53
In this example, the login name is denise, the name of the terminal is pts/0, and this user logged in at 7:53 a.m. on June 21.
See the who command in the Commands Reference, Volume 6 for the complete syntax.
Using the logname command
Another variation of the who command, the logname command displays the same information as the who command.
At the prompt, type the following:
logname
The system displays information similar to the following:
denise
In this example, the login name is denise.
Displaying the operating system name (uname command)
To display the name of the operating system, use the uname command.
For example, at the prompt, type the following:
uname
The system displays information similar to the following:
AIX
In this example, the operating system name is AIX.
See the uname command in the Commands Reference, Volume 5 for the complete syntax.
Displaying your system name (uname command)
To display the name of your system if you are on a network, use the uname command with the -n flag. Your system name identifies your system to the network; it is not the same as your login ID.
For example, at the prompt, type the following:
uname -n
The system displays information similar to the following:
barnard
In this example, the system name is barnard.
See the uname command in the Commands Reference, Volume 5 book for the complete syntax.
Displaying all users who are logged in
To display information about all users currently logged into the local system, use the who command.
The following information is displayed: login name, system name, and date and time of login.
Note: This command only identifies logged-in users on the local node.
To display information about who is using the local system node, type the following:
who
The system displays information similar to the following:
joe lft/0 Jun 8 08:34
denise pts/1 Jun 8 07:07
In this example, the user joe, on terminal lft/0, logged in at 8:34 a.m. on June 8.
See the who command.
암호
고유한 암호는 파일에 어느 정도 시스템 보안을 줍니다.
시스템은 계정마다 암호를 연결합니다. 보안은 권한 없는 사람이 시스템에 접근하거나 다른 사용자의 파일을 함부로 고치지 못하게 하므로 컴퓨터 시스템의 중요한 부분입니다. 보안으로 일부 사용자에게 쓸 수 있는 명령과 접근할 수 있는 파일에 대한 배타적 특권을 줄 수도 있습니다. 보호를 위해 일부 시스템 관리자는 사용자에게 특정 명령이나 파일에만 접근을 허용합니다.
암호 지침
고유한 암호를 가져야 합니다. 암호는 공유하면 안 됩니다. 다른 회사 자산처럼 암호를 보호합니다. 암호를 만들 때는 추측하기 어렵되, 기억하려고 적어 둬야 할 만큼 어렵지는 않게 합니다.
알기 어려운 암호를 쓰면 사용자 ID가 안전해집니다. 이름이나 생일 같은 개인 정보에 바탕을 둔 암호는 나쁜 암호입니다. 흔한 단어도 쉽게 추측될 수 있습니다.
좋은 암호는 적어도 여섯 자이고 영문자가 아닌 문자를 포함합니다. 이상한 단어 조합과 일부러 틀리게 쓴 단어도 좋은 선택입니다.
참고: 암호가 너무 기억하기 어려워 적어 둬야 한다면 좋은 암호가 아닙니다.
암호를 고를 때 다음 지침을 씁니다.
- 사용자 ID를 암호로 쓰지 않습니다. 거꾸로 쓰거나 두 번 쓰거나 다르게 바꿔서도 쓰지 않습니다.
- 암호를 다시 쓰지 않습니다. 시스템이 암호 재사용을 거부하도록 설정돼 있을 수 있습니다.
- 어떤 사람의 이름도 암호로 쓰지 않습니다.
- 온라인 맞춤법 검사 사전에 있는 단어를 암호로 쓰지 않습니다.
- 여섯 자보다 짧은 암호를 쓰지 않습니다.
- 비속어를 쓰지 않습니다. 암호를 추측할 때 가장 먼저 확인하는 단어에 속합니다.
- 적어 두지 않아도 되도록 기억하기 쉬운 암호를 씁니다.
- 문자와 숫자를 모두 쓰고 소문자와 대문자를 모두 쓴 암호를 씁니다.
- 숫자로 구분한 두 단어를 암호로 씁니다.
- 발음할 수 있는 암호를 씁니다. 기억하기 더 쉽습니다.
- 암호를 적어 두지 않습니다. 그러나 꼭 적어야 하면 잠긴 캐비닛처럼 물리적으로 안전한 곳에 둡니다.
암호 바꾸기(passwd 명령)
암호를 바꾸려면 passwd 명령을 씁니다.
- 프롬프트에 다음을 입력합니다.
passwd
아직 암호가 없으면 2단계를 건너뜁니다. 2. 다음 프롬프트가 표시됩니다.
Changing password for UserID
UserID ’s Old password:
이 요청은 자리를 비운 동안 권한 없는 사용자가 암호를 바꾸지 못하게 합니다. 현재 암호를 입력하고 Enter를 누릅니다. 3. 다음 프롬프트가 표시됩니다.
UserID ’s New password:
원하는 새 암호를 입력하고 Enter를 누릅니다. 4. 새 암호를 다시 입력하라는 다음 프롬프트가 표시됩니다.
Enter the new password again:
이 요청은 다시 만들 수 없는 잘못 입력한 문자열로 암호가 설정되지 않도록 지켜 줍니다.
전체 구문은 Commands Reference, Volume 4의 passwd 명령을 봅니다.
빈 암호 설정(passwd 명령)
로그인할 때마다 암호를 입력하고 싶지 않으면 암호를 빈 값(null)으로 설정합니다.
암호를 빈 값으로 설정하려면 다음을 입력합니다.
passwd
새 암호를 물으면 Enter나 Ctrl-D를 누릅니다.
passwd 명령은 암호 입력을 다시 묻지 않습니다. 빈 암호를 확인하는 메시지가 표시됩니다.
자세한 내용과 전체 구문은 passwd 명령을 봅니다.
영어 원문
Passwords
A unique password provides some system security for your files.
Your system associates a password with each account. Security is an important part of computer systems because it keeps unauthorized people from gaining access to the system and from tampering with other users' files. Security can also allow some users exclusive privileges to which commands they can use and which files they can access. For protection, some system administrators permit the users access only to certain commands or files.
Password guidelines
You should have a unique password. Passwords should not be shared. Protect passwords as you would any other company asset. When creating passwords, make sure they are difficult to guess, but not so difficult that you have to write them down to remember them.
Using obscure passwords keeps your user ID secure. Passwords based on personal information, such as your name or birthday, are poor passwords. Even common words can be easily guessed.
Good passwords have at least six characters and include nonalphabetic characters. Strange word combinations and words purposely misspelled are also good choices.
Note: If your password is so hard to remember that you have to write it down, it is not a good password.
Use the following guidelines when selecting a password:
Do not use your user ID as a password. Do not use it reversed, doubled, or otherwise modified.
Do not reuse passwords. The system might be set up to deny the reuse of passwords.
Do not use any person's name as your password.
Do not use words that can be found in the online spelling-check dictionary as your password.
Do not use passwords shorter than six characters.
Do not use obscene words; they are some of the first ones checked when guessing passwords.
Do use passwords that are easy to remember, so you won't have to write them down.
Do use passwords that use both letters and numbers and that have both lowercase and uppercase letters.
Do use two words, separated by a number, as a password.
Do use pronounceable passwords. They are easier to remember.
Do not write passwords down. However, if you must write them down, place them in a physically secure place, such as a locked cabinet.
Changing passwords (passwd command)
To change your password, use the passwd command.
- At the prompt, type the following:
passwd
If you do not already have a password, skip step 2.
- The following prompt displays:
Changing password for UserID
UserID ’s Old password:
This request keeps an unauthorized user from changing your password while you are away from your system. Type your current password, and press Enter.
- The following prompt is displayed:
UserID ’s New password:
Type the new password you want, and press Enter.
- The following prompt is displayed, asking you to re-type your new password.
Enter the new password again:
This request protects you from setting your password to a mistyped string that you cannot re-create.
See the passwd command in the Commands Reference, Volume 4 for the complete syntax.
Password nullification (passwd command)
If you do not want to type a password each time you log in, set your password to null (blank).
To set your password to null, type the following:
passwd
When you are prompted for the new password, press Enter or Ctrl-D.
The passwd command does not prompt again for a password entry. A message verifying the null password displays.
See the passwd command for more information and the complete syntax.
로그인 이름, 시스템 ID, 암호 명령 요약
로그인 이름, 시스템 ID, 암호를 다루는 명령이 있습니다.
로그인과 로그아웃 명령
| 명령 | 설명 |
|---|---|
| login | 세션을 시작합니다. |
| logout | 모든 프로세스를 멈춥니다. |
| shutdown | 시스템 동작을 끝냅니다. |
| su | 세션에 연결된 사용자 ID를 바꿉니다. |
| touch | 파일의 접근·수정 시각을 갱신하거나 빈 파일을 만듭니다. |
사용자와 시스템 식별 명령
| 명령 | 설명 |
|---|---|
| id | 지정한 사용자의 시스템 ID를 표시합니다. |
| logname | 로그인 이름을 표시합니다. |
| uname | 현재 운영 체제 이름을 표시합니다. |
| who | 지금 로그인한 사용자를 식별합니다. |
| whoami | 로그인 이름을 표시합니다. |
암호 명령
| 명령 | 설명 |
|---|---|
| passwd | 사용자 암호를 바꿉니다. |
영어 원문
Command summary for login names, system IDs, and passwords
Commands are available for working with login names, system IDs, and passwords.
Login and logout commands
- login — Initiates your session
- logout — Stops all your processes
- shutdown — Ends system operation
- su — Changes the user ID associated with a session
- touch — Updates the access and modification times of a file, or creates an empty file
User and system identification commands
- id — Displays the system identifications of a specified user
- logname — Displays login name.
- uname — Displays the name of the current operating system
- who — Identifies the users currently logged in
- whoami — Displays your login name
Password command
- passwd — Changes a user's password