postgres-user <-> unix user

Started by Tomas B. Winklerover 25 years ago5 messagesgeneral
Jump to latest
#1Tomas B. Winkler
tomasw@cs.huji.ac.il

I would like to allow any user which has an unix account in our system to
be able to connect a DB. Can be postgres configured that an unix user
become automatically also a postgres user ? I can figure out some ways
to do it yet I'm looking for the most transparent one.
Thanks a lot.

Tomas Winkler
The System Group
CSE HUJI

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Tomas B. Winkler (#1)
Re: postgres-user <-> unix user

Tomas B. Winkler writes:

I would like to allow any user which has an unix account in our system to
be able to connect a DB. Can be postgres configured that an unix user
become automatically also a postgres user ? I can figure out some ways
to do it yet I'm looking for the most transparent one.
Thanks a lot.

Use ident authentication with a map name of "sameuser". See the
documentation in the file pg_hba.conf.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#3Roderick A. Anderson
raanders@altoplanos.net
In reply to: Tomas B. Winkler (#1)
Re: postgres-user <-> unix user

On Tue, 19 Sep 2000, Tomas B. Winkler wrote:

I would like to allow any user which has an unix account in our system to
be able to connect a DB. Can be postgres configured that an unix user
become automatically also a postgres user ? I can figure out some ways
to do it yet I'm looking for the most transparent one.

Back in my Oracle days on IBM RS6000 I seem to remember we had to manually
add the user as an Oarcle user. This included sometimes two accounts.
The normal user and an OPS$usename account so they could login
automagically to an Oracle instance.
Basically I think you'll need to add them as part of the adduser/useradd
process and/or run a script against the passwd file to create them.

rod
--
Roderick A. Anderson
raanders@altoplanos.net Altoplanos Information Systems, Inc.
Voice: 208.765.6149 212 S. 11th Street, Suite 5
FAX: 208.664.5299 Coeur d'Alene, ID 83814

#4Tomas B. Winkler
tomasw@cs.huji.ac.il
In reply to: Peter Eisentraut (#2)
Re: postgres-user <-> unix user

I haven't found any documentation about pg_ident.conf file format.

Tomas Winkler
The System Group
CSE HUJI

On Tue, 19 Sep 2000, Peter Eisentraut wrote:

Show quoted text

Tomas B. Winkler writes:

I would like to allow any user which has an unix account in our system to
be able to connect a DB. Can be postgres configured that an unix user
become automatically also a postgres user ? I can figure out some ways
to do it yet I'm looking for the most transparent one.
Thanks a lot.

Use ident authentication with a map name of "sameuser". See the
documentation in the file pg_hba.conf.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Tomas B. Winkler (#4)
Re: postgres-user <-> unix user

Tomas B. Winkler writes:

I haven't found any documentation about pg_ident.conf file format.

It contains lines of the form

mapname unixname postgres-name

but if you use the map "sameuser" you don't need it.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/