RE: Set group id using jsvc?
How can you set that? Would that allow files created or written to by tomcat to get permissions I want ? We are using servers with the tanuki java service wrapper. Hopefully it can be done with that the same way... Thanks a lot. neil -Original Message- From: Nick Johnson [mailto:[EMAIL PROTECTED] Sent: Monday, April 18, 2005 12:50 PM To: tomcat-user@jakarta.apache.org Subject: Set group id using jsvc? Hello, I know that jsvc will let you set the user id of the tomcat process, but will it also let you set the group id of the process? Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set group id using jsvc?
On Mon, Apr 18, 2005 at 12:50:26PM -0400, Nick Johnson wrote: : I know that jsvc will let you set the user id of the tomcat process, : but will it also let you set the group id of the process? Off the top of my head I don't know; but you can grep the source code for setgid() (or even setegid()). That call sets group membership. Do you need jsvc to run Tomcat on a privileged port? If not, you could use erni[1] for fine-tuned group membership. -QM [1] = http://www.brandxdev.net/erni/index.site -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Set group id using jsvc?
Why not make the user that Tomcat runs at a member of the group you need it in? Why do you need to change the group if it is set ahead of time? Doug - Original Message - From: QM [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, April 18, 2005 9:25 PM Subject: Re: Set group id using jsvc? On Mon, Apr 18, 2005 at 12:50:26PM -0400, Nick Johnson wrote: : I know that jsvc will let you set the user id of the tomcat process, : but will it also let you set the group id of the process? Off the top of my head I don't know; but you can grep the source code for setgid() (or even setegid()). That call sets group membership. Do you need jsvc to run Tomcat on a privileged port? If not, you could use erni[1] for fine-tuned group membership. -QM [1] = http://www.brandxdev.net/erni/index.site -- software -- http://www.brandxdev.net/ tech news -- http://www.RoarNetworX.com/ code scan -- http://www.JxRef.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]