[Spacewalk-list] Spacewalk Postgres database

Paul-Andre Panon paul-andre.panon at avigilon.com
Tue Apr 9 19:19:23 UTC 2019


On Tue, 9 Apr 2019 16:12:32 +0100, Giles Coochey <giles at coochey.net>
wrote:

>I might be wrong, but doesn't postgres use PAM authentication by default?
So you can just do this as root.

Not by default. Authentication configuration is done through the
pg_hba.conf file in the /var/lib/pgsql/data directory. It should contain a
line
local postgres postgres ident map=usermap
which means that you could "sudo su", then "su postgres -c psql" to run
native PostgreSQL backup commands for the database. However, as others
have pointed out, there are easier ways of achieving those goals using
Spacewalk-supplied commands.

Cheers,

Paul-Andre




More information about the Spacewalk-list mailing list