[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Install 1.3.15 on Centos 6, and upgrade from 1.2 question



On Tue, 24 Apr 2012 10:27:36 +0200
Håvard Sørli wrote:

> > ./tools/prepare-company-database.sh --company testinc
> > --pgsql-contrib /usr/share/pgsql/contrib
> 
> Which user are you running this as ?

root

Only root has execute permission on that script:

-rwxr--r-- 1 root root 7051 Jan 20
17:16 /usr/share/ledgersmb/tools/prepare-company-database.sh

> Can the user create a new db with pgsql ?

Apparently not:

# createdb testing
createdb: could not connect to database postgres: FATAL:  role "root" does not
exist

user postgres can do it though:

# su postgres
bash-4.1$ createdb testing
bash-4.1$ dropdb testing

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ledger-smb-users mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users