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.
Richard
Reply to:
- References:
- Sudo
- From: Frank Jones <sandyman45@sky.com>
- Re: Sudo
- From: Andrew McGlashan <andrew.mcglashan@affinityvision.com.au>
- Re: Sudo
- From: Joe <joe@jretrading.com>
- Re: Sudo
- From: Sven Arvidsson <sa@whiz.se>
- Re: Sudo
- From: Joe <joe@jretrading.com>
- Re: Sudo
- From: Adam Wilson <moxalt@riseup.net>
- Re: Sudo
- From: Michael Milliman <michael.e.milliman@gmail.com>