![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have installed 8.0-beta2-dev3 on Win2k but the service will=20 not start. Firstly, I couldn't install postgresql as a Windows service=20 using the installer - using the installer, I couldn't add=20 postgresql as a Windows service without being a local=20 administrator. However, if I was logged on as a local admin=20 then the service would install but there was an error reported=20 later on saying that the server wouldn't run because I was=20 administrator (don't have a log of that error, sorry). |
|
failed to start. The Application event log shows the following=20 error (though NB the user account is a regular user, not a=20 "Power User" or "Administrator"): |
#3
| |||
| |||
|
|
Firstly, I couldn't install postgresql as a Windows service=20 using the installer - using the installer, I couldn't add=20 postgresql as a Windows service without being a local=20 administrator. However, if I was logged on as a local admin=20 then the service would install but there was an error reported=20 later on saying that the server wouldn't run because I was=20 administrator (don't have a log of that error, sorry). =20 You need two accounts. One administrator account that starts the installer (this could be "Administrator" or cours e- definitly no need to create a special user for this). Another account which is=20 used to run the eventual installed postgres. This is the account that you=20 specify on the service account screen in the installer. This account=20 MUST NOT be an administrator. |
#4
| |||
| |||
|
|
You need two accounts. One administrator account that starts the installer (this could be "Administrator" or cours e-=20 definitly no need to create a special user for this). Another account which is=20 used to run the eventual installed postgres. This is the account that you=20 specify on the service account screen in the installer. This account=20 MUST NOT be an administrator. OK. It turns out that the problem there was that the installer=20 (postgresql-8.0-beta2-dev3.msi) actually created a user=20 account which WAS a member of "Power Users", because my "Power=20 Users" group included the group "NT AUTHORITY\Authenticated=20 Users" (according to the MS website [1], this is the default=20 configuration for Windows XP and Windows 2k Professional,=20 though NOT for Win2k Server or Win2003 Server). This setting=20 means that ANY new local account is AUTOMATICALLY a power=20 user. When I realised this I removed the "NT=20 AUTHORITY\Authenticated Users" from the "Power Users" local=20 group, and the installer ran perfectly. |
|
It would be better if the installer would detect this=20 situation, though, because users installing PostgreSQL on=20 WinXP or Win2k Professional with the default security setup=20 will otherwise find that the installer will create a user=20 account which then doesn't work, which is not a good start :-)=20 |
#5
| |||
| |||
|
|
OK. It turns out that the problem there was that the installer=20 (postgresql-8.0-beta2-dev3.msi) actually created a user=20 account which WAS a member of "Power Users", because my "Power=20 Users" group included the group "NT AUTHORITY\Authenticated=20 Users" (according to the MS website [1], this is the default=20 configuration for Windows XP and Windows 2k Professional,=20 though NOT for Win2k Server or Win2003 Server). This setting=20 means that ANY new local account is AUTOMATICALLY a power=20 user. When I realised this I removed the "NT=20 AUTHORITY\Authenticated Users" from the "Power Users" local=20 group, and the installer ran perfectly. |
|
That is an interesting note. I've never seen "Power Users" contain Authenticated Users on any system I've installed, but the=20 page certainly claims it.=20 However, it makes no claim about Windows XP that I can see. Only about Windows 2000, and it shows the difference for the server platform. |
![]() |
| Thread Tools | |
| Display Modes | |
| |