[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] Re: knoppix-installer 3.4 questions

On Wed, Jun 23, 2004 at 11:58:11AM +0200, Helmut Wollmersdorfer wrote:
 >  Achim Unger schrieb:
 >  > ~$ xhost localhost    # will do allow users from localhost 

~$ xhost + localhost

(Note the "+")
But this opens the display to everyone logged on to this machine.

Setting the XAUTHORITY environment variable in the root shell to the
session owner's authority file (normally .Xauthority in the user's home
directory) will allow root to access the display.  E.g for bash:

~$ su
# XAUTHORITY=~user/.Xauthority nedit /etc/something

for a one-time access, or:

~$ su
# export XAUTHORITY=~user/.Xauthority
# nedit /etc/something
# ...

for the lifetime of the root shell.
NB: this works only for root, since ~user/.Xauthority belongs to user and
is not (should not be) accessible to anyone else.

 >  This does not change things.
 >  > "xhost + 
"Hello world!" - This allows access from anyone with network access to this
computer's port 6000.

Have a nice day,

 - Serge Munhoven

debian-knoppix mailing list

Reply to: