Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 70747 invoked from network); 2 Sep 2010 11:58:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Sep 2010 11:58:19 -0000 Received: (qmail 3001 invoked by uid 500); 2 Sep 2010 11:58:19 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 2660 invoked by uid 500); 2 Sep 2010 11:58:16 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 2647 invoked by uid 99); 2 Sep 2010 11:58:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 11:58:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Sep 2010 11:58:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o82Bvref016396 for ; Thu, 2 Sep 2010 11:57:53 GMT Message-ID: <22269391.138281283428673795.JavaMail.jira@thor> Date: Thu, 2 Sep 2010 07:57:53 -0400 (EDT) From: =?utf-8?Q?Daniel_Br=C3=B6king_=28JIRA=29?= To: issues@commons.apache.org Subject: [jira] Created: (DAEMON-172) Strange behaviour on filesystem access MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 Ubunt= u/Debian-Package-Management (apt-get) Reporter: Daniel Br=C3=B6king Hi, we are developing a Java-based application which does some filesystem opera= tions on mounted USB-Storages. While running it as a daemon via jsvc, the application is not able to acces= s 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 lis= t 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 "$CLA= SSPATH" 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=3D...." | Class Invoked: "com.app.Main" | Class Arguments: 0 +------------------------------------------------------- --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.