Re: Process won't start in Windows

Lists: pgsql-general
From: Robert Fitzpatrick <lists(at)webtent(dot)net>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Process won't start in Windows
Date: 2007-01-17 01:04:26
Message-ID: 1168995867.30644.6.camel@columbus.webtent.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

I am running PostgreSQL 8.1.5 under Windows Server 2003 Standard
edition. All has been running for weeks now, don't know if it has been
restarted since we installed. Today we installed a program, Paradox
database, which required a restart, and now the PostgreSQL Server
service won't start with the Event description that the service cannot
start by a user with administrative permsissions:

Execution of PostgreSQL by a user with administrative permissions is not
permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromises. See the documentation for
more information on how to properly start the server.

I tried checking permissions on the data folder for the postgres user,
resetting the password, even re-created the user and reset perms on the
data and program files. Still won't start with the event error above.

What should I look for? I am used to running PostgreSQL on our BSD boxes
and have this setup for a customer.

--
Robert


From: "Adam Rich" <adam(dot)r(at)sbcglobal(dot)net>
To: "'Robert Fitzpatrick'" <lists(at)webtent(dot)net>, "'PostgreSQL'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Process won't start in Windows
Date: 2007-01-17 02:00:57
Message-ID: 080601c739db$545adb10$6400a8c0@dualcore
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


Robert,
Open "Computer Management" and find the postgres service.
There should be an item saying "Run As". You want that to be
a non-privledged account. Typically, postgres asks you what account
to use when you install it. Just make sure that account has not been
granted administrative rights (you can check that under Computer
Management as well)

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Robert
Fitzpatrick
Sent: Tuesday, January 16, 2007 7:04 PM
To: PostgreSQL
Subject: [GENERAL] Process won't start in Windows

I am running PostgreSQL 8.1.5 under Windows Server 2003 Standard
edition. All has been running for weeks now, don't know if it has been
restarted since we installed. Today we installed a program, Paradox
database, which required a restart, and now the PostgreSQL Server
service won't start with the Event description that the service cannot
start by a user with administrative permsissions:

Execution of PostgreSQL by a user with administrative permissions is not
permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromises. See the documentation for
more information on how to properly start the server.

I tried checking permissions on the data folder for the postgres user,
resetting the password, even re-created the user and reset perms on the
data and program files. Still won't start with the event error above.

What should I look for? I am used to running PostgreSQL on our BSD boxes
and have this setup for a customer.

--
Robert

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match


From: "Abdul Hayee Bhatti" <hayee(dot)bhatti(at)gmail(dot)com>
To: "Adam Rich" <adam(dot)r(at)sbcglobal(dot)net>
Cc: "Robert Fitzpatrick" <lists(at)webtent(dot)net>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Process won't start in Windows
Date: 2007-01-17 02:14:20
Message-ID: e2f9348d0701161814x102c0a37yc6271fe0f41893a7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

That -- and make sure your "Secondary Logon" service is running. Also, to
confirm, "Log On As" column in front of the pg service should mention the
postgres (low privileged) user.

A. Hayee

On 1/17/07, Adam Rich <adam(dot)r(at)sbcglobal(dot)net> wrote:
>
>
> Robert,
> Open "Computer Management" and find the postgres service.
> There should be an item saying "Run As". You want that to be
> a non-privledged account. Typically, postgres asks you what account
> to use when you install it. Just make sure that account has not been
> granted administrative rights (you can check that under Computer
> Management as well)
>
>
>
> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Robert
> Fitzpatrick
> Sent: Tuesday, January 16, 2007 7:04 PM
> To: PostgreSQL
> Subject: [GENERAL] Process won't start in Windows
>
>
> I am running PostgreSQL 8.1.5 under Windows Server 2003 Standard
> edition. All has been running for weeks now, don't know if it has been
> restarted since we installed. Today we installed a program, Paradox
> database, which required a restart, and now the PostgreSQL Server
> service won't start with the Event description that the service cannot
> start by a user with administrative permsissions:
>
> Execution of PostgreSQL by a user with administrative permissions is not
> permitted.
> The server must be started under an unprivileged user ID to prevent
> possible system security compromises. See the documentation for
> more information on how to properly start the server.
>
> I tried checking permissions on the data folder for the postgres user,
> resetting the password, even re-created the user and reset perms on the
> data and program files. Still won't start with the event error above.
>
> What should I look for? I am used to running PostgreSQL on our BSD boxes
> and have this setup for a customer.
>
> --
> Robert
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>


