On 19/01/2011 19:37, Rainer Jung wrote:
> Not tested with Java 6, but at least for Java 5 user.name still seems to
> return the real uid, not the effective one. So I expect under jsvc you
> will still get root as the result.
> 
> See:
> 
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4290712
> 
> But it should be verified using jsvc. Not sure whether my simple
> perl+Java bsed test is valid.

The bug has only been open for 11 years. I'm sure it will get fixed soon.

As additional ways this might break emerge, I'm beginning to think an
optional life-cycle listener that uses Runtime.Exec to get the info is a
better way to go. Slower, but more reliable. For jsvc I think it would
have to be on the Engine or similar.

There is no rush for this feature. The discussion so far has been useful
so I plan to wait a little while to see what else emerges before doing
anything.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to