From owner-freebsd-stable@FreeBSD.ORG Sat Jun 9 20:49:45 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CFF8D1065670 for ; Sat, 9 Jun 2012 20:49:45 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 9534B8FC1A for ; Sat, 9 Jun 2012 20:49:45 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 929C67E877; Sat, 9 Jun 2012 12:49:43 -0800 (AKDT) Message-ID: <4FD3B6E1.4040405@acsalaska.net> Date: Sat, 09 Jun 2012 22:49:37 +0200 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Eugene Grosbein References: <201206091035.q59AZWFB058742@lurza.secnetix.de> <20120609122457.GS13609@albert.catwhisker.org> <20120609123626.GT13609@albert.catwhisker.org> <4FD37CF3.109@rdtc.ru> In-Reply-To: <4FD37CF3.109@rdtc.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org, Sami Halabi Subject: Re: su problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jun 2012 20:49:45 -0000 On 9-6-2012 18:42, Eugene Grosbein wrote: > 09.06.2012 19:47, Sami Halabi пишет: >> %su - >> Password: >> load: 0.00 cmd: su 30588 [ttydcd] 0.91r 0.00u 0.00s 0% 2092k > > Perpaps, your system had no keyboard attached at boot time; > or for some other reason it booted with /dev/console being serial console > instead of vidconsole. su locks trying to access serial console > that is /dev/ttyd0 by default and has Carrier Detect flag enabled. > Hence, it waits for CD on the first serial port (miserably and hopelessly). > > You can check if it's true with "sysctl kern.console" command. > You could ask someone to boot the system with keyboard attached - > no need to type anything, though. The system should detect it > and assingn /dev/ttyv0 as /dev/console instead of /dev/ttyd0. > And "su" won't lock. Just to get this clear - are you connected via ssh and want to use su? If so, I fail to see why the keyboard would be in play as you need a pty, not a vty. Secondly, your logs mention a kbd2 that is disconnected, so where's kbd1. And finally, why did the person that connected and disconnected the keyboard leave a root login open? -- Mel