3947840b05
Interpretation of a chunk in cut.1 was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
202 lines
5.5 KiB
Groff
202 lines
5.5 KiB
Groff
.\" Copyright (c) 1983, 1990, 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.
|
|
.\"
|
|
.\" @(#)rsh.1 8.1 (Berkeley) 6/6/93
|
|
.\" %FreeBSD: src/usr.bin/rsh/rsh.1,v 1.19 2004/07/03 00:24:43 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd June 6, 1993
|
|
.Dt RSH 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm rsh
|
|
.Nd ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Ç¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë
|
|
.Sh ½ñ¼°
|
|
.Nm
|
|
.Op Fl 46Kdnx
|
|
.Op Fl t Ar timeout
|
|
.Op Fl k Ar realm
|
|
.Op Fl l Ar username
|
|
.Ar host
|
|
.Op command
|
|
.Sh ²òÀâ
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢
|
|
.Ar host
|
|
¤Ç»ØÄꤷ¤¿¥Û¥¹¥È¾å¤Ç¡¢
|
|
.Ar command
|
|
¤Ç»ØÄꤷ¤¿¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹¡£
|
|
.Pp
|
|
.Nm
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢É¸½àÆþÎϤò¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤ËÂФ·¤Æ¥³¥Ô¡¼¤·¤Þ¤¹¡£
|
|
¤Þ¤¿¡¢¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤Îɸ½à½ÐÎϤò¡¢
|
|
.Nm
|
|
¤Îɸ½à½ÐÎϤˡ¢¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤Îɸ½à¥¨¥é¡¼½ÐÎϤò¡¢
|
|
.Nm
|
|
¤Îɸ½à¥¨¥é¡¼½ÐÎϤ˥³¥Ô¡¼¤·¤Þ¤¹¡£
|
|
SIGINT, SIGQUIT, SIGTERM ¤Î³Æ¥·¥°¥Ê¥ë¤Ë´Ø¤·¤Æ¤Ï¡¢
|
|
¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤ËÂФ·¤ÆÄÌÃΤµ¤ì¤Þ¤¹¡£
|
|
.Nm
|
|
¤Ï¡¢¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤¬Àµ¾ï½ªÎ»¤·¤¿¾ì¹ç¤Ë¤ÏÀµ¾ï½ªÎ»¤·¤Þ¤¹¡£ËÜ¥³¥Þ¥ó¥É¤Ï¡¢
|
|
°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬»ÈÍѲÄǽ¤Ç¤¹¡£
|
|
.Bl -tag -width flag
|
|
.It Fl 4
|
|
IPv4 ¥¢¥É¥ì¥¹¤Î¤ß¤ò»ÈÍѤ·¤Þ¤¹¡£
|
|
.It Fl 6
|
|
IPv6 ¥¢¥É¥ì¥¹¤Î¤ß¤ò»ÈÍѤ·¤Þ¤¹¡£
|
|
.It Fl K
|
|
Kerberos ¤Ë¤è¤ëÁ´¤Æ¤Î¥æ¡¼¥¶Ç§¾Ú¤ò¹Ô¤¤¤Þ¤»¤ó¡£
|
|
.It Fl d
|
|
.Nm
|
|
¤Ï
|
|
.Xr setsockopt 2
|
|
¤òÍѤ¤¤Æ¡¢¥ê¥â¡¼¥È¥Û¥¹¥È¤È¤ÎÄÌ¿®¤ËÍѤ¤¤é¤ì¤ë
|
|
.Tn TCP
|
|
¥½¥±¥Ã¥È¤Î¥Ç¥Ð¥Ã¥°¤ò͸ú¤Ë¤·¤Þ¤¹¡£
|
|
.It Fl k Ar realm
|
|
.Nm
|
|
¤Ï¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÂФ·¤Æ
|
|
.Xr krb_realmofhost 3
|
|
¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë¥ê¥â¡¼¥È¥Û¥¹¥È¤Î realm ¤ÎÂå¤ï¤ê¤Ë¡¢»ØÄꤷ¤¿
|
|
.Ar realm
|
|
¤ò»ÈÍѤ·¤Æ¡¢¥ê¥â¡¼¥È¥Û¥¹¥È¤ËÂФ·¤Æ¤Î¥¢¥¯¥»¥¹µö²Ä¤òÆÀ¤Þ¤¹¡£
|
|
.It Fl l Ar username
|
|
¥ê¥â¡¼¥È¤Î
|
|
.Ar username
|
|
¤ò»ØÄê²Äǽ¤Ç¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥í¡¼¥«¥ë¥æ¡¼¥¶Ì¾¤È¥ê¥â¡¼¥È¥Û¥¹¥È¾å¤Î¥æ¡¼¥¶Ì¾¤ÏƱ¤¸¤Ç¤¹¡£
|
|
¥æ¡¼¥¶Ç§¾Ú¤Ë¤Ï
|
|
.Xr rlogin 1
|
|
¤ÈƱÍͤλÅÁȤߤˤè¤ê Kerberos ¤Ë¤è¤ë¥æ¡¼¥¶Ç§¾Úµ¡¹½¤¬»È¤ï¤ì¤Þ¤¹¡£
|
|
.It Fl n
|
|
.Nm
|
|
¤ÎÆþÎϤò¡¢Æüì¥Ç¥Ð¥¤¥¹
|
|
.Pa /dev/null
|
|
¤Ë¤·¤Þ¤¹(
|
|
.Sx ¥Ð¥°
|
|
¤Î¹à¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤)¡£
|
|
.It Fl x
|
|
¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¸ò´¹¤Ë
|
|
.Tn DES
|
|
¤Ë¤è¤ë°Å¹æ²½¤ò͸ú¤Ë¤·¤Þ¤¹¡£¤³¤ì¤òÍѤ¤¤ë¤È
|
|
¥ì¥¹¥Ý¥ó¥¹¤¬Ãø¤·¤¯°¤¯¤Ê¤ë¤«¤âÃΤì¤Þ¤»¤ó¡£
|
|
.It Fl t Ar timeout
|
|
.Fl t
|
|
¥ª¥×¥·¥ç¥ó¤Ï¡¢(ÉäÇɽ¸½¤µ¤ì¤ë)
|
|
.Ar timeout
|
|
¤ò»ØÄꤷ¤Þ¤¹¡£¤³¤Î»þ´Ö¤Î´Ö¡¢
|
|
¥Ç¡¼¥¿¤¬Á÷¤é¤ì¤â¼õ¤±¼è¤ê¤â¤µ¤ì¤Ê¤¤¾ì¹ç¡¢
|
|
.Nm
|
|
¤Ï½ªÎ»¤·¤Þ¤¹¡£
|
|
.El
|
|
.Pp
|
|
.Ar command
|
|
¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥æ¡¼¥¶¤Ï
|
|
.Xr rlogin 1
|
|
¤òÍѤ¤¤Æ¥ê¥â¡¼¥È¥Û¥¹¥È¤Ë¥í¥°¥¤¥ó¤·¤Þ¤¹¡£
|
|
.Pp
|
|
¥¯¥©¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¥·¥§¥ë¤Î¥á¥¿¥¥ã¥é¥¯¥¿¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥í¡¼¥«¥ë¥Þ¥·¥ó¾å
|
|
¤Ç²ò¼á¤µ¤ì¡¢¥¯¥©¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥á¥¿¥¥ã¥é¥¯¥¿¤Ï¥ê¥â¡¼¥È¥Û¥¹¥È¾å¤Ç²ò¼á
|
|
¤µ¤ì¤Þ¤¹¡£Î㤨¤Ð¡¢
|
|
.Pp
|
|
.Dl rsh otherhost cat remotefile >> localfile
|
|
.Pp
|
|
¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë
|
|
.Ar remotefile
|
|
¤ò¡¢¥í¡¼¥«¥ë¥Þ¥·¥ó¾å¤Î¥Õ¥¡¥¤¥ë
|
|
.Ar localfile
|
|
¤ËÄɲä·¤Þ¤¹¡£°ìÊý
|
|
.Pp
|
|
.Dl rsh otherhost cat remotefile \&">>\&" other_remotefile
|
|
.Pp
|
|
¤Ë¤Ä¤¤¤Æ¤Ï¡¢¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î
|
|
.Ar remotefile
|
|
¤ò
|
|
.Ar other_remotefile
|
|
¤ËÄɲä·¤Þ¤¹¡£
|
|
.\" .Pp
|
|
.\" Many sites specify a large number of host names as commands in the
|
|
.\" directory /usr/hosts.
|
|
.\" If this directory is included in your search path, you can use the
|
|
.\" shorthand ``host command'' for the longer form ``rsh host command''.
|
|
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
|
.Bl -tag -width /etc/hosts -compact
|
|
.It Pa /etc/hosts
|
|
.It Pa /etc/auth.conf
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr rlogin 1 ,
|
|
.Xr setsockopt 2 ,
|
|
.Xr kerberos 3 ,
|
|
.Xr krb_realmofhost 3 ,
|
|
.Xr krb_sendauth 3 ,
|
|
.Xr rcmd 3 ,
|
|
.Xr ruserok 3 ,
|
|
.Xr auth.conf 5 ,
|
|
.Xr hosts 5 ,
|
|
.Xr hosts.equiv 5 ,
|
|
.Xr rlogind 8 ,
|
|
.Xr rshd 8
|
|
.Sh Îò»Ë
|
|
.Nm
|
|
¥³¥Þ¥ó¥É¤Ï
|
|
.Bx 4.2
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
.Xr csh 1
|
|
¤òÍѤ¤¤Æ
|
|
.Nm
|
|
¤òɸ½àÆþÎϤ«¤é¤Î¥ê¥À¥¤¥ì¥¯¥È¤Ê¤·¤Ë¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ç¼Â¹Ô¤¹¤ë¾ì¹ç¡¢
|
|
¤¿¤È¤¨¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤ÎÆþÎϤ¬¤Ê¤¯¤Æ¤â(ɬ¤º)¥Ö¥í¥Ã¥¯¤µ¤ì¤ë¤Ç¤·¤ç¤¦¡£
|
|
¥ê¥À¥¤¥ì¥¯¥È¤Ç
|
|
.Nm
|
|
¤ËÆþÎϤòÅϤ¹É¬Íפ¬¤Ê¤±¤ì¤Ð¡¢
|
|
.Fl n
|
|
¥ª¥×¥·¥ç¥ó¤òÍѤ¤¤Æ¥ê¥â¡¼¥È¥³¥Þ¥ó¥É¤ÎÆþÎϸµ¤ò
|
|
.Pa /dev/null
|
|
¤ËÀÚ¤êÂؤ¨¤Æ¤¯¤À¤µ¤¤¡£
|
|
.Pp
|
|
.Nm
|
|
¤òÍѤ¤¤Æ¡¢
|
|
.Xr rogue 6
|
|
¤ä
|
|
.Xr vi 1
|
|
¤Î¤è¤¦¤Ê²ñÏÃŪ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ï¤Ç¤¤Þ¤»¤ó¡£
|
|
Âå¤ï¤ê¤Ë
|
|
.Xr rlogin 1
|
|
¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
|
|
.Pp
|
|
SIGSTOP ¤Ï¡¢¥í¡¼¥«¥ë¥Þ¥·¥ó¤Î
|
|
.Nm
|
|
¥×¥í¥»¥¹¤òÄä»ß¤µ¤»¤ë¤À¤±¤Ç¤¹¡£¤³¤ì¤Ï¤ª¤½¤é¤¯Îɤ¯¤Ê¤¤Æ°ºî¤Ç¤¹.
|
|
¤·¤«¤·¡¢¤³¤ì¤òľ¤¹¤³¤È¤Ï¡¢¸½»þÅÀ¤Ç¤Ïº¤Æñ¤Ç¤¹¡£¤³¤³¤Ç¤½¤ÎÍýͳ¤òÀâÌÀ¤¹
|
|
¤ë¤Ë¤Ï¤¢¤Þ¤ê¤ËÊ£»¨¤Ê¤Î¤Ç¡¢Íýͳ¤Ë¤Ä¤¤¤Æ¤Ï³ä°¦¤·¤Þ¤¹¡£
|