[ALUG] sudo &

steve-ALUG at hst.me.uk steve-ALUG at hst.me.uk
Tue Jun 13 11:01:51 BST 2017


On 13/06/17 10:42, Mark Rogers wrote:
> On 13 June 2017 at 09:41, <steve-ALUG at hst.me.uk> wrote:
>>
>> Alternatively and possibly not recommended, use sudo -i to become root, then run all your commands in that window.  It will only as for the password once.
>
> Indeed, and this would have been simplest, although it also means that
> anything else I do is run as root, which is non-ideal from the point
> of view of safety but also because I'll tend to leave files scattered
> around with wrong ownership.
>
Open a new window.  Do the sudo -i stuff in it.  Do the non sudo normal 
stuff in another window.

Simples! :-)

Steve



More information about the main mailing list