users@glassfish.java.net

Switching user ID inside a web-application

From: <forums_at_java.net>
Date: Fri, 1 Apr 2011 07:15:07 -0500 (CDT)

Normal 0 21 false false false DE X-NONE X-NONE /* Style Definitions */
table.MsoNormalTable {mso-style-name:"Normale Tabelle";
mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes;
mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm
5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm;
mso-para-margin-bottom:10.0pt; mso-para-margin-left:0cm; line-height:115%;
mso-pagination:widow-orphan; font-size:11.0pt;
font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi; mso-fareast-language:EN-US;} Hello Com

I’m working on a new Java EE application which will be used as common
front-end for command-line applications. The application should be able to
read/modify files and to execute applications inside the end-users home
directory (yes, the UNIX profiles and the application-server are on the same
server). These requirements on the software force us to find a way how to
switching the user-id inside the running application server (without root).
Writing a JNA/JNI interface to setuid could do this, but then we have to run
Glassfish as root which is not that what we want.

So is there any solution out there for this problem?

Best wishes,
Rudolf


--
[Message sent by forum member 'RCBiczok']
View Post: http://forums.java.net/node/787458