Why do all the sudo? [was Re: Software updater no longer functional]

Chris Green cl at isbd.net
Mon Jan 23 10:38:09 UTC 2017


On Mon, Jan 23, 2017 at 11:16:21AM +0100, iceblink wrote:
> On 2017-01-23 07:38, Ralf Mardorf wrote:
> > > On 23 Jan 2017, at 07:34, Karl Auer <kauer at biplane.com.au> wrote:
> > > 
> > > It's safer for experienced people too.
> > 
> > Why is sudo safer?
> > 
> > I explained why it isn't safer, so please explain were I'm mistaken.
> 
> Real life example: I worked as a consultant for a company where the unix
> admin worked as root, always.
> Because he was experienced. Or something.
> 
My original comment (that started this thread) was *NOT* about always
using root, it was simply saying that (for example) :-

    sudo -i
    apt-get update
    apt-get upgrade
    apt-get install <something>
    apt-get autoremove
    apt-get clean
    exit

is somewhat tidier *and* easier to understand than:-

    sudo apt-get update
    sudo apt-get upgrade              
    sudo apt-get install <something>
    sudo apt-get autoremove
    sudo apt-get clean


If you were to use synaptic to do the same job then it does exactly
what I am suggesting, you become root for the duration of the job and
exit when you've finished.



-- 
Chris Green




More information about the ubuntu-users mailing list