6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/7/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8082] pgsql create script fails
*
Your Email Address
*
Spam protection
Enter the letters below:
__ .__.. .. .. . / `| ||__||_/ |\ | \__.|__|| || \| \|
Comment
>> Name | Owner | Access privileges > >> --------------------+----------+-------------------------------- > >> public | postgres | {postgres=UC/postgres,=UC/postgres} > > > > Ok, the default access privileges for public users are configured > differently on our systems. The part "=UC/postgres" means public > users can Use (i.e., select) and Create on the public schema (and > these privileges have been granted by the user postgres). I've > removed create privileges for public users in my database. That's why > it's working for you and not for me. > > > > By default, Postgres allows any account to login to any database and > create objects on the public schema. I suppose it's possible someone > may have gone a step further and configured their template database > to prevent public users from logging in at all. > > > > I imagine a foolproof version of the script would look something like this: > > > > CREATE USER horde; > > -- ALTER USER horde WITH PASSWORD 'pass'; > > CREATE DATABASE horde OWNER horde; > > \c horde horde; > > > > Alternatively, if you don't want horde to own the database (I don't > know the security implications one way or the other): > > > > CREATE DATABASE horde; > > CREATE USER horde; > > -- ALTER USER horde WITH PASSWORD 'pass'; > > GRANT CONNECT ON DATABASE horde TO horde; > > \c horde > > GRANT CREATE ON SCHEMA public TO horde; > > SET ROLE horde; > > > > I haven't test any of this, so you may want to play around and see > how/if this works.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers