Re: Autologin problem

From: "Adam Lang" <aalang(at)rutgersinsurance(dot)com>
To: <pgsql-php(at)postgresql(dot)org>
Subject: Re: Autologin problem
Date: 2001-01-05 14:07:34
Message-ID: 006e01c07720$d9e20120$330a0a0a@6014cwpza006
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

You shouldn't post to multiple lists at one time. It is rude for very many
reasons.

This is the line I use to start postgres from rc.local (watch the word
wrap). Password is irrelevant. If I understand correctly, root is what
runs the rc.local and root never needs a password to su to another user.
Log in as root and su to a user. You'll see. Very possible your comand is
failing for other reasons.

# Start Postgresql
su -l <username for which postgres runs under> -c "<location of
postmaster> -i -D <postgres data directory> >> <path to postgres log file>
2>>1 &"

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "Julio Cuz, Jr." <jcuz(at)rccd(dot)cc(dot)ca(dot)us>
To: <pgsql-php(at)postgresql(dot)org>; <php-db(at)lists(dot)php(dot)net>
Sent: Thursday, January 04, 2001 9:55 PM
Subject: [PHP] Autologin problem

> 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 Steve Bern 2001-01-05 15:45:31 Re: Autologin problem
Previous Message Louis Bertrand 2001-01-05 03:04:46 Re: pg_shadow???