PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 8th, 2003, 06:12 AM
game13 game13 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 2 game13 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
user account management

I want to give a postgres account for each user of my linux server.
In my idea, users would be able to connect without auth in console mode with psql.
In addition they could connect to their base througth php scripts and manage their DB
with phpPgAdmin. In this case, they will give their linux user name and password to auth.
The admin will also be able to log in all dbases and manage them all.

I can do all of this in trust mode, but that allows my user to log on everybody account
and that is not really secure.

With the following conf, I have the authentification in console mode ok, but I can't use
neither phpPgAdmin (can't login) or just connect with a simple php script.

Could somebody help me to configure the pg server ? (I have RTFM chapter 6 and browse the forum, but I'm still in a mess with pguser accounts) Also I want to do this conf into conf files

Thanx a lot for your help

pg_hba.conf (without trust)
----------------------------

host sameuser 127.0.0.1 255.255.255.255 ident sameuser
host sameuser 10.0.0.0 255.255.255.255 ident sameuser
local sameuser ident sameuser

pg_ident.conf : empty
--------------

postgresql.conf :
-----------------

tcpip_socket = true

max_connections = 32

port = 5432
hostname_lookup = false
show_source_port = false

unix_socket_directory = ''
unix_socket_group = ''
unix_socket_permissions = 0777

Last edited by game13 : October 8th, 2003 at 11:18 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > user account management


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT