Autologin problem

From: "Julio Cuz, Jr(dot)" <jcuz(at)rccd(dot)cc(dot)ca(dot)us>
To: pgsql-php(at)postgresql(dot)org, php-db(at)lists(dot)php(dot)net
Subject: Autologin problem
Date: 2001-01-05 02:55:13
Message-ID: 4.3.2.7.2.20010104184601.00b998a8@rccd.cc.ca.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Louis Bertrand 2001-01-05 03:04:46 Re: pg_shadow???
Previous Message Julio Cuz, Jr. 2001-01-05 02:45:43 Re: pg_shadow???