Another reason to prefer a real root over sudo

Chris G cl at isbd.net
Mon Feb 2 17:58:08 UTC 2009


On Tue, Feb 03, 2009 at 11:37:55AM +1800, Chris Mohler wrote:
> On Tue, Feb 3, 2009 at 11:21 AM, Chris G <cl at isbd.net> wrote:
> > On Tue, Feb 03, 2009 at 11:17:11AM +1800, Chris Mohler wrote:
> >> 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)
> >>
> > But doesn't that zap the current X session?
> 
> No - it adds another X session (on VT8 if the current session is on
> VT7).  You can ctrl-alt-f# and switch between the two...
> 
Ah, clever, thanks.

-- 
Chris Green




More information about the ubuntu-users mailing list