~ubuntu-branches/ubuntu/karmic/x11-xserver-utils/karmic

« back to all changes in this revision

Viewing changes to xhost/xhost.man

  • Committer: Bazaar Package Importer
  • Author(s): Brice Goglin, Julien Cristau, Brice Goglin
  • Date: 2007-08-17 09:58:34 UTC
  • Revision ID: james.westby@ubuntu.com-20070817095834-ywge2nyzj1s3rqnd
Tags: 7.3+1
[ Julien Cristau ]
* iceauth 1.0.2.
  + removes blank line in the manpage (closes: #25285).
* xmodmap 1.0.3.
  + manpage updated to state that -pm is the default (closes: #236198)
* xgamma 1.0.2.
  + the manpage now explains how to print the gamma value more clearly
    (closes: #296021).
* xsetroot 1.0.2.
* xrdb 1.0.4.
  + fixes manpage typo (closes: #276286).
* Add upstream URL to debian/copyright, and update it from xgamma's COPYING
  file.

[ Brice Goglin ]
* Add menu entries for xrefresh and xvidtune.
* sessreg 1.0.3.
* xset 1.0.3.
* Add myself to Uploaders, and remove Branden with his permission.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" $Xorg: xhost.man,v 1.4 2001/02/09 02:05:46 xorgcvs Exp $
 
2
.\" $XdotOrg$
 
3
.\"
 
4
.\" Copyright 1988, 1998  The Open Group
 
5
.\" Copyright 2004 Sun Microsystems, Inc.
 
6
.\" 
 
7
.\" Permission is hereby granted, free of charge, to any person obtaining a
 
8
.\" copy of this software and associated documentation files (the
 
9
.\" "Software"), to deal in the Software without restriction, including
 
10
.\" without limitation the rights to use, copy, modify, merge, publish,
 
11
.\" distribute, and/or sell copies of the Software, and to permit persons
 
12
.\" to whom the Software is furnished to do so, provided that the above
 
13
.\" copyright notice(s) and this permission notice appear in all copies of
 
14
.\" the Software and that both the above copyright notice(s) and this
 
15
.\" permission notice appear in supporting documentation.
 
16
.\" 
 
17
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
18
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
19
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
 
20
.\" OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 
21
.\" HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
 
22
.\" INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
 
23
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 
24
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 
25
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
26
.\" 
 
27
.\" Except as contained in this notice, the name of a copyright holder
 
28
.\" shall not be used in advertising or otherwise to promote the sale, use
 
29
.\" or other dealings in this Software without prior written authorization
 
30
.\" of the copyright holder.
 
31
.\" 
 
32
.\" X Window System is a trademark of The Open Group.
 
33
.\"
 
34
.\" $XFree86: xc/programs/xhost/xhost.man,v 1.8tsi Exp $
 
35
.\"
 
36
.TH XHOST 1 __xorgversion__
 
37
.SH NAME
 
38
xhost \- server access control program for X
 
39
.SH SYNOPSIS
 
40
.B xhost
 
41
[[+\-]name ...]
 
42
.SH DESCRIPTION
 
43
The \fIxhost\fP program 
 
44
is used to add and delete host names or user names to the list allowed
 
45
to make connections to the X server.  In the case of hosts, this provides
 
46
a rudimentary form of privacy control and security.  It is only sufficient
 
47
for a workstation (single user) environment, although it does limit the
 
48
worst abuses.  Environments which require more sophisticated measures should
 
49
implement the user-based mechanism or use the hooks in the
 
50
protocol for passing other authentication data to the server.
 
51
.SH OPTIONS
 
52
\fIXhost\fP accepts the following command line options described below.  For
 
53
security, the options that affect access control may only be run from the
 
54
"controlling host".  For workstations, this is the same machine as the
 
55
server.  For X terminals, it is the login host.
 
56
.TP 8
 
57
.B \-help
 
58
Prints a usage message.
 
59
.TP 8
 
60
.BI "[+]" "name"
 
61
The given \fIname\fP (the plus sign is optional)
 
62
is added to the list allowed to connect to the X server.
 
63
The name can be a host name or a user name.
 
64
.TP 8
 
65
.BI \- "name"
 
66
The given \fIname\fP is removed from the list of allowed
 
67
to connect to the server.  The name can be a host name or a user name.
 
68
Existing connections are not broken, but new
 
69
connection attempts will be denied.
 
70
Note that the current machine is allowed to be removed; however, further
 
71
connections (including attempts to add it back) will not be permitted.
 
72
Resetting the server (thereby breaking all connections) 
 
73
is the only way to allow local connections again.
 
74
.TP 8
 
75
.B \+
 
76
Access is granted to everyone, even if they aren't on the list
 
77
(i.e., access control is turned off).
 
78
.TP 8
 
79
.B \-
 
80
Access is restricted to only those on the list
 
81
(i.e., access control is turned on).
 
82
.TP 8
 
83
.I nothing
 
84
If no command line arguments are given,
 
85
a message indicating whether or not access control is currently enabled
 
86
is printed, followed by the list of those allowed to connect.
 
87
This is the only option that may be used from machines other than
 
88
the controlling host.
 
89
.SH NAMES
 
90
A complete name has the syntax
 
91
``family:name'' where the families are
 
92
as follows:
 
93
.PP
 
94
.nf
 
95
.ta 1i
 
96
inet    Internet host (IPv4)
 
97
inet6   Internet host (IPv6)
 
98
dnet    DECnet host
 
99
nis     Secure RPC network name
 
100
krb     Kerberos V5 principal
 
101
local   contains only one name, the empty string
 
102
si      Server Interpreted
 
103
.fi
 
104
.PP
 
105
The family is case insensitive.
 
106
The format of the name varies with the family.
 
107
.PP
 
108
When Secure RPC is being used, the
 
109
network independent netname (e.g., "nis:unix.\fIuid\fP@\fIdomainname\fP") can
 
110
be specified, or a local user can be specified with just the username
 
111
and a trailing at-sign (e.g., "nis:pat@").
 
112
.PP
 
113
For backward compatibility with pre-R6 \fIxhost\fP,
 
114
names that contain an at-sign (@) are assumed to be in the nis family.
 
115
Otherwise they are assumed to be Internet addresses. If compiled to support
 
116
IPv6, then all IPv4 and IPv6 addresses returned by getaddrinfo(3) are added to
 
117
the access list in the appropriate inet or inet6 family.
 
118
.PP
 
119
Server interpreted addresses consist of a case-sensitive type tag and a
 
120
string representing a given value, separated by a colon.  For example,
 
121
"si:hostname:almas" is a server interpreted address of type \fIhostname\fP,
 
122
with a value of \fIalmas\fP.   For more information on the available forms
 
123
of server interpreted addresses, see the \fIXsecurity\fP(__miscmansuffix__)
 
124
manual page.
 
125
.SH DIAGNOSTICS
 
126
For each name added to the access control list,
 
127
a line of the form "\fIname\fP being added to access control list"
 
128
is printed.
 
129
For each name removed from the access control list,
 
130
a line of the form "\fIname\fP being removed from access control list"
 
131
is printed.
 
132
.SH FILES
 
133
/etc/X*.hosts
 
134
.SH "SEE ALSO"
 
135
X(__miscmansuffix__), Xsecurity(__miscmansuffix__), Xserver(1), xdm(1), xauth(1), getaddrinfo(3)
 
136
.SH ENVIRONMENT
 
137
.TP 8
 
138
.B DISPLAY
 
139
to get the default host and display to use.
 
140
.SH BUGS
 
141
.PP
 
142
You can't specify a display on the command line because
 
143
.B \-display 
 
144
is a valid command line argument (indicating that you want
 
145
to remove the machine named 
 
146
.I ``display''
 
147
from the access list).
 
148
.PP
 
149
The X server stores network addresses, not host names, unless you use
 
150
the server-interpreted hostname type address.  If somehow you change a
 
151
host's network address while the server is still running, and you are
 
152
using a network-address based form of authentication, \fIxhost\fP must
 
153
be used to add the new address and/or remove the old address.
 
154
.SH AUTHORS
 
155
Bob Scheifler, MIT Laboratory for Computer Science,
 
156
.br
 
157
Jim Gettys, MIT Project Athena (DEC).