1b2923d76SWolfram Schneider.\" Copyright (c) 1983, 1991, 1993 2b2923d76SWolfram Schneider.\" The Regents of the University of California. All rights reserved. 3b2923d76SWolfram Schneider.\" 4b2923d76SWolfram Schneider.\" Redistribution and use in source and binary forms, with or without 5b2923d76SWolfram Schneider.\" modification, are permitted provided that the following conditions 6b2923d76SWolfram Schneider.\" are met: 7b2923d76SWolfram Schneider.\" 1. Redistributions of source code must retain the above copyright 8b2923d76SWolfram Schneider.\" notice, this list of conditions and the following disclaimer. 9b2923d76SWolfram Schneider.\" 2. Redistributions in binary form must reproduce the above copyright 10b2923d76SWolfram Schneider.\" notice, this list of conditions and the following disclaimer in the 11b2923d76SWolfram Schneider.\" documentation and/or other materials provided with the distribution. 12*dda5b397SEitan Adler.\" 3. Neither the name of the University nor the names of its contributors 13b2923d76SWolfram Schneider.\" may be used to endorse or promote products derived from this software 14b2923d76SWolfram Schneider.\" without specific prior written permission. 15b2923d76SWolfram Schneider.\" 16b2923d76SWolfram Schneider.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17b2923d76SWolfram Schneider.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18b2923d76SWolfram Schneider.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19b2923d76SWolfram Schneider.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20b2923d76SWolfram Schneider.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21b2923d76SWolfram Schneider.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22b2923d76SWolfram Schneider.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23b2923d76SWolfram Schneider.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24b2923d76SWolfram Schneider.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25b2923d76SWolfram Schneider.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26b2923d76SWolfram Schneider.\" SUCH DAMAGE. 27b2923d76SWolfram Schneider.\" 2854c22eeaSSergey Kandaurov.Dd December 25, 2013 29b2923d76SWolfram Schneider.Dt HOSTS.EQUIV 5 303d45e180SRuslan Ermilov.Os 31b2923d76SWolfram Schneider.Sh NAME 32b2923d76SWolfram Schneider.Nm hosts.equiv , 33b2923d76SWolfram Schneider.Nm .rhosts 34add6734dSNik Clayton.Nd trusted remote host and user name data base 35b2923d76SWolfram Schneider.Sh DESCRIPTION 36b2923d76SWolfram SchneiderThe 374b66483fSRuslan Ermilov.Nm 38b2923d76SWolfram Schneiderand 39b2923d76SWolfram Schneider.Nm .rhosts 404043c58eSTim Vanderhoekfiles contain information regarding 41b2923d76SWolfram Schneidertrusted hosts and users on the network. 42b2923d76SWolfram SchneiderFor each host a single line should be present 43b2923d76SWolfram Schneiderwith the following information: 443136363fSRuslan Ermilov.Pp 45b2923d76SWolfram Schneidersimple 46b2923d76SWolfram Schneider.Bd -unfilled -offset indent 47b2923d76SWolfram Schneiderhostname [username] 48b2923d76SWolfram Schneider.Ed 493136363fSRuslan Ermilov.Pp 50b2923d76SWolfram Schneideror the more verbose 51b2923d76SWolfram Schneider.Bd -unfilled -offset indent 52b2923d76SWolfram Schneider[+-][hostname|@netgroup] [[+-][username|@netgroup]] 53b2923d76SWolfram Schneider.Ed 54b2923d76SWolfram Schneider.Pp 55dcae824aSAlexey ZelkinA 56dcae824aSAlexey Zelkin.Dq @ 571111b49cSSheldon Hearnindicates a host by netgroup or user by netgroup. 581111b49cSSheldon HearnA single 59dcae824aSAlexey Zelkin.Dq + 605203edcdSRuslan Ermilovmatches all hosts or users. 615203edcdSRuslan ErmilovA host name with a leading 62dcae824aSAlexey Zelkin.Dq - 63dcae824aSAlexey Zelkinwill reject 641111b49cSSheldon Hearnall matching hosts and all their users. 651111b49cSSheldon HearnA user name with leading 66dcae824aSAlexey Zelkin.Dq - 67b2923d76SWolfram Schneiderwill reject all matching users from matching hosts. 68b2923d76SWolfram Schneider.Pp 69b2923d76SWolfram SchneiderItems are separated by any number of blanks and/or 705203edcdSRuslan Ermilovtab characters. 715203edcdSRuslan ErmilovA 72dcae824aSAlexey Zelkin.Dq # 73dcae824aSAlexey Zelkinindicates the beginning of 74b2923d76SWolfram Schneidera comment; characters up to the end of the line are 75b2923d76SWolfram Schneidernot interpreted by routines which search the file. 76b2923d76SWolfram Schneider.Pp 771e5d4339SRemko LodderHost names are specified in the conventional Internet DNS 781e5d4339SRemko Lodderdotted-domains 793136363fSRuslan Ermilov.Dq .\& 80dcae824aSAlexey Zelkin(dot) notation using the 81b2923d76SWolfram Schneider.Xr inet_addr 3 82b2923d76SWolfram Schneiderroutine 83b2923d76SWolfram Schneiderfrom the Internet address manipulation library, 84b2923d76SWolfram Schneider.Xr inet 3 . 85b2923d76SWolfram SchneiderHost names may contain any printable 86b2923d76SWolfram Schneidercharacter other than a field delimiter, newline, 87b2923d76SWolfram Schneideror comment character. 88b2923d76SWolfram Schneider.Pp 894043c58eSTim VanderhoekFor security reasons, a user's 90b2923d76SWolfram Schneider.Nm .rhosts 91b2923d76SWolfram Schneiderfile will be ignored if it is not a regular file, or if it 92b2923d76SWolfram Schneideris not owned by the user, or 93e627b39bSWolfram Schneiderif it is writable by anyone other than the user. 949cbda590SRuslan Ermilov.Sh FILES 959cbda590SRuslan Ermilov.Bl -tag -width /etc/hosts.equivxxx -compact 969cbda590SRuslan Ermilov.It Pa /etc/hosts.equiv 979cbda590SRuslan ErmilovThe 989cbda590SRuslan Ermilov.Nm 999cbda590SRuslan Ermilovfile resides in 1009cbda590SRuslan Ermilov.Pa /etc . 1019cbda590SRuslan Ermilov.It Pa $HOME/.rhosts 1029cbda590SRuslan Ermilov.Nm .rhosts 1039cbda590SRuslan Ermilovfile resides in 1049cbda590SRuslan Ermilov.Pa $HOME . 1059cbda590SRuslan Ermilov.El 106b2923d76SWolfram Schneider.Sh EXAMPLES 107b2923d76SWolfram Schneider.Dl bar.com foo 108b2923d76SWolfram Schneider.Pp 109dcae824aSAlexey ZelkinTrust user 110dcae824aSAlexey Zelkin.Dq foo 111dcae824aSAlexey Zelkinfrom host 112dcae824aSAlexey Zelkin.Dq bar.com . 113b2923d76SWolfram Schneider.Pp 114b2923d76SWolfram Schneider.Dl +@allclient 115b2923d76SWolfram Schneider.Pp 116dcae824aSAlexey ZelkinTrust all hosts from netgroup 117dcae824aSAlexey Zelkin.Dq allclient . 118b2923d76SWolfram Schneider.Pp 119b2923d76SWolfram Schneider.Dl +@allclient -@dau 120b2923d76SWolfram Schneider.Pp 121dcae824aSAlexey ZelkinTrust all hosts from netgroup 122dcae824aSAlexey Zelkin.Dq allclient 123dcae824aSAlexey Zelkinand their users 124dcae824aSAlexey Zelkinexcept users from netgroup 125dcae824aSAlexey Zelkin.Dq dau . 126b2923d76SWolfram Schneider.Sh SEE ALSO 127b2923d76SWolfram Schneider.Xr rcp 1 , 128b2923d76SWolfram Schneider.Xr gethostbyname 3 , 129c69a537cSWolfram Schneider.Xr inet 3 , 130b2923d76SWolfram Schneider.Xr innetgr 3 , 131b2923d76SWolfram Schneider.Xr ruserok 3 , 13202c65325SJoel Dahl.Xr netgroup 5 , 133b2923d76SWolfram Schneider.Xr ifconfig 8 , 134491a8429SRuslan Ermilov.Xr yp 8 135b2923d76SWolfram Schneider.Sh BUGS 136a1601503SHiten PandyaThis manual page is incomplete. 1371111b49cSSheldon HearnFor more information read 138dcae824aSAlexey Zelkinthe source in 139dcae824aSAlexey Zelkin.Pa src/lib/libc/net/rcmd.c 140a1601503SHiten Pandyaor the SunOS manual page. 141