[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sudo

On 21/03/16 17:30, Michael Milliman wrote:
> On the other hand, I use both su and sudo.  If I have a protracted
> session with several different tasks that I need to complete all
> requiring root access I su to the root user.  If on the other hand, I
> only need to perform a single command, or so, I use sudo.  Both have
> their uses, though as already noted, Debian generally does one or the
> other as a default.  I install with a root password, and then bring in
> the sudo package post-installation.
> -- 

I use sudo -s for a root session. I can't remember the difference
between that and sudo -i, but it works for me.

On the other hand, if I need to be some other user, like the postgres
user, I use "sudo su postgres". There are probably better ways to do
that, too, but again, it works.


Reply to: