commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Bröking (JIRA) <>
Subject [jira] Created: (DAEMON-172) Strange behaviour on filesystem access
Date Thu, 02 Sep 2010 11:57:53 GMT
Strange behaviour on filesystem access

                 Key: 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
            Reporter: Daniel Bröking


we are developing a Java-based application which does some filesystem operations on mounted
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]

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/$ -cp "$CLASSPATH"

Here the dumping parsed command line args:
| 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/"
| User Name:       "null"
| Extra Options:   1
|   "-Djava.class.path=...."
| Class Invoked:   ""
| Class Arguments: 0

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

View raw message