manpage says xhost +username should work

Bug #60040 reported by Jörg Höhle
This bug affects 2 people
Affects Status Importance Assigned to Milestone
x11-xserver-utils (Ubuntu)

Bug Description

Binary package hint: xhost


The manpage says:
       [+]name The given name (the plus sign is optional) is added to the list allowed to connect to the X server. The name can be a host name or a user name.

The manpage gives the impression that I can selectively enable other users to participate in my X session. This is much preferable over xhost +localhost or xhost +local:

But trying it out yields:
$ LANG=C xhost +u2
xhost: bad hostname "u2"
u2 is a regular user name on this system. xhost +local: works but is not discriminating enough.

I have TCP disabled for X, i.e. only local sessions are possible. Ubuntu Dapper is installed. I checked manpages from Debian and Suse, e.g. and they all contain the same text.

Under what circumstances would it be possible to use user names with xhost?
Is the manpage text misleading?

 Jörg Höhle

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

You probably want to use serverinterpreted, such as xhost +SI:localuser:u2

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

Should just need a small doc fix.

Changed in xhost:
importance: Untriaged → Wishlist
status: Unconfirmed → Confirmed
Revision history for this message
Jörg Höhle (joerg-cyril-hoehle) wrote : document xhost +si:localuser:u2 example

That's it. Thanks a lot!

BTW, Google finds 0 hits for X_ChangeHosts localuser.

I wish xhost would document the common si: possibilities, or refer to the Xsecurity manpage (found via Google, it's not installed here).

This leads to another bug -- shall I open a separate issue or is that ok here?
could not find a package containing the Xsecurity manpage except for Japaneese:
SourceCentral seems to indicate that Xsecurity is only documented in Japaneese in Ubuntu 6.06

Indeed, the package xmanpages-ja contains that manpage:

Where are the manpages for Xsecurity in English and other languages?
The xhost and Xserver manpages refer to it.

 Jörg Höhle

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

having the same prob with gutsy

Revision history for this message
nqzero (nqzero) wrote :

why is this "wishlist" ??? the manpage is wrong, plain and simple. maybe the ability to specify the user is the behavior that ubuntu ultimately wants to adopt, but in the meantime, the manpage should be fixed. it says one thing, the application does something different ... it's a bug. maybe you don't have the time or desire to fix either the application or the man page, but at the least leave it as a bug (ie not a wishlist) here so that us users know what we're dealing with ...

this has been wrong for 4 years now - i'm using maverick

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.