[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Health-dev] postgres passwd while installing GNU Health
From: |
Luis Falcon |
Subject: |
Re: [Health-dev] postgres passwd while installing GNU Health |
Date: |
Mon, 05 Aug 2013 07:53:23 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130701 Icedove/17.0.7 |
Dear Kaushik
On 05/08/2013 05:55, Kaushik wrote:
> Dear all,
> The wiki for installation gives the following instruction for
> creating a postgres user -
>
> su - postgres -c "createuser --createdb --no-createrole --no-superuser
> gnuhealth"
>
>
> However, I got an authentication failure. I assigned a password for
> postgres by doing -
> sudo passwd postgres
You probably executed the su command from your non-root user, thus it
asked for the postgres password.
>
> Then I was able to run the createuser command above. Could you please
> confirm if this is ok?. If so, should we add the add the instruction to
> the wiki to configure a postgres passwd. Or should we make sure that a
> postgres passwd does not exist.
It is ok to do it with the sudo command also.
They are two different things. One thing is to assign a password to
postgres at operating system level (is optional) the user and the other
is to create the user "gnuhealth" in postgres.
Best,
>
> Kaushik
>
>
>
>
>
--
Luis Falcon
http://health.gnu.org