<div dir="ltr"><div><div><div><div>Thanks,It just work.<br>One more thing which I added to make it work is that after login with postgres user,if I was running psql then getting this error.<br>$<code>psql -d template1 -c "create user engine password 'engine';"<br>psql: could not connect to server: No such file or directory<br> Is the server running locally and accepting<br> connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?<br><br></code></div><code><span style="font-family:arial,helvetica,sans-serif">So,I just give 777 permission to /var/lib/pgsql/data/pg_hba.conf and restart postgresql server.Then it<br></span></code></div><code><span style="font-family:arial,helvetica,sans-serif">work fine(I know it is not the best solution:) ).<br></span></code></div><code><span style="font-family:arial,helvetica,sans-serif"></span></code></div><code><span style="font-family:arial,helvetica,sans-serif"></span></code><code><span style="font-family:arial,helvetica,sans-serif"></span></code><br><code><span style="font-family:arial,helvetica,sans-serif"></span></code><code><span style="font-family:arial,helvetica,sans-serif"></span></code><div><div><code><span style="font-family:arial,helvetica,sans-serif"><br></span></code><div><code><br></code></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 16, 2017 at 12:09 AM, Alexander Wels <span dir="ltr"><<a href="mailto:awels@redhat.com" target="_blank">awels@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wednesday, March 15, 2017 1:56:27 PM EDT shubham dubey wrote:<br>
> I am running it as normal user because when I am running it as root user it<br>
> is giving me following error<br>
><br>
> "root" execution of the PostgreSQL server is not permitted.<br>
> The server must be started under an unprivileged user ID to prevent<br>
> possible system security compromise. See the documentation for<br>
> more information on how to properly start the server.<br>
><br>
<br>
</span>Yes don't run that part as root. What I usually do after installing the<br>
packages and configuring the database is sudo to postgres and run psql engine.<br>
Then paste the part between the double quotes in. I always manage to screw up<br>
the quotes otherwise.<br>
<div class="HOEnZb"><div class="h5"><br>
> On Wed, Mar 15, 2017 at 10:14 PM, Fred Rolland <<a href="mailto:frolland@redhat.com">frolland@redhat.com</a>> wrote:<br>
> > Under which user are you running this command ?<br>
> > In the guide, it is specified to run it as root.<br>
> ><br>
> > On Wed, Mar 15, 2017 at 6:30 PM, shubham dubey <<a href="mailto:sdubey504@gmail.com">sdubey504@gmail.com</a>><br>
> ><br>
> > wrote:<br>
> >> Hello,<br>
> >> I am trying to setup ovirt-engine using this link<br>
> >> <a href="http://www.ovirt.org/develop/developer-guide/engine/engine-d" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/<wbr>developer-guide/engine/engine-<wbr>d</a><br>
> >> evelopment-environment/.<br>
> >> Now when I am trying these commands I am getting following error<br>
> >> $postgres -c "psql -d template1 -c \"create user engine<br>
> >> password 'engine';\""<br>
> >> FATAL: -c psql -d template1 -c "create user engine password 'engine';"<br>
> >> requires a value<br>
> >><br>
> >> and<br>
> >> $postgres -c "psql -d template1 -c "create database engine \<br>
> >> owner engine template template0 encoding 'UTF8' lc_collate \<br>
> >> 'en_US.UTF-8' lc_ctype 'en_US.UTF-8';\""<br>
> >> FATAL: -c psql -d template1 -c "create database engine owner engine<br>
> >> template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype<br>
> >> 'en_US.UTF-8';" requires a value<br>
> >><br>
> >> So I think the syntax given there is not right,So can anyone tell me the<br>
> >> correct syntax.Or maybe I am doing something wrong.<br>
> >><br>
> >> Thanks,<br>
> >> Shubham<br>
> >><br>
> >> ______________________________<wbr>_________________<br>
> >> Devel mailing list<br>
> >> <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
> >> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>