From commons-user-return-11439-apmail-jakarta-commons-user-archive=jakarta.apache.org@jakarta.apache.org Mon Apr 04 18:43:05 2005 Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 51549 invoked from network); 4 Apr 2005 18:43:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2005 18:43:04 -0000 Received: (qmail 99239 invoked by uid 500); 4 Apr 2005 18:42:46 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 99175 invoked by uid 500); 4 Apr 2005 18:42:45 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 99162 invoked by uid 99); 4 Apr 2005 18:42:45 -0000 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Q1EXCH01.Q1Labs.com (HELO q1exch01.q1labs.com) (205.174.165.4) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 04 Apr 2005 11:42:44 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [JSVC] mkdir and copy files not working Date: Mon, 4 Apr 2005 15:42:40 -0300 Message-ID: <310AB730C9D86E46BFDE11AD24AD3776F3D8D8@q1exch01.Q1LABS.INC> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [JSVC] mkdir and copy files not working Thread-Index: AcU5HLJ5mdyAqPI4Qy+reANJ0OKDUAAAPlCwAAmtkCA= From: "Derek Lohnes" To: "Jakarta Commons Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N So after further investigation I discovered that it is related to the set_cap call in the jsvc-unix.c code. If I change this to always set the cap to CAPALL it works fine. I haven't traced through it much but my guess is that it is being set to CAP. I would think if the user is root then the application should have permissions to read and write at any location. =20 Can someone also tell me who the committers to this project are? I submitted a patch some time ago but never received any indication as to whether it would be accepted or rejected. Is it possible to get commit access? Thanks Derek -----Original Message----- From: Derek Lohnes [mailto:derek.lohnes@Q1Labs.com]=20 Sent: Monday, April 04, 2005 11:05 AM To: Jakarta Commons Users List Subject: [JSVC] mkdir and copy files not working I have a java java application that I'm launching with jsvc. The program is throwing exceptions if I try to 'mkdirs' directories or copy files. If the files I'm trying to copy to already exists then copy will succeed if the file does not already exist then the copy fails (Permission Denied). I noticed that there was a bug entered already and that is was fixed. I'm actually building from cvs code and I'm still having this problem. =20 I'm running the process as root.... I'm also getting failed to open file for writing errors. When I run this application without JSVC everything is fine. Anyone have any ideas? Thanks Derek --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org