Another reason to prefer a real root over sudo

Smoot Carl-Mitchell smoot at tic.com
Mon Feb 2 20:51:57 UTC 2009


On Mon, 2009-02-02 at 17:28 +0000, Chris G wrote:

> Thanks, it does too, very useful.  I actually needed to do the
> following:- 
> 
>     xhost +
>     su - <sudo privileged user>
>     export DISPLAY=:0
>     sudo synaptic
> 
> 
> That's actually a useful sequence for other sudo/root requiring
> applications in certain circumstances.

If you want to be a bit more secure, replace the 'xhost +' with 'xhost
local:'.

That allows non-networked local connections.
-- 
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list