[Novalug] "Root" / sudo in Ubuntu (was launch perl script from ubuntu desktop)
Roger W. Broseus
rogerb at bronord.com
Wed Jun 27 14:24:01 EDT 2007
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?
> {-: 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.
>> 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.
--
Roger W. Broseus
Linux user NEW web site (June, 2007) www.bronord.com
More information about the Novalug
mailing list