rmitab 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-rmitab
핵심 정리
/etc/inittab에서 식별자로 지정한 레코드를 지웁니다.- 식별자는 1~14자이며, 겹치면 실패합니다.
- 지우기 전에
lsitab 식별자로 내용을 확인하고 기록해 두면mkitab으로 되살릴 수 있습니다. - 지우지 않고 잠시 끄기만 하려면
chitab으로 Action을off로 바꿉니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1 문서에 RBAC 보안 안내가 더해짐. 6.1 문서는 구문·설명 절 제목이 빠져 목적 절에 이어 붙어 있음) |
| 원문 | IBM Commands Reference — 5.3 Volume 4, 6.1 Volume 4 |
| 파일 | /usr/sbin/rmitab, /etc/inittab |
| 관련 명령어 | lsitab, mkitab, chitab, init |
목적
/etc/inittab 파일에서 레코드를 지웁니다.
rmitab 명령은 /etc/inittab 파일에서 레코드를 지웁니다. Identifier 매개변수로 지울 레코드를 지정합니다. Identifier는 객체를 하나로 구분하는 1~14자 필드입니다. Identifier가 하나로 정해지지 않으면 명령은 실패합니다.
영어 원문
Removes records in the /etc/inittab record. You can specify a record to remove by using the Identifier parameter. The Identifier parameter specifies a field of one to fourteen characters used to uniquely identify an object. If the Identifier field is not unique, the command is unsuccessful.
보안
RBAC 사용자와 Trusted AIX 사용자는 주의하세요. 이 명령은 특권 작업을 할 수 있으며, 특권 작업은 특권 사용자만 할 수 있습니다. 특권과 권한 목록은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다(6.1 문서에만 있음).
영어 원문
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
예제
tty2의 tty 항목을 지웁니다.
rmitab "tty002"
자주 쓰는 형태:
lsitab rcapp > /tmp/rcapp.itab # 지우기 전에 남겨 두기
rmitab rcapp
mkitab "$(cat /tmp/rcapp.itab)" # 되살릴 때
영어 원문
To remove the tty entry for tty2 , enter: rmitab "tty002"
Related information:
- smit command
- chitab command
- lsitab command
- init command
/etc/inittab command
리눅스(GNU)와 다른 점
리눅스는 대부분 systemd를 써서 /etc/inittab이 없거나 쓰이지 않습니다. 부팅 때 실행할 것은 systemd 단위(systemctl enable), 다시 살리는 서비스는 단위의 Restart=always, 기본 실행 수준은 systemctl set-default multi-user.target으로 정합니다. SysV init을 쓰는 오래된 배포판에서는 /etc/inittab을 편집기로 직접 고치고 telinit q로 다시 읽게 합니다.