On Tuesday 22 August 2006 15:54, [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED]:/etc/bacula# /usr/sbin/bacula-dir -c > > /etc/bacula/bacula-dir.conf -u bacula -g bacula > > 22-Aug 15:33 bacula-dir: Fatal error: Could not open database "bacula". > > 22-Aug 15:33 bacula-dir: Fatal error: postgresql.c:174 Unable to connect > > to PostgreSQL server. > > In this case, the unix root user is connecting as the postgres bacula > user. It fails. If as root you try to connect to postgres using the > same psql command as above, does it still work? Also, what database > authentication mechanism are you using?
I'm passing the "-u bacula" option to bacula-dir to run as the bacula user. Are you saying that it connects to postgres BEFORE doing a seteuid(2) call? If so, that is weird. I would think if I tell the bacula-dir command to run as bacula it should connect to postgres as bacula not root. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users