Exporting X permissions when su'ing to another user...

Adam Conrad adconrad at 0c3.net
Fri Dec 2 15:33:22 GMT 2005


Reinhard Tartler wrote:
> 
> Whats the problem with 'sudo -i -u joe' to get a shell as user joe?
> X11 apps do work this way.

If you don't want your environment to evaporate, you want "sudo -s -u root"

... Adam

(Of course, this isn't much different from "sudo su", while "sudo -i -u
root" is more like "sudo su -")



More information about the ubuntu-devel mailing list