Chris, Do you mean to say that every webapp is a separate thread? So the userid for the Runtime.exec() would be the id of the user starting the servlet conatiner (by running startup.sh)? Is there a place like a catalina.policy or something where I can say "hey tomcat, this is userid with which you should runall Runtime.exec() calls!". :) (Too much to ask ?? )
Arun -----Original Message----- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2008 4:07 PM To: Tomcat Users List Subject: Re: How can I run one particular webapp as a different user? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Arun, Don't hijack threads :( Sudhir, Arun wrote: | I'm using Tomcat in Linux and when I use Runtime.exec from Tomcat, the | unix commands run as user "dingo". But I have another user "aruns" and I | would like ONE AND ONLY ONE of my web applications to use Runtime.exec() | to run a perl script as user "aruns" and not as user "Dingo". Is this | possible? If so how ? How would you do this on the command-line? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhO3tkACgkQ9CaO5/Lv0PBFuACeLeZPJhQ26SCEk1V0KgmBC0Bc HcoAoK4r5/bGbe7rtg1psrHbv4yH/Q2S =1nyA -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]