Re: multiuser tomcat environment
You may use Virtual Hosts: one student = one host. This way, each student can have as many context as needed, one of them being the manager. Dom - Original Message - From: Tsirkin Evgeny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 11:38 PM Subject: multiuser tomcat environment Hi all! I am new to this list but i hope that is the right one to ask the question. We are trying to set up a multiuser machine running Linux (currently RH7.3) and Tomcat in our college. The main perpose of the server - a programming course,the students should develope their projects on it. Students probably should be able to do the folowing: [1] deploy/redeply/reload their applications [2] they should NOT be able to do the same for the other students applications [3] they can't restart the server ,of course, since students don't have root access. So,using manager app is not appropriate - that way all the students will be able to manage all the application. Is there any other managers/suggestions that we can use? Thanks. Evgeny --- JCT. - 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: multiuser tomcat environment
Is that alright to have say 60 Virtual Hosts on one tomcat server? Thanks. On Mon, 5 Jan 2004 12:19:18 +0100, Dominique Batard [EMAIL PROTECTED] wrote: You may use Virtual Hosts: one student = one host. This way, each student can have as many context as needed, one of them being the manager. Dom - Original Message - From: Tsirkin Evgeny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 11:38 PM Subject: multiuser tomcat environment Hi all! I am new to this list but i hope that is the right one to ask the question. We are trying to set up a multiuser machine running Linux (currently RH7.3) and Tomcat in our college. The main perpose of the server - a programming course,the students should develope their projects on it. Students probably should be able to do the folowing: [1] deploy/redeply/reload their applications [2] they should NOT be able to do the same for the other students applications [3] they can't restart the server ,of course, since students don't have root access. So,using manager app is not appropriate - that way all the students will be able to manage all the application. Is there any other managers/suggestions that we can use? Thanks. Evgeny --- JCT. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiuser tomcat environment
With the light traffic you will most likely be getting to each virtual host, 60 shouldn't be a problem. Camron G. Levanger The Dreamlab www.dreamlabmedia.com (866) 890-3705 On Jan 5, 2004, at 5:01 AM, Tsirkin Evgeny wrote: Is that alright to have say 60 Virtual Hosts on one tomcat server? Thanks. On Mon, 5 Jan 2004 12:19:18 +0100, Dominique Batard [EMAIL PROTECTED] wrote: You may use Virtual Hosts: one student = one host. This way, each student can have as many context as needed, one of them being the manager. Dom - Original Message - From: Tsirkin Evgeny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 11:38 PM Subject: multiuser tomcat environment Hi all! I am new to this list but i hope that is the right one to ask the question. We are trying to set up a multiuser machine running Linux (currently RH7.3) and Tomcat in our college. The main perpose of the server - a programming course,the students should develope their projects on it. Students probably should be able to do the folowing: [1] deploy/redeply/reload their applications [2] they should NOT be able to do the same for the other students applications [3] they can't restart the server ,of course, since students don't have root access. So,using manager app is not appropriate - that way all the students will be able to manage all the application. Is there any other managers/suggestions that we can use? Thanks. Evgeny --- JCT. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
Re: multiuser tomcat environment
Tsirkin Evgeny wrote: Many thanks for your reply. Does your solution works with NIS? Also I have found on the server config site that : The operating system username under which Catalina is executed MUST have read access to each user's web application directory, and all of its contents. In my case that probably means that I will have to run Catalina as root. Are there any known security problems with that? The safest way is to start tomcat as root and switch id to nobody, and to place all your users in the same group. The users give no access to group, but rw to others. Be sure to run with security turned on. All servlets will run with the permissions of the id that tomcat is executed as. With security on, by default servlets can only rw files in its class directory. If you run tomcat as a normal user, be sure this id is not in the same group as all the other users. All users should authenticate for access to the webapps. About implementing my own manager ,I am not realy a java programmer Does anybody knows about such a thing already done? I like the idea that someone else suggested about virtual hosts. As an alternative, you could have an authenticated servlet that executes an ant script that will access the manager. The servlet would only allow start, stop and reload. Thanks. On Fri, 02 Jan 2004 11:00:24 -0500, Tim Downey [EMAIL PROTECTED] wrote: The main perpose of the server - a programming course,the students should develope their projects on it. Students probably should be able to do the folowing: [1] deploy/redeply/reload their applications Using Tomcat as a stand-alone server, you can create a ~ directory for each user in /etc/passwd. Add a Listener for UserConfig in the Host. [2] they should NOT be able to do the same for the other students applications The ~ directories have individual user access privileges. [3] they can't restart the server ,of course, since students don't have root access. I am unfamiliar with creating a new manager, but it seems that you should be able to write a servlet that can only be accessed by registered users. This servlet will send stop/start for a particular user's web app directory. It is possible to send messages to the manager via HTTP. Your servlet will need to authenticate as the manager, and then send the correct HTTP request. Perhaps someone else has a slicker solution. I would love to hear it. So,using manager app is not appropriate - that way all the students will be able to manage all the application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Tim Downey [EMAIL PROTECTED] http://www.cs.fiu.edu/~downeyt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiuser tomcat environment
Many thanks for your reply. Does your solution works with NIS? Also I have found on the server config site that : The operating system username under which Catalina is executed MUST have read access to each user's web application directory, and all of its contents. In my case that probably means that I will have to run Catalina as root. Are there any known security problems with that? About implementing my own manager ,I am not realy a java programmer Does anybody knows about such a thing already done? Thanks. On Fri, 02 Jan 2004 11:00:24 -0500, Tim Downey [EMAIL PROTECTED] wrote: The main perpose of the server - a programming course,the students should develope their projects on it. Students probably should be able to do the folowing: [1] deploy/redeply/reload their applications Using Tomcat as a stand-alone server, you can create a ~ directory for each user in /etc/passwd. Add a Listener for UserConfig in the Host. [2] they should NOT be able to do the same for the other students applications The ~ directories have individual user access privileges. [3] they can't restart the server ,of course, since students don't have root access. I am unfamiliar with creating a new manager, but it seems that you should be able to write a servlet that can only be accessed by registered users. This servlet will send stop/start for a particular user's web app directory. It is possible to send messages to the manager via HTTP. Your servlet will need to authenticate as the manager, and then send the correct HTTP request. Perhaps someone else has a slicker solution. I would love to hear it. So,using manager app is not appropriate - that way all the students will be able to manage all the application. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiuser tomcat environment
The main perpose of the server - a programming course,the students should develope their projects on it. Students probably should be able to do the folowing: [1] deploy/redeply/reload their applications Using Tomcat as a stand-alone server, you can create a ~ directory for each user in /etc/passwd. Add a Listener for UserConfig in the Host. [2] they should NOT be able to do the same for the other students applications The ~ directories have individual user access privileges. [3] they can't restart the server ,of course, since students don't have root access. I am unfamiliar with creating a new manager, but it seems that you should be able to write a servlet that can only be accessed by registered users. This servlet will send stop/start for a particular user's web app directory. It is possible to send messages to the manager via HTTP. Your servlet will need to authenticate as the manager, and then send the correct HTTP request. Perhaps someone else has a slicker solution. I would love to hear it. So,using manager app is not appropriate - that way all the students will be able to manage all the application. -- Tim Downey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiuser tomcat environment
Hi all! I am new to this list but i hope that is the right one to ask the question. We are trying to set up a multiuser machine running Linux (currently RH7.3) and Tomcat in our college. The main perpose of the server - a programming course,the students should develope their projects on it. Students probably should be able to do the folowing: [1] deploy/redeply/reload their applications [2] they should NOT be able to do the same for the other students applications [3] they can't restart the server ,of course, since students don't have root access. So,using manager app is not appropriate - that way all the students will be able to manage all the application. Is there any other managers/suggestions that we can use? Thanks. Evgeny --- JCT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]