From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 07:52:50 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E6F11065673; Thu, 18 Dec 2008 07:52:50 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 037868FC1A; Thu, 18 Dec 2008 07:52:49 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp12.yandex.ru (smtp12.yandex.ru [77.88.32.82]) by forwards4.yandex.ru (Yandex) with ESMTP id D66DB4C51FE; Thu, 18 Dec 2008 10:52:46 +0300 (MSK) Received: from 200-203-124-91.pool.ukrtel.net ([91.124.203.200]:18180 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5325894AbYLRHwi (ORCPT + 6 others); Thu, 18 Dec 2008 10:52:38 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp12 X-Yandex-TimeMark: 1229586758 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 8 X-Comment: RFC 2476 MSA function at smtp12.yandex.ru logged sender identity as: kes-kes Date: Thu, 18 Dec 2008 09:52:42 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <322306821.20081218095242@yandex.ru> To: "David Weintraub" In-Reply-To: References: <42213407.20081212101341@yandex.ru> <20081214141135.2b40a55b.freebsd@edvax.de> <2010226645.20081214171117@yandex.ru> <200812170811.20566.fbsd.questions@rachie.is-a-geek.net> <984054014.20081217220207@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 18 Dec 2008 15:23:02 +0000 Cc: questions@freebsd.org, Mel , Wojciech Puchar , Polytropon , freebsd-questions@freebsd.org, users@subversion.tigris.org Subject: Re[4]: can not start SVNserve X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2008 07:52:50 -0000 Здравствуйте, David. DW> Is user "svn" a member of the group "wheel"? See DW> http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/063649.html It is not required to be member of group wheel to low process rights from root. wheel group is requierd only if I want to rise my rights to root. Also notice that on both systems 'home' and 'kes' there is svn group and user. The svn user is not member of wheel group. On both systems user svn has not home directory and has not valid shell (because of it is not required to login as svn user, this is just user to start svnserve process) On FreeBSD 7.0 svnserve startsup normally, on 7.1 it can not Error is described earlier. DW> On Wed, Dec 17, 2008 at 3:02 PM, KES wrote: >> Здравствуйте, Mel. >> >> Вы писали 17 декабря 2008 г., 9:11:19: >> >> M> On Sunday 14 December 2008 16:11:17 KES wrote: >>>> Здравствуйте, Polytropon. >>>> >>>> Вы писали 14 декабря 2008 г., 15:11:35: >>>> >>>> P> On Sun, 14 Dec 2008 12:58:55 +0100 (CET), Wojciech Puchar >>>> >>>> P> wrote: >>>> >> > su: Sorry >>>> >> > >>>> >> > >>>> >> > kes# pw user mod svn -s /bin/bash >>>> >> > kes# pw user show svn >>>> >> > svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash >>>> >> > kes# /usr/local/etc/rc.d/svnserve start >>>> >> > Starting svnserve. >>>> >> > su: Sorry >>>> >> >>>> >> try to change directory to existent >>>> >>>> P> (1) What's /bin/bash? Check existing shell. >>>> >>>> P> (2) As you said: Check existing directory. >>>> >>>> P> (3) Regarding su, check for wheel group inclusion. >>>> >>>> home# uname -a >>>> FreeBSD home.kes.net.ua 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug 12 >>>> 02:11:24 EEST 2008 kes@kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 >>>> i386 home# pw user show svn >>>> svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin >>>> >>>> As you can see on 'home' machine svn user has no valid shell also it >>>> has not valid home directory and it is not included into wheel group >>>> >>>> But svnserve is started and works fine. With same settings svnserve >>>> does not work on >>>> kes# uname -a >>>> FreeBSD kes.net.ua 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #: Sun Nov 23 >>>> 17:19:12 EET 2008 kes@home.kes.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7 >>>> i386 >> >> M> echo 'rc_debug="YES"'>>/etc/rc.conf >> M> /usr/local/etc/rc.d/svnserve start >> >> M> Show output from /var/log/messages. >> >> kes# kes# /usr/local/etc/rc.d/svnserve start >> /usr/local/etc/rc.d/svnserve: DEBUG: checkyesno: svnserve_enable is set to YES. >> Starting svnserve. >> /usr/local/etc/rc.d/svnserve: DEBUG: run_rc_command: doit: su -m svn -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3690 --foreground -r /var/db/trunk"' >> su: Sorry >> >> >> -- >> С уважением, >> KES mailto:kes-kes@yandex.ru >> >> -- С уважением, KES mailto:kes-kes@yandex.ru