From owner-freebsd-questions@FreeBSD.ORG Sat Dec 20 12:01:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28C7A1065676; Sat, 20 Dec 2008 12:01:46 +0000 (UTC) (envelope-from dewey@sasser.ws) Received: from que21.charter.net (que21.charter.net [209.225.8.22]) by mx1.freebsd.org (Postfix) with ESMTP id A52898FC36; Sat, 20 Dec 2008 12:01:45 +0000 (UTC) (envelope-from dewey@sasser.ws) Received: from aarprv04.charter.net ([10.20.200.74]) by mta21.charter.net (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20081220113850.PSIB20903.mta21.charter.net@aarprv04.charter.net>; Sat, 20 Dec 2008 06:38:50 -0500 Received: from kitty ([24.177.50.169]) by aarprv04.charter.net with ESMTP id <20081220113850.UOSA25639.aarprv04.charter.net@kitty>; Sat, 20 Dec 2008 06:38:50 -0500 Received: from dewey by kitty with local (Exim 4.68) (envelope-from ) id 1LE0AS-0002nN-V5; Sat, 20 Dec 2008 06:38:49 -0500 Received: from mail.sasser.ws [192.168.213.5] by kitty with IMAP (fetchmail-6.3.6) for (single-drop); Sat, 20 Dec 2008 06:38:48 -0500 (EST) Received: from sc157-tigr.sjc.collab.net (sc157.sjc.collab.net [204.16.104.146]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Thu, 18 Dec 2008 20:23:18 +0000 (UTC) Received: from sc157-tigr.sjc.collab.net (localhost [127.0.0.1]) by sc157-tigr.sjc.collab.net (Postfix) with ESMTP id A693F7B033C; Thu, 18 Dec 2008 12:19:54 -0800 (PST) Received: from localhost ([127.0.0.1]) by Mail Reader Service (JAMES SMTP Server 2.3.0) with SMTP ID 229 for ; Thu, 18 Dec 2008 10:57:48 -0800 (PST) Received: from cylon2.sjc.collab.net (cylon2.sjc.collab.net [204.16.104.18]) by sc157-tigr.sjc.collab.net (Postfix) with ESMTP id 807367B0333 for ; Thu, 18 Dec 2008 10:57:48 -0800 (PST) Received: from forwards4.yandex.ru ([77.88.32.20]) by cylon2.sjc.collab.net with ESMTP; 18 Dec 2008 10:57:47 -0800 Received: from smtp15.yandex.ru (smtp15.yandex.ru [77.88.32.85]) by forwards4.yandex.ru (Yandex) with ESMTP id DC1C34C54B1; Thu, 18 Dec 2008 21:57:45 +0300 (MSK) Received: from 200-203-124-91.pool.ukrtel.net ([91.124.203.200]:30736 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4866214AbYLRS5k (ORCPT + 4 others); Thu, 18 Dec 2008 21:57:40 +0300 X-Account-Key: account3 X-UIDL: 475790c50000dddf X-Mozilla-Keys: Delivered-To: dewey@sasser.com X-FDA: 61702497318 X-Panda: scanned! X-SpamScore: 5 Date: Thu, 18 Dec 2008 20:57:44 +0200 From: KES To: David Weintraub Message-ID: <174660154.20081218205744@yandex.ru> In-Reply-To: References: <42213407.20081212101341@yandex.ru> <200812170811.20566.fbsd.questions@rachie.is-a-geek.net> <984054014.20081217220207@yandex.ru> <200812180805.36858.fbsd.questions@rachie.is-a-geek.net> <869279445.20081218100354@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) Organization: SaftTen X-Mailer: The Bat! (v4.0.24) Professional X-Comment: RFC 2476 MSA function at smtp15.yandex.ru logged sender identity as: kes-kes X-MsgDayCount: 20 X-Yandex-KarmaStatus: 0 X-Yandex-Karma: 0 X-BornDate: 1149541200 X-Yandex-TimeMark: 1229626660 X-Yandex-Front: smtp15 X-Yandex-Spam: 1 X-IRONPORT: SCANNED X-IronPort-AV: E=Sophos;i="4.36,244,1228118400"; d="scan'208";a="21677591" X-IronPort-Anti-Spam-Result: AoUDAJwrSklNWCAUkGdsb2JhbACNHYZDAQEBAQkJDAcRA6tQWIUBCAGLVIF1CAEabg X-IronPort-Anti-Spam-Filtered: true precedence: bulk Sender: X-Chzlrs: 0 Cc: questions@freebsd.org, Mel , users@subversion.tigris.org, freebsd-questions@freebsd.org Subject: Re[4]: can not start SVNserve X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Reply-To: KES List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2008 12:01:46 -0000 =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0=B5, D= avid. DW> On Thu, Dec 18, 2008 at 3:03 AM, KES wrote: >> =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0=B5= , Mel. >> >> =D0=92=D1=8B =D0=BF=D0=B8=D1=81=D0=B0=D0=BB=D0=B8 18 =D0=B4=D0=B5=D0=BA= =D0=B0=D0=B1=D1=80=D1=8F 2008 =D0=B3., 9:05:35: >> >> M> On Wednesday 17 December 2008 21:02:07 KES wrote: >>>> =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0= =B5, Mel. >>>> >>>> =D0=92=D1=8B =D0=BF=D0=B8=D1=81=D0=B0=D0=BB=D0=B8 17 =D0=B4=D0=B5=D0= =BA=D0=B0=D0=B1=D1=80=D1=8F 2008 =D0=B3., 9:11:19: >>>> >>>> M> On Sunday 14 December 2008 16:11:17 KES wrote: >>>> >> =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82= =D0=B5, Polytropon. >>>> >> >>>> >> =D0=92=D1=8B =D0=BF=D0=B8=D1=81=D0=B0=D0=BB=D0=B8 14 =D0=B4=D0=B5= =D0=BA=D0=B0=D0=B1=D1=80=D1=8F 2008 =D0=B3., 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 1= 2 >>>> >> 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 i= t >>>> >> has not valid home directory and it is not included into wheel grou= p >>>> >> >>>> >> 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=3D"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 se= t 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=3D3690 --foreground -r >>>> /var/db/trunk"' su: Sorry >> >> M> Does this command work from the command line? >> M> If not, does it work if called as su -fm rather then su -m? >> M> If that does not work, does the primary group svn is supposed to be i= n exist? >> >> >> kes# su -m svn -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3D369= 0 --foreground -r /var/db/trunk"' >> su: Sorry >> kes# su -fm svn -c 'sh -c "/usr/local/bin/svnserve -d --listen-port=3D36= 90 --foreground -r /var/db/trunk"' >> su: Sorry >> kes# pw group show svn >> svn:*:1005: >> kes# cat /etc/group | grep svn >> svn:*:1005: >> kes# pw user show svn >> svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash >> >> As you see it does not work also with -fm option >> >> >> Also I notice next differences between FreeBDS 7.0 and 7.1 (detail below= ) >> Notice that on both system account is locked, has no valid shell and >> home directory >> on FreeBSD 7.0 when I try to login with svn user it says: This account i= s currently not available. >> on FreeBSD 7.1 when I try to login with svn user it says: su: Sorry >> Maybe there is a problem with su on FreeBSD 7.1? >> >> >> >> home# pw user show svn >> svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin >> home# su svn >> This account is currently not available. >> >> >> kes# pw user show svn >> svn:*:1005:1005::0:0:SVN user:/nonexistent:/bin/bash >> kes# su svn >> su: Sorry >> kes# pw user mod svn -s /usr/bin/nologin >> kes# pw user show svn >> svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/bin/nologin >> kes# su svn >> su: Sorry >> DW> Why don't you setup "sudo" and see if that will work for you? I've DW> always found sudo much less troublesome than "su". DW> Then, you can modify your startup script to use sudo instead of "su". Why maintainer of rc.subr use 'su' instead of 'sudo'? Maybe su has some benefit I do not know. If I edit standart rc.subr to use sudo instead of 'su' there maybe other sripts will not sturtup. --=20 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, KES mailto:kes-kes@yandex.ru ------------------------------------------------------ http://subversion.tigris.org/ds/viewMessage.do?dsForumId=3D1065&dsMessageId= =3D986891 To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.= tigris.org].