From: | Devrim GUNDUZ <devrim(at)gunduz(dot)org> |
---|---|
To: | Marko Kreen <marko(at)l-t(dot)ee> |
Cc: | Bernard <bht(at)actrix(dot)gen(dot)nz>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: psql from Linux script |
Date: | 2005-08-30 08:29:51 |
Message-ID: | Pine.LNX.4.63.0508301127420.6429@emo.org.tr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--8323328-1690527636-1125390591=:6429
Content-Type: TEXT/PLAIN; charset=iso-8859-9; format=flowed
Content-Transfer-Encoding: 8BIT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On Tue, 30 Aug 2005, Marko Kreen wrote:
>> I am failing to update the password of the postgresql user from within
>> a Linux installation script run by root:
>>
>> # su - postgres -c echo "ALTER USER postgres WITH PASSWORD
>> 'newpassword';" | psql -U postgres template1
>> psql: FATAL: Ident authentication failed for user "postgres"
>
> I do not think the psql is ran as user postgres.
Yes, this should be rewritten as:
echo "ALTER USER postgres WITH PASSWORD 'newpassword';" |su -l \
postgres -c "psql template1"
Regards,
- --
Devrim GUNDUZ
Kivi Bilişim Teknolojileri - http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQFDFBkBtl86P3SPfQ4RApBiAKDJY0HlXZSExl+9zXv1Q/bUL6tQAgCbBnBZ
vUxKGhAVOAFA2ia9OsBxdHc=
=1zxD
-----END PGP SIGNATURE-----
--8323328-1690527636-1125390591=:6429--
From | Date | Subject | |
---|---|---|---|
Next Message | Patrick.FICHE | 2005-08-30 08:44:05 | Re: psql from Linux script |
Previous Message | Marko Kreen | 2005-08-30 08:24:45 | Re: psql from Linux script |