You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Daniel Bröking (JIRA)" <ji...@apache.org> on 2010/09/03 10:49:34 UTC

[jira] Closed: (DAEMON-172) Strange behaviour on filesystem access

     [ https://issues.apache.org/jira/browse/DAEMON-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Bröking closed DAEMON-172.
---------------------------------

    Fix Version/s: 1.0.3
       Resolution: Not A Problem

Hi,
if've upgraded to jsvc 1.0.3 and it works now!
Thanks a lot!

> Strange behaviour on filesystem access
> --------------------------------------
>
>                 Key: DAEMON-172
>                 URL: https://issues.apache.org/jira/browse/DAEMON-172
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Jsvc
>    Affects Versions: 1.0.2
>         Environment: Ubuntu 10.04, Java 1.6.0_20, jsvc installed via Ubuntu/Debian-Package-Management (apt-get)
>            Reporter: Daniel Bröking
>             Fix For: 1.0.3
>
>
> Hi,
> we are developing a Java-based application which does some filesystem operations on mounted USB-Storages.
> While running it as a daemon via jsvc, the application is not able to access the mounted USB-Storage (e.g. on /mount/9201-9EFF).
> [Misbehaviour: An empty file-list is gained while accessing the mount-point via java.io.File.list()]
> The storage has only the rwx-Permissions for a specific user:
> >> $ ls -l /media/
> >> drwx------ 10 daende daende 4096 1970-01-01 01:00 9201-9EFF
> [!!!] The strange behaviour is that if the application is executed as root via a plain java-call, it gets access to the USB-Storage and is able to list the files located on the USB-device.
> The jsvc is executed as root and is configured in the following way:
> jsvc -debug -outfile "..." -errfile "..." -pidfile /tmp/$NAME.pid -cp "$CLASSPATH" com.app.Main
> Here the dumping parsed command line args:
> +-- DUMPING PARSED COMMAND LINE ARGUMENTS --------------
> | Detach:          True
> | Show Version:    No
> | Show Help:       No
> | Check Only:      Disabled
> | Stop:            False
> | Wait:            0
> | Run as service:  No
> | Install service: No
> | Remove service:  No
> | JVM Name:        "null"
> | Java Home:       "null"
> | PID File:        "/tmp/app.pid"
> | User Name:       "null"
> | Extra Options:   1
> |   "-Djava.class.path=...."
> | Class Invoked:   "com.app.Main"
> | Class Arguments: 0
> +-------------------------------------------------------

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.