pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adam Lang <aalang@rutgersinsurance.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Autologin problem
Date: Fri, 5 Jan 2001 11:01:29 -0500
Message-ID: <012101c07730$c4997220$330a0a0a@6014cwpza006> (raw)
References: <Pine.LNX.4.21.0101050941280.7167-100000@eshell.net>

Actually, that is a valid point.  Do you compile postgres or install it with
the OS?

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Steve Bern" <sabern@eshell.net>
To: "Julio Cuz, Jr." <jcuz@rccd.cc.ca.us>
Cc: <pgsql-php@postgresql.org>; <php-db@lists.php.net>
Sent: Friday, January 05, 2001 10:45 AM
Subject: Re: [PHP] Autologin problem


> I assume you're trying to get PostGresql to load automatically.  In RH,
> get rid of the stuff you wrote below and put in the following line (in
> rc.local):
>
> /etc/rc.d/init.d/postgresql start
>
> This is the proper way to start the DB.-- Read the file to see what it
> does.  You can also stop and restart it in similar fasion.
>
>
> On Thu, 4 Jan 2001, Julio Cuz, Jr. wrote:
>
> > Hi--
> >
> > I'm trying to run the following command on the "/etc/rc.local" so it
will
> > run everytime (RedHat 7/PHP4/PostgreSQL):
> >
> > nohup su -c 'postmaster -i -D /usr/local/pgsql/data \
> > </dev/null >>server.log 2>>1 &' <username>
> >
> > The problem is that <username> has a password set, and since Linux
doesn't
> > ask for it when it's on the rc.local file, my command fails.
> >
> > Is there a way to include the password with the "su" command?
> >
> > Is there a way to CLEAR a user's password and set it to NULL?
> >
> > Julio Cuz, Jr.
> > Riverside Community College
> > jcuz@rccd.cc.ca.us
> >




view thread (6+ messages)  latest in thread

Message-ID: <012101c07730$c4997220$330a0a0a@6014cwpza006>
Permalink:  ../012101c07730$c4997220$330a0a0a@6014cwpza006/
Also on:    postgresql.org/message-id/012101c07730$c4997220$330a0a0a@6014cwpza006

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: aalang@rutgersinsurance.com
  Subject: Re: Autologin problem
  In-Reply-To: <012101c07730$c4997220$330a0a0a@6014cwpza006>
  References: <Pine.LNX.4.21.0101050941280.7167-100000@eshell.net> <012101c07730$c4997220$330a0a0a@6014cwpza006>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox