André, thanks. I can confirm that changing the log-on user in Services
worked. As Charles notes in the subsequent post, I can see now that the "Log
On" tab in "Configure Tomcat" (tomcat6w.exe) mimics the "Log On" tab for a
service's properties in the Services admin tool.

On Mon, Dec 8, 2008 at 1:14 AM, André Warnier <[EMAIL PROTECTED]> wrote:

> Mitch Gitman wrote:
>
>>
>> 2. I literally can't solve this problem while still running as a Windows
>> service.
>>
> [...]
> Yes you can...
>
> - the LocalSystem account is special, one of the special things about it
> being that it cannot access Windows network resources.
> - if you need Tomcat to access Windows network resources, such as "shares",
> then you need to run Tomcat under another user-id. If the system is part of
> a Domain, and if to access network resources you need to be logged in the
> Domain, then you need a valid Windows Domain user-id (and password) in order
> to run Tomcat as such a user-id.
> (You can test with your own id).
> - when you have such a user-id/password, then go into the "Services" applet
> (My computer...,Manage.., Services and Applications,.. Services, right-click
> on Tomcat in the right panel, choose Properties, and the "Logon as" tab.
> Then change the user-id "Local System" to the Domain user-id above, enter
> its password.  The account will then automatically receive the permission to
> "run as a service" (it will tell you).
> - Now if you start the Tomcat service, it will run as that user, with the
> normal environment of that user.
> You just have to make sure that all the files/directories Tomcat needs are
> accessible by the user-id you are running Tomcat under.
>
> A tip, if this is for a "persistent" installation : the user-id under which
> Tomcat runs should have a password that does not "age" (aka does not need to
> be changed every so often), because if it does, then after a while your
> Tomcat will not start anymore.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to