Re: Sudo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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 :)
These days I only use su for some (archaeological) installations I
stumble upon at work.
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlbvsmMACgkQBcgs9XrR2kYkhwCffbIiSEg8tl4nHjbsof3N8p99
SgoAn1E53GaR9L7sWJxIUOkQh6O3U6gt
=Obxs
-----END PGP SIGNATURE-----
Reply to:
- Follow-Ups:
- Re: Sudo
- From: Richard Hector <richard@walnut.gen.nz>
- 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>