Another reason to prefer a real root over sudo

Chris Mohler cr33dog at gmail.com
Mon Feb 2 17:17:11 UTC 2009


On Tue, Feb 3, 2009 at 11:08 AM, Chris G <cl at isbd.net> wrote:
> On Mon, Feb 02, 2009 at 10:22:27AM -0500, Bart Silverstrim wrote:
>> Pierre Frenkiel wrote:
>> > On Mon, 2 Feb 2009, Robert Parker wrote:
>> >> You can 'sudo su -'
>> >
>> >    then, X11 doesn't work
>>
>> Can you be more specific? You should be able to launch graphical
>> applications...what's the error?
>>
> I went through this a while ago, it's a right royal pain getting an X
> application for another user running on your desktop.  Doing a sudo to
> run synaptic as a 'foreign' user is much harder work than just logging
> out and logging in as the sudo privileged user.

Does this still work?

su - me
sudo startx -- :1


(I think this will give you a root X session, but I only have one user
on this box so I'm not 100% that it still works)

Chris




More information about the ubuntu-users mailing list