The question is based on the thread.

How can you allow only one user to access the display by xhost?

sudo xhost masi is not working in my fresh Ubuntu 9.10.

link|improve this question

what is the output? – John T Dec 20 '09 at 21:44
feedback

2 Answers

up vote 3 down vote accepted

Basically the same as John T, but you could add inet or local to the command

xhost +inet:masi@
xhost +local:masi@
link|improve this answer
1  
+1 -- Adding the @ sign fixed it for me: xhost +masi@. Not sure why this tidbit isn't in the man page... – redmoskito Nov 21 '10 at 20:04
feedback

First, restrict X server access to those who aren't on the list:

sudo xhost -

then add yourself to the allow list:

sudo xhost +masi
link|improve this answer
It gives me xhost: bad hostname "masi" although my admin user is masi. – Masi Dec 21 '09 at 13:22
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.