From owner-freebsd-questions@FreeBSD.ORG Sun Dec 14 11:22:58 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 B15F0106564A for ; Sun, 14 Dec 2008 11:22:58 +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 342488FC08 for ; Sun, 14 Dec 2008 11:22:58 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from smtp13.yandex.ru (smtp13.yandex.ru [77.88.32.83]) by forwards4.yandex.ru (Yandex) with ESMTP id 945964C5358; Sun, 14 Dec 2008 14:22:54 +0300 (MSK) Received: from 33-126-178-94.pool.ukrtel.net ([94.178.126.33]:11013 "EHLO HOMEUSER" smtp-auth: "kes-kes" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5980261AbYLNLWs (ORCPT + 2 others); Sun, 14 Dec 2008 14:22:48 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp13 X-Yandex-TimeMark: 1229253768 X-BornDate: 1149541200 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 3 X-Comment: RFC 2476 MSA function at smtp13.yandex.ru logged sender identity as: kes-kes Date: Sun, 14 Dec 2008 13:22:47 +0200 From: KES X-Mailer: The Bat! (v4.0.24) Professional Organization: SaftTen X-Priority: 3 (Normal) Message-ID: <127933703.20081214132247@yandex.ru> To: "David Weintraub" In-Reply-To: References: <42213407.20081212101341@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org, users@subversion.tigris.org Subject: Re[2]: 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: Sun, 14 Dec 2008 11:22:58 -0000 Здравствуйте, David. I have 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 on this machine sveserve startsup normally >My confusion comes from the output of PW home# pw user show svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin pw is utility to edit /etc/master.passwd home# cat /etc/master.passwd | grep svn svn:*:1003:1002::0:0:SVN user:/nonexistent:/usr/sbin/nologin >showing me that user "svn" is a valid user 'svn' user is valid user >Have you tried changing the "svn" user shell to /bin/bash telling this: .... :/nonexistent:/usr/sbin/nologin I point that anyone can not use this user to login to system. But because of 'svn' is valid system user process can low his right to 'svn' user On this HOME machine when I try run svnserve it is runned despite on 'su svn' can not login me: home# su svn This account is currently not available. home# /usr/local/etc/rc.d/svnserve start Starting svnserve. home# ps ax|grep svn 34209 ?? Ss 0:00,00 /usr/local/bin/svnserve -d --listen-port=3690 -r /usr 34211 p0 S+ 0:00,00 grep svn But on other machine with same user I can not start svnserver kes# pw user show svn svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/sbin/nologin kes# /usr/local/etc/rc.d/svnserve start Starting svnserve. 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 DW> Have you tried changing the "svn" user shell to /bin/bash and see if DW> your startup script is working. the differences between this machines only are next: home# svnserve --version svnserve, version 1.5.1 (r32289) compiled Aug 3 2008, 00:10:41 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 and kes# svnserve --version svnserve, version 1.5.2 (r32768) compiled Oct 8 2008, 21:55:55 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 DW> It would be helpful if you explained your system, setup, what you were DW> doing, and the results instead of simply showing us the output of a DW> couple of commands. It is hard to figure out exactly what you are DW> trying to do and what you have done. I try to run 'svnserve'. I just install svnserver and add user svn to run svnserve under. I do same things on 'kes' as on 'home' machine. Вы писали 14 декабря 2008 г., 7:22:39: DW> I'm a bit confused by what you're asking. I believe PW is a command DW> for editing groups and users on BSD, but I've never really used it. DW> My confusion comes from the output of PW. A typical user line has DW> seven fields, your output shows 11 fields. I am assuming that you're DW> showing me that user "svn" is a valid user. However, the shell is DW> setup to be /usr/sbin/nologin (which I assume is similar to setting DW> the shell to /etc/false). DW> Doing a "su svn" won't log you in becuase of the shell. I don't have DW> the /usr/local/etc/rc.d/svnserve script in front of me, so I can't DW> tell you what it is doing, but I suspect that since the "su svn" DW> command doesn't work, the script also does a "su svn -c $command", and DW> that is failing since your "svn" user is set to the "nologin" shell. DW> Have you tried changing the "svn" user shell to /bin/bash and see if DW> your startup script is working. DW> At least, once you've changed your shell to "/bin/bash", you'll be DW> able to sign on as user "svn", and try to start up the "svnserve" DW> program manually. Then, we can determine if the problem is with DW> "svnserve" or with your startup script. DW> It would be helpful if you explained your system, setup, what you were DW> doing, and the results instead of simply showing us the output of a DW> couple of commands. It is hard to figure out exactly what you are DW> trying to do and what you have done. DW> In theory, your computer is doing exactly what you told it to do -- no DW> more, no less, and thus there is no problem. Everything is working DW> perfectly as programmed. DW> What we need to know is what you *WANTED* it to do. Then we can figure DW> out how to get your system setup to do just that. DW> On Fri, Dec 12, 2008 at 3:13 AM, KES wrote: >> Здравствуйте, Users. >> >> What is wrong? >> kes# pw user show svn >> svn:*:1005:1005::0:0:SVN user:/nonexistent:/usr/sbin/nologin >> kes# su svn >> su: Sorry >> kes# /usr/local/etc/rc.d/svnserve start >> Starting svnserve. >> su: Sorry >> >> >> -- >> С уважением, >> KES mailto:kes-kes@yandex.ru >> >> ------------------------------------------------------ >> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=983277 >> >> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org]. >> -- С уважением, KES mailto:kes-kes@yandex.ru