From: Donald Fraser <postgres@kiwi-fraser.net>
To: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: support for using runas for pg
Date: Fri, 13 Jan 2006 13:20:33 -0000
Message-ID: <004f01c61844$34c77f10$0264a8c0@demolish1> (raw)
References: <20060113113300.56539.qmail@web31014.mail.mud.yahoo.com>
>I am able to start and stop database after logging as user postgres in NT.
It is clear that you can start and stop postgreSQL using the postgres user.
Therefore access to pg_ctl.exe is working as expected!
The fact that the problem only exists when you introduce a thrid party tool
to perform the same tasks you are able to do when logged on as the postgres
user strongly suggests that the problem is with your thrid party tool. That
is your third party tool is emulating the command shell environment but not
100%.
What happens when you try and run some other application using the postgres
user when logged on as the postgres user? For example:
1) log on as postgres and run the program ipconfig.exe (this system program
uses the kernel32.dll).
2) When you have established that the previous step works ok, run the same
command from a batch/script file using the "runasv" program.
Regards
Donald Fraser
Ps. Please do not include email addresses in your reply - they become public
domian and allow spam engines to find them!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: postgres@kiwi-fraser.net
Subject: Re: support for using runas for pg
In-Reply-To: <004f01c61844$34c77f10$0264a8c0@demolish1>
References: <20060113113300.56539.qmail@web31014.mail.mud.yahoo.com> <004f01c61844$34c77f10$0264a8c0@demolish1>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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