doc/documentation/manual-pages/ja/man5/ttys.5
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

178 lines
6.3 KiB
Groff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" WORD: line ²óÀþ
.\"
.\" from: @(#)ttys.5 8.1 (Berkeley) 6/4/93
.\" %FreeBSD: src/libexec/getty/ttys.5,v 1.14 2001/08/07 15:48:32 ru Exp %
.\" $FreeBSD$
.\" "
.Dd November 17, 1996
.Dt TTYS 5
.Os
.Sh ̾¾Î
.Nm ttys
.Nd üËö½é´üÀßÄê¾ðÊó
.Sh ²òÀâ
¥Õ¥¡¥¤¥ë
.Nm
¤ÏüËöÆüì¥Õ¥¡¥¤¥ë¤ò½é´ü²½¤·¤¿¤êÀ©¸æ¤¹¤ë¤¢¤é¤æ¤ë¥ë¡¼¥Á¥ó¤¬»ÈÍѤ¹¤ë
¾ðÊó¤ò´Þ¤ó¤Ç¤¤¤Þ¤¹¡£
¤³¤Î¾ðÊó¤Ï
.Xr getttyent 3
¥é¥¤¥Ö¥é¥ê¥ë¡¼¥Á¥ó¤ÇÆɤޤì¤Þ¤¹¡£
.Nm
¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë¤Ï 1 ¤Ä¤Î¥¹¥Ú¥·¥ã¥ë¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë¤Ë¤Ä¤­ 1 ¹Ô¤Îµ­½Ò¤¬
¤¢¤ê¤Þ¤¹¡£
¥Õ¥£¡¼¥ë¥É¤Ï¥¿¥Ö¤ä¥¹¥Ú¡¼¥¹¤Ë¤è¤ê¶èÀÚ¤é¤ì¤Þ¤¹¡£
1 ¸ì°Ê¾å¤«¤é¤Ê¤ë¥Õ¥£¡¼¥ë¥É¤Ï¥À¥Ö¥ë¥¯¥©¡¼¥È (``"'') ¤Ç³ç¤é¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð
¤Ê¤ê¤Þ¤»¤ó¡£
¶õ¹Ô¤ä¥³¥á¥ó¥È¤Ï¥Õ¥¡¥¤¥ëÃæ¤Î¤É¤³¤Ë¸½¤ì¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
¥³¥á¥ó¥È¤Ï¥Ï¥Ã¥·¥åµ­¹æ (``#'') ¤ª¤è¤Ó²þ¹Ô¤Ë¤è¤Ã¤Æ¶èÀÚ¤é¤ì¤Þ¤¹¡£
»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¥Õ¥£¡¼¥ë¥É¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¥Ê¥ë¤Ç¤¹¡£
.Pp
ºÇ½é¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢Ä̾ï¤ÏüËöÆüì¥Õ¥¡¥¤¥ë¤Î̾Á°¤Ç¤¢¤ê¡¢
.Pa /dev
¤Ë¤¢¤ë¤è¤¦¤Ê¤â¤Î¤Ç¤¹¡£
¤·¤«¤·¤Ê¤¬¤é¡¢´ØÏ¢ÉÕ¤±¤é¤ì¤¿¥³¥Þ¥ó¥É¤¬ tty ¤Ë̵´Ø·¸¤Ç¤¢¤ë¾ì¹ç¡¢
Ǥ°Õ¤Îʸ»úÎó¤Ë¤Ç¤­¤Þ¤¹¡£
.Pp
2 ÈÖÌܤΥե£¡¼¥ë¥É¤Ï¤½¤Î²óÀþ¤ËÂФ·¤Æ¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¤Ç¡¢
Ä̾ï
.Xr getty 8
¤Ç¤¹¡£¤³¤ì¤Ï²óÀþ¤ò½é´ü²½¤·¤Æ³«¤¯¥×¥í¥°¥é¥à¤Ç¡¢¥¹¥Ô¡¼¥É¤òÀßÄꤷ¤¿¤ê¡¢
¥æ¡¼¥¶Ì¾¤òÂԤ俤ê
.Xr login 1
¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤·¤Þ¤¹¡£
¤·¤«¤·¤Ê¤¬¤é¡¢¤½¤ì¤Ï¤É¤ó¤Ê´õ˾¤¹¤ë¥³¥Þ¥ó¥É¡¢Î㤨¤Ð¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à
¤ÎüËö¥¨¥ß¥å¥ì¡¼¥¿¤ä¥Ç¡¼¥â¥ó¥×¥í¥»¥¹¤Îµ¯Æ°¥³¥Þ¥ó¥É¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£
¤½¤·¤Æ¡¢¤â¤·¥¯¥©¡¼¥È¤Ç³ç¤é¤ì¤Æ¤¤¤ë¤Î¤Ê¤éÊ£¿ô¸ì¤ò´Þ¤à»ö¤â¤Ç¤­¤Þ¤¹¡£
.Pp
3 ÈÖÌܤΥե£¡¼¥ë¥É¤ÏÄ̾綠¤Î tty ²óÀþ¤ËÀܳ¤µ¤ì¤ëüËö¤Î¥¿¥¤¥×¤Ç¡¢ÉáÄÌ
.Xr termcap 5
¥Ç¡¼¥¿¥Ù¡¼¥¹¥Õ¥¡¥¤¥ëÃæ¤Ë¼ý¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡£
´Ä¶­ÊÑ¿ô
.Ev TERM
¤Ï
.Xr getty 8
¤Þ¤¿¤Ï
.Xr login 1
¤Ë¤è¤ëÃͤ˽é´ü²½¤µ¤ì¤Þ¤¹¡£
.Pp
»Ä¤ê¤Î¥Õ¥£¡¼¥ë¥É¤Ï
.Fa ty_status
¥¨¥ó¥È¥ê
.Xr (getttyent 3
»²¾È) Ãæ¤Î¥Õ¥é¥°¤ò»ØÄꤷ¤¿¤ê¡¢¤½¤ÎüËö²óÀþ¤ËÂФ·¤Æ
.Xr init 8
¤¬°Ý»ý¤¹¤ë¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¤Î¥×¥í¥»¥¹¤ò»ØÄꤷ¤¿¤ê¡¢
¥ª¥×¥·¥ç¥ó¤Ç tty ¤Î¥¿¥¤¥×
(¥À¥¤¥ä¥ë¥¤¥ó¤«¡¢¥Í¥Ã¥È¥ï¡¼¥¯¤«¡¢¤Þ¤¿¤Ï¤½¤ì°Ê³°¤«) ¤ò·èÄꤷ¤¿¤ê¡¢
¤Þ¤¿¥í¥°¥¤¥ó¥¯¥é¥¹¤Î¥Ç¡¼¥¿¥Ù¡¼¥¹
.Xr (login.conf 5
»²¾È) ¤¬Â¿¤¯¤Î tty ¤ò¥°¥ë¡¼¥×¤È¤·¤Æ»²¾È¤Ç¤­¤ë¤è¤¦¤Ê
tty ¥°¥ë¡¼¥×̾¤ò»ØÄꤷ¤Þ¤¹¡£
¤³¤ì¤Ï¥°¥ë¡¼¥×¤È¤·¤Æ tty ¤ËÂФ·¤ÆÁªÂòŪ¤Ë¥¢¥¯¥»¥¹¤òµö²Ä¤Þ¤¿¤Ï
µñÈݤ·¤¿¤ê¥¢¥«¥¦¥ó¥Æ¥£¥ó¥°µ¡Ç½¤ò²Äǽ¤Þ¤¿¤ÏÉÔ²Äǽ¤Ë¤¹¤ë¤¿¤á¤Ç¤¹¡£
.Pp
¥Õ¥é¥°¤ÎÃͤȤ·¤Æ¤Ï¡¢Ê¸»úÎó ``on'' ¤È ``off'' ¤Ï
.Xr init 8
¤¬ 2 ÈÖÌܤΥե£¡¼¥ë¥É¤ÇÍ¿¤¨¤é¤ì¤ë¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤«(¤·¤Ê¤¤¤«)¤ò
»ØÄꤷ¤Þ¤¹¡£°ìÊý ``secure'' ¤Ï ( ``on'' ¤âÍ¿¤¨¤é¤ì¤Æ¤¤¤ì¤Ð) uid ¤¬
0 ¤Î¥æ¡¼¥¶¤¬¤³¤Î²óÀþ¤Ë¥í¥°¥¤¥ó¤¹¤ë¤³¤È¤òµö²Ä¤·¤Þ¤¹¡£
¥Õ¥é¥° ``dialin'' ¤Ï tty ¥¨¥ó¥È¥ê¤¬¥À¥¤¥ä¥ë¥¤¥ó²óÀþ¤Ç¤¢¤ë¤³¤È¤ò
¼¨¤·¤Æ¤ª¤ê¡¢ ``network'' ¤Ï tty ¥¨¥ó¥È¥ê¤¬¥Í¥Ã¥È¥ï¡¼¥¯Àܳ¤Ç
¤¢¤ë¤³¤È¤ò¼¨¤·¤Æ¤¤¤Þ¤¹¡£
üËö¥¿¥¤¥×¤Î¥Õ¥£¡¼¥ë¥É¤Ë¤Ï¡¢¤³¤ì¤é¤Îʸ»úÎó¤Î¤É¤Á¤é¤«¤¬»ØÄê¤Ç¤­¤Þ¤¹¡£
ʸ»úÎó ``window='' ¤Î¸å¤Ë¤Ï
.Xr init 8
¤¬ 2 ÈÖÌܤΥե£¡¼¥ë¥É¤Ç»ØÄꤵ¤ì¤ë¥³¥Þ¥ó¥É¤ò³«»Ï¤¹¤ë
.Em Á°
¤Ë¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥ÉÎó¤ò¥¯¥©¡¼¥È¤Ç³ç¤Ã¤Æ³¤±¤Þ¤¹¡£
.Pp
ʸ»úÎó ``group='' ¤Î¸å¤Ë¤Ï¡¢
¿¤¯¤Î tty ²óÀþ¤ò¥¢¥¯¥»¥¹¤Îµö²Ä/µñÈݤ䥢¥«¥¦¥ó¥Æ¥£¥ó¥°µ¡Ç½¤Î
²Äǽ/ÉÔ²Äǽ¤ò·è¤á¤ë¤¿¤á¤Î¥°¥ë¡¼¥×¤È¤·¤Æ»²¾È¤¹¤ë¤¿¤á¤Ë
.Xr login.conf 5
¤Ç»È¤ï¤ì¤ë¡¢Ê¸»ú¡¦¿ô»ú¤Î¥°¥ë¡¼¥×̾¤ò³¤±¤Þ¤¹¡£
²¿¤Î¥°¥ë¡¼¥×¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢tty¤Ï¥°¥ë¡¼¥× "none" ¤Ë°¤¹¤ë¤è¤¦¤Ë
¤Ê¤ê¤Þ¤¹¡£
°ÊÁ°¤È¤Î¸ß´¹À­¤Î¤¿¤á¤Ë¡¢ ``group='' ¤Ï¹Ô¤ÎºÇ¸å¤Ë¡¢Ç¤°Õ¤Î¥³¥á¥ó¥È¤Î¤¹¤°Á°
¤Ë¸½¤ì¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£
.Pp
Âè 2 ¥Õ¥£¡¼¥ë¥É¤È ``window='' ¤Ç»ØÄꤵ¤ì¤ë¥³¥Þ¥ó¥É¤Ï¡¢¸ì¤Ëʬ²ò¤µ¤ì¡¢
.Xr execve 2
¤ò»ÈÍѤ·¤Æ¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
¸ì¤Ï¡¢¥¿¥Ö¤È¥¹¥Ú¡¼¥¹¤ÎǤ°Õ¤ÎÁȤ߹ç¤ï¤»¤Ç¶èÀÚ¤é¤ì¤Þ¤¹¡£
¶õÇò¤ò´Þ¤à°ú¿ô¤Ï¡¢¥·¥ó¥°¥ë¥¯¥©¡¼¥È
.Pq Li '
¤Ç¶èÀÚ¤ë¤Ù¤­¤Ç¤¹¡£
¥·¥§¥ë¼°¤Î¥°¥é¥Ö¤½¤Î¾¤µ¤Þ¤¶¤Þ¤ÊÃÖ´¹¤ÏƯ¤«¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
.Sh »ÈÍÑÎã
.Bd -literal
# 1200 ¥Ü¡¼¤Ç¥³¥ó¥½¡¼¥ë¡¢root ¤Ç¤Î¥í¥°¥¤¥ó²Ä
console "/usr/libexec/getty std.1200" vt100 on secure
# 1200 ¥Ü¡¼¤Ç¥À¥¤¥ä¥ë¥¢¥Ã¥×¡¢root ¤Ç¤Î¥í¥°¥¤¥óÉÔ²Ä
ttyd0 "/usr/libexec/getty d1200" dialup on group=dialup # 555-1234
# Mike ¤ÎüËö: hp2621
ttyh0 "/usr/libexec/getty std.9600" hp2621-nl on group=dialup # 457 Evans
# John ¤ÎüËö: vt100
ttyh1 "/usr/libexec/getty std.9600" vt100 on group=dialup # 459 Evans
# üËö¥¨¥ß¥å¥ì¡¼¥È/¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à
ttyv0 "/usr/new/xterm -L :0" vs100 on window="/usr/new/Xvs100 0"
# ¥Í¥Ã¥È¥ï¡¼¥¯²¾ÁÛ tty -- getty ¤Ï»ÈÍѤ·¤Þ¤»¤ó
ttyp0 none network group=pty
ttyp1 none network off group=pty
.Ed
.\" ¡Ö»ÈÍÑÎã¡×1¹ÔÌÜ `root login on ...'
.\" 3¹ÔÌܤΠ`no root logins' ¤È¤ÎÂÐÈæ¤Ç¤¢¤ë¤«¤é¡¢
.\" 3¹ÔÌܤÎÌõ¤ÈÂÐÈ椵¤»¤Æ¡Öroot ¤Ç¤Î¥í¥°¥¤¥ó²Ä¡×¤ÈÌõ¤·¤¿¡£
.\" (98/06/17 kumano@jp.freebsd.org)
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
.Bl -tag -width /etc/ttys -compact
.It Pa /etc/ttys
.El
.Sh ´ØÏ¢¹àÌÜ
.Xr login 1 ,
.Xr getttyent 3 ,
.Xr ttyslot 3 ,
.Xr gettytab 5 ,
.Xr login.conf 5 ,
.Xr termcap 5 ,
.Xr getty 8 ,
.Xr init 8
.\".Xr init 8 ,
.\".Xr ttyflags 8
.Sh Îò»Ë
.Nm
¥Õ¥¡¥¤¥ë¤Ï
.At v6
¤ÇÅо줷¤Þ¤·¤¿¡£