Re: Autologin problem

From: "Adam Lang" <aalang(at)rutgersinsurance(dot)com>
To:
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Autologin problem
Date: 2001-01-05 16:01:29
Message-ID: 012101c07730$c4997220$330a0a0a@6014cwpza006
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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(at)eshell(dot)net>
To: "Julio Cuz, Jr." <jcuz(at)rccd(dot)cc(dot)ca(dot)us>
Cc: <pgsql-php(at)postgresql(dot)org>; <php-db(at)lists(dot)php(dot)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(at)rccd(dot)cc(dot)ca(dot)us
> >

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Chuck Milam 2001-01-05 16:07:41 Re: Autologin problem
Previous Message Steve Bern 2001-01-05 15:45:31 Re: Autologin problem