[root@bloodyaxes bin]# su postgres -c "initdb --pglib=/usr/local/pgsql/lib --pgdata=/jo/database -d" Running with debug mode on. initdb: using /usr/local/pgsql/lib/local1_template1.bki.source as input to create the template database. initdb: using /usr/local/pgsql/lib/global1.bki.source as input to create the global classes. initdb: using /usr/local/pgsql/lib/pg_hba.conf.sample as the host-based authentication control file. We are initializing the database system with username postgres (uid=100). This user will own all the files and must also own the server process. rm: cannot remove `/jo/database/base/template1': Permission denied mkdir: cannot make directory `/jo/database/base/template1': Permission denied Creating template database in /jo/database/base/template1 Running: postgres -boot -C -F -D/jo/database -d template1 bootstrap.c: External Type: oidvector ERROR: Error: unknown type 'oidvector'. ERROR: Error: unknown type 'oidvector'. initdb: could not create template database initdb: cleaning up by wiping out /jo/database/base/template1