Re: How to change effective user id on Windows

2010-01-08 Thread Jim Ma
勹 发自我的 iPod 在 Jan 7, 2010,22:42,"Looijmans, Mike" 写到: The current configuration is correct in terms of security - the 'SYSTEM' user is a limited account that has no access to the desktop nor shared network resources. Be warned that running a service under other credentials than the syste

Re: How to change effective user id on Windows

2010-01-08 Thread Peter Crowther
2010/1/8 Amit Agarwal : > HOw do we start TOmcat programatically using Bootstrap.start() API if we > need to pass the user ? You don't do it that way ;-). By the time you start the Java virtual machine (JVM) that runs Tomcat, that JVM must *already* be running as the user you want to use for Tomc

Re: How to change effective user id on Windows

2010-01-07 Thread Amit Agarwal
HOw do we start TOmcat programatically using Bootstrap.start() API if we need to pass the user ? On Thu, Jan 7, 2010 at 8:30 PM, Peter Crowther wrote: > 2010/1/7 Looijmans, Mike : > > The current configuration is correct in terms of security - the 'SYSTEM' > > user is a limited account that has n

Re: How to change effective user id on Windows

2010-01-07 Thread Peter Crowther
2010/1/7 Looijmans, Mike : > The current configuration is correct in terms of security - the 'SYSTEM' > user is a limited account that has no access to the desktop nor shared > network resources. Sorry to pick you up on this one, Mike, but I think you're thinking of Local*Service*, not Local*Syste

RE: How to change effective user id on Windows

2010-01-07 Thread Looijmans, Mike
The current configuration is correct in terms of security - the 'SYSTEM' user is a limited account that has no access to the desktop nor shared network resources. Be warned that running a service under other credentials than the system user is likely to lead to a less secure configuration, instead

Re: How to change effective user id on Windows

2010-01-07 Thread Ziggy
Look at http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.htmland see the --user parameter under command line parameters. -- D On Thu, Jan 7, 2010 at 2:07 PM, Amit Agarwal wrote: > Tomat on Linux starts as root to bind to > port 80, and then switches effective user id to nobody. Win

Re: How to change effective user id on Windows

2010-01-07 Thread Peter Crowther
2010/1/7 Amit Agarwal : > Tomat on Linux starts as root to bind to > port 80, and then switches effective user id to nobody. Windows does not > appear to have concept of changing effective user. Tomcat service runs > as a local system on Windows. Need to change the user for Tomcat > after binding t