commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <>
Subject Re: [daemon] Problems of downgrading user prevelegies.
Date Tue, 27 Apr 2010 12:58:12 GMT
On 04/27/2010 01:11 PM, Alexandr Nalbandyan wrote:
> Hi Following is the problem we have faced when specifying "-user" option in
> jsvc.
> In the following code snipped in init method definition we have tried to
> create file output stream.
> "
>      public final void init(final DaemonContext arg0) throws Exception {
>          FileOutputStream fileOutputStream = new
> FileOutputStream("logs/test.out");
> "
> But this code throws exception saying "Permission Denied".
> But if we remove -user  option it works.
> According to the documentation init method should run  with "super user"
> prevelages.

Can you point to the documentation where is that stated, cause it's wrong,
and needs to be fixed.

init() is called after user downgrade.
Basically the JVM cannot be forked, because threads cannot be
forked, and would left JVM without GC thread.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message