Re: Postgres user with a shell of /bin/false

From: "Reko Turja" <reko(dot)turja(at)liukuma(dot)net>
To: "Cliff Pratt" <enkiduonthenet(at)gmail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Postgres user with a shell of /bin/false
Date: 2009-05-25 10:22:55
Message-ID: 154EA15B2ACE49B6B4AD65248376F81A@rivendell
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> I've browsed my history of the list, and the Internet for
> information
> regarding giving the unix 'postgres' user a shell of /bin/false, so
> that it cannot be logged into directly. It seems from my research
> that
> if I set the user's shell to /bin/false it will not prevent the
> running of postgres itself.

In at least FreeBSD, the standard ports way of setting PGSQL user to
use /usr/bin/nologin as shell works well enough. You get the regular
shell interface from SU'ing or sudoing into account, but you cannot
login into box directly.

Is the nologin "shell" BSD only feature though?

-Reko

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Moshe Ben-Shoham 2009-05-27 14:00:10 PostgreSQL crashes
Previous Message Scott Mead 2009-05-22 16:03:06 Re: Postgres user with a shell of /bin/false