pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Starting PostgreSQL server as root
5+ messages / 4 participants
[nested] [flat]

* Starting PostgreSQL server as root
@ 2003-07-31 19:00  Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Daniel Gerardo Lucero Baylon @ 2003-07-31 19:00 UTC (permalink / raw)
  To: pgsql-admin

I installed PostgreSQL 7.3.4 on a red Hat Linux 8.0 system.

When I try to install clusters using initdb and postmaster commands to start
server and database, an error occurs:

You cannot run initdb -D /usr/local/pgsql/data as root. Please log in as the
(unprivileged) user that will own the server process.

Ok. I know that I need to log in as another Linux user to start PostgreSQL.

My problem is that I need to log on as root to access another process such as
Firebird.

Does exist a way to start Postgre as root?

I appreciate some help

Best Regards

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Starting PostgreSQL server as root
@ 2003-07-31 22:59  Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Daniel Gerardo Lucero Baylon @ 2003-07-31 22:59 UTC (permalink / raw)
  To: pgsql-admin

I installed PostgreSQL 7.3.4 on Red Hat Linux 8.0.

When I tried to mount database (using initdb command), following error appear:

You cannot run initdb as root. Please log in as the (unprivileged) user that
will own the server process.

I read at Postgre documentation, and I need to log on as another user and strt
process.

This is my problem, I check another services and processes as root user, if I
use another user to manage Postgre, another appliactions crashes.

Does exist a way to start Postgre as root?

I appreciate some help.

Best Regards

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Starting PostgreSQL server as root
@ 2003-07-31 23:08  Marvin <magosoft@gmx.net>
  parent: Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Marvin @ 2003-07-31 23:08 UTC (permalink / raw)
  To: pgsql-admin

You don't have to LOGOUT and LOGIN again as another user,
you just do: # su <user>

#su postgres

The postgres must exist and this is who will own the database.

Regards,


MAGO
 
-------Mensaje original-------
 
De: Daniel Gerardo Lucero Baylon
Fecha: Jueves, 31 de Julio de 2003 05:03:08 p.m.
A: pgsql-admin@postgresql.org
Asunto: [ADMIN] Starting PostgreSQL server as root
 
I installed PostgreSQL 7.3.4 on Red Hat Linux 8.0.

When I tried to mount database (using initdb command), following error
appear:

You cannot run initdb as root. Please log in as the (unprivileged) user that
will own the server process.

I read at Postgre documentation, and I need to log on as another user and
strt
process.

This is my problem, I check another services and processes as root user, if
I
use another user to manage Postgre, another appliactions crashes.

Does exist a way to start Postgre as root?

I appreciate some help.

Best Regards

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

. 

Attachments:

IMSTP.gif (image/gif, 494B) download view image
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: Starting PostgreSQL server as root
@ 2003-08-01 15:01  scott.marlowe <scott.marlowe@ihs.com>
  parent: Marvin <magosoft@gmx.net>
  0 siblings, 0 replies; 5+ messages in thread

From: scott.marlowe @ 2003-08-01 15:01 UTC (permalink / raw)
  To: Marvin <magosoft@gmx.net>; +Cc: pgsql-admin

Note that if you use pg_ctl and the $PGDATA var to point to the data dir, 
then you'll need to

su - postgres

i.e. use the - to inherit the postgres users environment.

On Thu, 31 Jul 2003, Marvin wrote:

> You don't have to LOGOUT and LOGIN again as another user,
> you just do: # su <user>
> 
> #su postgres
> 
> The postgres must exist and this is who will own the database.
> 
> Regards,
> 
> 
> MAGO
>  
> -------Mensaje original-------
>  
> De: Daniel Gerardo Lucero Baylon
> Fecha: Jueves, 31 de Julio de 2003 05:03:08 p.m.
> A: pgsql-admin@postgresql.org
> Asunto: [ADMIN] Starting PostgreSQL server as root
>  
> I installed PostgreSQL 7.3.4 on Red Hat Linux 8.0.
> 
> When I tried to mount database (using initdb command), following error
> appear:
> 
> You cannot run initdb as root. Please log in as the (unprivileged) user that
> will own the server process.
> 
> I read at Postgre documentation, and I need to log on as another user and
> strt
> process.
> 
> This is my problem, I check another services and processes as root user, if
> I
> use another user to manage Postgre, another appliactions crashes.
> 
> Does exist a way to start Postgre as root?
> 
> I appreciate some help.
> 
> Best Regards
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 
> . 




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Starting PostgreSQL server as root
@ 2003-08-01 15:42  Andrew Sullivan <andrew@libertyrms.info>
  parent: Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Andrew Sullivan @ 2003-08-01 15:42 UTC (permalink / raw)
  To: pgsql-admin

On Thu, Jul 31, 2003 at 12:00:49PM -0700, Daniel Gerardo Lucero Baylon wrote:
> Does exist a way to start Postgre as root?

su -c "your command here" postgres

A

-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2003-08-01 15:42 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31 19:00 Starting PostgreSQL server as root Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
2003-08-01 15:42 ` Andrew Sullivan <andrew@libertyrms.info>
2003-07-31 22:59 Starting PostgreSQL server as root Daniel Gerardo Lucero Baylon <daniel_baylon@yahoo.com>
2003-07-31 23:08 ` Marvin <magosoft@gmx.net>
2003-08-01 15:01   ` scott.marlowe <scott.marlowe@ihs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox