Projects/psql-admtools
Projects
/
psql-admtools
Archived
13
0
Fork 0
This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
psql-admtools/README

20 lines
740 B
Plaintext
Raw Permalink Normal View History

2007-02-13 21:57:45 +01:00
PSQL-adm tools.
Disallow usage and create as default settings for newly created databases, done
in template1:
REVOKE USAGE ON SCHEMA public FROM public;
REVOKE CREATE ON SCHEMA public FROM public;
For every newly created database a schema with the same name as the specified
owner will be created, and the owner will have full authorization over it.
Two databases are used to keep information related to whom owns a user or
database, their structure can be found in tables.sql.
Database information is for now hardcoded into 'psqluseradm/psql.config.h', and
if you change that info you must recompile for them to take effect.
The dbname and dbuser must start with the username of the caller.
- Eirik Nygaard <eirikald@pvv.ntnu.no>