Discussion:
[bareos-users] Getting authentication failures with sudo -u postgres -c commands
Raymond Norton
2018-11-07 18:43:01 UTC
Permalink
I have used bacula for a number of years but want to move to Bareos. I am attempting my first server install but am getting authentication errors when attempting to run the following command (regardless of password used, or no password)


sudo -u postgres -c /usr/lib/bareos/scripts/create_bareos_database

I changed the postgres user password via psql but that did not help.

I am fine with reconfiguring the initial setup but am not clear on how to do that.

I am installing on a 16.04 Xubuntu server.

Any help is appreciated.

Raymond
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eero Volotinen
2018-11-07 18:48:25 UTC
Permalink
is following command working:

sudo -i
su - postgres
psql
(you should get connection prompt to databse)
Post by Raymond Norton
I have used bacula for a number of years but want to move to Bareos. I am
attempting my first server install but am getting authentication errors
when attempting to run the following command (regardless of password used,
or no password)
sudo -u postgres -c /usr/lib/bareos/scripts/create_bareos_database
I changed the postgres user password via psql but that did not help.
I am fine with reconfiguring the initial setup but am not clear on how to do that.
I am installing on a 16.04 Xubuntu server.
Any help is appreciated.
Raymond
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Eero Volotinen
2018-11-07 20:54:13 UTC
Permalink
How about following instructions:

su postgres -c /usr/lib/bareos/scripts/create_bareos_database
<>su postgres -c /usr/lib/bareos/scripts/make_bareos_tables
<>su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges
If you don't know password of postgres user just first sudo -i and then follow documentation?
Eero
Post by Raymond Norton
I have used bacula for a number of years but want to move to Bareos. I am attempting my first server install but am getting authentication errors when attempting to run the following command (regardless of password used, or no password)
sudo -u postgres -c /usr/lib/bareos/scripts/create_bareos_database
I changed the postgres user password via psql but that did not help.
I am fine with reconfiguring the initial setup but am not clear on how to do that.
I am installing on a 16.04 Xubuntu server.
Any help is appreciated.
Raymond
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Raymond Norton
2018-11-07 21:29:32 UTC
Permalink
Changing the user to bareos resolved the issue
Post by Eero Volotinen
su postgres -c /usr/lib/bareos/scripts/create_bareos_database
su postgres -c /usr/lib/bareos/scripts/make_bareos_tables
su postgres -c /usr/lib/bareos/scripts/grant_bareos_privileges
If you don't know password of postgres user just first sudo -i and then follow documentation?
Eero
I have used bacula for a number of years but want to move to Bareos. I am
attempting my first server install but am getting authentication errors
when attempting to run the following command (regardless of password used,
or no password)
sudo -u postgres -c /usr/lib/bareos/scripts/create_bareos_database
I changed the postgres user password via psql but that did not help.
I am fine with reconfiguring the initial setup but am not clear on how to do that.
I am installing on a 16.04 Xubuntu server.
Any help is appreciated.
Raymond
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users+***@googlegroups.com.
To post to this group, send email to bareos-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...