[Novalug] "Root" / sudo in Ubuntu (was launch perl script from ubuntu desktop)

donjr djr1952 at hotpop.com
Wed Jun 27 15:10:44 EDT 2007


On Wed, 2007-06-27 at 14:24 -0400, Roger W. Broseus wrote:
> Thanks, Don, for the tips . . .. I only do what I said when I'm editing 
> files like menu.lst, etc. More . . .
> 
> donjr wrote:
> > On Tue, 2007-06-26 at 13:00 -0400, rogerb at bronord.com wrote:
> >   
> >> A neat trick learnt from Peter (what's-his-name):
> >> sudo bash
> >>     
> >
> > Why not instead:
> >   sudo -i
> >   
> >> after entering a password, one is running a bash shell in-a-shell. Here, I do
> >> things like
> >>   >nautilus
> >>     
> > OH you want to run X windows applications with user 'root' level access.
> >
> > Boy do you like to take chances with your system. <GRIN>
> > 'nautilus' would be running with user ROOT level system access and
> > your regular user environment setting. Not a safe combo if a CRASH
> > happens.  
> >   {Something like running Micros??t XP with ADMIN access enabled by
> > default.}
> >
> > Of course another way to open a 'nautilus' window with 'root' level
> > access is:
> >   $ gksu nautilus
> >   
> why is gksu a better approach? or is this just another approach?

It's just another approach and the one used in the Ubuntu menus to allow
the user to run Administrator level commands that have X type
interfaces.

> >  {-: NOT that that way is any safer, but... :-}
> >
> >
> > Now that I do from time to time, but I use a different editor, ie a
> > simple text mode, one as I prefer 'mcedit'.
> >   
> I'll have to take a look at it.

'mcedit' Is part of Midnight Commander(mc) it is a text-mode full-screen
file manager and more.

> >> Of course, don't forget to close the programs and ctrl-d out of the privileged
> >> shell.
> >>     
> >
> > Why 'ctrl-d' instead of using a proper 'exit' command at the prompt?
> >   
> Why not? As I understand it, ^d is the same thing.

Well I'll be for 'bash' it is the same thing as typing 'exit' and
pressing enter. 
 For the 'python' interpreter ^d is the only way to exit.

--  
-- 
 Don E. Groves, Jr. 

$ /usr/games/fortune : You teach best what you most need to learn.



More information about the Novalug mailing list