From: "Magnus Hagander" <magnus(at)hagander(dot)net>
To: hayee(dot)bhatti(at)gmail(dot)com
Cc: adam(dot)r(at)sbcglobal(dot)net, lists(at)webtent(dot)net, pgsql-general(at)postgresql(dot)org
Subject: Re: Process won't start in Windows
Date: 2007-01-17 10:03:27
Message-ID: 20070117100457.438F6DCC175@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> That -- and make sure your "Secondary Logon" service is running. Also, to confirm, "Log On As" column in front of the pg service should mention the postgres
(low privileged) user.

Secondary logon service is only needed during installation. It's only used to launch initdb.

/Magnus


From: Robert Fitzpatrick <lists(at)webtent(dot)net>
To: 'PostgreSQL' <pgsql-general(at)postgresql(dot)org>
Subject: Re: Process won't start in Windows
Date: 2007-01-17 13:33:23
Message-ID: 1169040803.30644.11.camel@columbus.webtent.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Tue, 2007-01-16 at 20:00 -0600, Adam Rich wrote:
> Robert,
> Open "Computer Management" and find the postgres service.
> There should be an item saying "Run As". You want that to be
> a non-privledged account. Typically, postgres asks you what account
> to use when you install it. Just make sure that account has not been
> granted administrative rights (you can check that under Computer
> Management as well)
>

Thanks, yes, I verified the services has 'postgres' as the account being
used under the Log On tab of the PostgreSQL service. But still, the
service will not start with the administrative permissions error
previously posted. Any other ideas?

--
Robert


From: Raymond O'Donnell <rod(at)iol(dot)ie>
To:
Cc: 'PostgreSQL' <pgsql-general(at)postgresql(dot)org>
Subject: Re: Process won't start in Windows
Date: 2007-01-17 13:50:33
Message-ID: 45AE29A9.9050905@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Robert Fitzpatrick wrote:

> Thanks, yes, I verified the services has 'postgres' as the account being
> used under the Log On tab of the PostgreSQL service. But still, the
> service will not start with the administrative permissions error
> previously posted. Any other ideas?

Did you check that the "postgres" user is not part of the local
"Administrators" group?

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
---------------------------------------------------------------


From: Dave Page <dpage(at)postgresql(dot)org>
To: rod(at)iol(dot)ie
Cc: "'PostgreSQL'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Process won't start in Windows
Date: 2007-01-17 14:13:15
Message-ID: 45AE2EFB.80701@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Raymond O'Donnell wrote:
> Robert Fitzpatrick wrote:
>
>> Thanks, yes, I verified the services has 'postgres' as the account being
>> used under the Log On tab of the PostgreSQL service. But still, the
>> service will not start with the administrative permissions error
>> previously posted. Any other ideas?
>
> Did you check that the "postgres" user is not part of the local
> "Administrators" group?

Or any other group it might have inherited admin rights from. the check
is recursive - if you have *any* admin right, no matter how many parent
groups they were inheirted form, it'll find them and refuse to run.

Regards, Dave


From: Robert Fitzpatrick <lists(at)webtent(dot)net>
To: 'PostgreSQL' <pgsql-general(at)postgresql(dot)org>
Subject: Re: Process won't start in Windows
Date: 2007-01-17 14:23:32
Message-ID: 1169043812.30644.24.camel@columbus.webtent.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Wed, 2007-01-17 at 14:13 +0000, Dave Page wrote:
> Raymond O'Donnell wrote:
> > Robert Fitzpatrick wrote:
> >
> >> Thanks, yes, I verified the services has 'postgres' as the account being
> >> used under the Log On tab of the PostgreSQL service. But still, the
> >> service will not start with the administrative permissions error
> >> previously posted. Any other ideas?
> >
> > Did you check that the "postgres" user is not part of the local
> > "Administrators" group?
>
> Or any other group it might have inherited admin rights from. the check
> is recursive - if you have *any* admin right, no matter how many parent
> groups they were inheirted form, it'll find them and refuse to run.
>

The local administrators group has the Administrator, Domain Admins for
the domain, and one other user (not postgres). The postgres user is a
Member Of only the Users group.

--
Robert