Re: Sudo
On 21/03/16 21:35, tomas@tuxteam.de wrote:
> On Mon, Mar 21, 2016 at 09:45:32PM +1300, Richard Hector wrote:
>
> [...]
>
>> 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.
>
> sudo -su postgres
>
> or
>
> sudo -iu postgres
>
> depending on your preferences. It's all in the manpage :)
It is indeed - thanks :-) I try and remember such things, but it's
harder when the old way works fine as well :-)
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>
- Re: Sudo
- From: Richard Hector <richard@walnut.gen.nz>
- Re: Sudo