On Thu, May 01, 2014 at 07:29:08PM +0100, Tom Furie wrote:
> On Thu, May 01, 2014 at 05:19:59PM +0000, Артур Истомин wrote:
> > On Thu, May 01, 2014 at 05:46:36PM +0100, Tom Furie wrote:
> 
> > > 'xhost +' allows anyone anywhere access to your X server. If you must use
> > > xhost in this situation it would be much safer to use 'xhost +
> > > si:localuser:root', this would allow only root from the local machine to
> > > connect. Just be sure to run 'xhost - si:localuser:root' as soon as you
> > > are done. You can run xhost without any arguments to see exactly who is
> > > alowed to connect to you.
> > 
> > Exactly :) But I am very lazy. It is very long string for me on my local
> > machine with only one user =)
> 
> Here, have a wrapper script
> 
> --8x--------------------
> 
> #!/bin/sh
> 
> xhost + si:localuser:root
> sudo $@
> xhost - si:localuser:root
> 
> --8x--------------------
> 
> Save it as xdo and it's even less typing than 'xhost + ... xhost -' :)

Well, you beat me :)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140501203316.GC4024@localhost

Reply via email to