Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 70828 invoked from network); 31 Mar 2008 13:17:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Mar 2008 13:17:19 -0000 Received: (qmail 1336 invoked by uid 500); 31 Mar 2008 13:17:19 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 1134 invoked by uid 500); 31 Mar 2008 13:17:18 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 1123 invoked by uid 99); 31 Mar 2008 13:17:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 06:17:18 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [195.216.81.147] (HELO mail.otego.com) (195.216.81.147) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 13:16:28 +0000 Received: (qmail 4186 invoked from network); 31 Mar 2008 13:16:48 -0000 Received: from 192.168.222.135 by zeus (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.91.2/4015. perlscan: 1.25st. Clear:RC:1(192.168.222.135):. Processed in 0.027704 secs); 31 Mar 2008 13:16:48 -0000 Received: from unknown (HELO ?192.168.222.135?) (192.168.222.135) by 0 with SMTP; 31 Mar 2008 13:16:48 -0000 Message-ID: <47F0E440.9040006@apache.org> Date: Mon, 31 Mar 2008 15:16:48 +0200 From: Felix Knecht User-Agent: Thunderbird 2.0.0.12 (X11/20080229) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [ApacheDS] [Urgent] Running Apache DS with an 'apacheds' user ? References: <98d8c0860803310500o2a0a3cf0qf02ad53b6397dff@mail.gmail.com> <47F0D39A.3010004@apache.org> <13f0f6440803310526n6a712e5cgb8a588dcefb3a3e5@mail.gmail.com> <47F0DEE7.7090205@apache.org> <13f0f6440803310558x3ab7f44aq65bb694c4b5b4fea@mail.gmail.com> <98d8c0860803310612w32f233d2x19515b5d299acea4@mail.gmail.com> In-Reply-To: <98d8c0860803310612w32f233d2x19515b5d299acea4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Pierre-Arnaud Marcelot schrieb: > Thanks Guys, > > I managed to log in as apacheds with the "sudo su - apacheds" command. > > I tried to run the server using the command that launches the init > script (I already tried that under my own account but I could not test > it under the 'apacheds' user as I could not log in as 'apacheds'). > I still had no log. > I added write permissions for anyone to the wrapper log file, and I > finally had one log... :D > The log indicates that the pid file could not be created (Permission > denied). This was something I was suspecting. > > Now my question are: > Do I need to add special rights/permissions to the 'apacheds' user ? > And more importantly: > How the hell does it seem to work out of the box for the rpm? (and I'm > exactly doing the same thing) Just create in the rpm the locations you want to write those pids and log files and give them the permission they need. chown apacheds:apacheds probably. > > Thanks, > Pierre-Arnaud > > On Mon, Mar 31, 2008 at 2:58 PM, David Montag > wrote: > > Sorry, I think I misunderstood the question. Carry on :) > > /David > > > On Mon, Mar 31, 2008 at 2:53 PM, Felix Knecht > wrote: > > Alex Karasulu schrieb: > > Yeah the init script will be run as the root user on > startup. So sudo > > su - apacheds will not require a password. > > > > Alex > > > > On Mon, Mar 31, 2008 at 8:26 AM, David Montag > > > >> wrote: > > > > Hi, > > > > When I tried using an installer, I had to enter the apacheds > > user's password when starting the server using > > /etc/init.d/apacheds start default. Maybe this is more > or less > > what Felix said? > > > Alex is right, there should be no need to enter a password > and > No, not exactly what I meant. I tried to say to execute the > init script > manually step by step and see where it fails ;-) > > Felix > > > > > /David > > > > > > On Mon, Mar 31, 2008 at 2:05 PM, Felix Knecht > > > >> > wrote: > > > > Pierre-Arnaud Marcelot schrieb: > > > Hi, > > > > > > I'm trying to finish the new installers (.deb and > .bin), and I'm > > > facing an issue when I'm trying to run Apache DS > with an > > 'apacheds' user. > > > > > > I looked at the RPM Spec file > > > > (/installers/apacheds/src/main/installers/apacheds-rpm.spec) > > used to > > > build the RPM package and I've seen that it > creates a group > > and a user > > > called 'apacheds' on the target system and that > the init > > script uses > > > this 'apacheds' user to run the server. > > > > > > I added the same thing in the .deb and .bin > installer. The > > user and > > > group 'apacheds' are well created but launching > the server > > does not > > > work as expected, letting me with no log in the > wrapper, nor > > the server. > > > > > > If anyone has an idea... > > Maybe this helps to get more error messages: > > > > Try after installation to sudo su - apacheds and > start the server > > manually (not from the /etc/init.d script but what > the script > > does. > > > > I could imaging missing permissions on files or missing > > $JAVA_HOME or so > > .... > > > > Felix > > > > > Chris maybe, as you designed the RPM Spec. > > > > > > Thanks, > > > Pierre-Arnaud > > > > > > > > >