| 28 | |
| 29 | |
| 30 | 2. '''Security Obstacles ''' |
| 31 | |
| 32 | a. Verify that your pg_hba.conf in the data folder of your test PostgreSQL install and that it allows trust local. So should look something like below (and should be the top most rule). This will save you many hassles and is perfectly secure if you trust everyone logging into the box. If not then you might want to make trust ident (and then do a su postgres for testing) |
| 33 | |
| 34 | host all all 127.0.0.1/32 trust |
| 35 | |
| 36 | b. su postgres is allowed for Linux/Unix users, but if you prefer that more secure route, then your above should look like below which is the default for Ubuntu. |
| 37 | |
| 38 | host all all 127.0.0.1/32 ident |
| 39 | |
| 40 | c. To test using postgres account -- make sure you are logged in as a super user e.g. root and do a but before this will work, you need to make sure the regress test folder you have allows postgres access. so |
| 41 | chmod 777 regress (you may need to specify the full path if you are not in the postgis source root) |
| 42 | su postgres |
| 43 | |