From owner-freebsd-stable@FreeBSD.ORG Tue Jun 12 09:53:18 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CDDA106566C for ; Tue, 12 Jun 2012 09:53:18 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id DFD3D8FC0C for ; Tue, 12 Jun 2012 09:53:17 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1SeNmg-00026D-6i for freebsd-stable@freebsd.org; Tue, 12 Jun 2012 11:53:10 +0200 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1SeNmg-000089-2j for freebsd-stable@freebsd.org; Tue, 12 Jun 2012 11:53:10 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-stable@freebsd.org References: <201206091035.q59AZWFB058742@lurza.secnetix.de> <20120609122457.GS13609@albert.catwhisker.org> <20120609123626.GT13609@albert.catwhisker.org> <4FD37CF3.109@rdtc.ru> Date: Tue, 12 Jun 2012 11:53:08 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/11.64 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40 autolearn=disabled version=3.2.5 X-Scan-Signature: 7006e789400ccdeb5065f5d065827fb5 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: Tue, 12 Jun 2012 09:53:18 -0000 On Mon, 11 Jun 2012 15:53:34 +0200, Sami Halabi wrote: > Hi, > I opened 2 terminals with user sody. > in first i hit "su -", and supplied password, it was stcuked. > in the other I did: > > %ps xau | grep su > sody 39830 0.0 0.0 9124 1500 0 S+ 4:51PM 0:00.00 grep su > root 39812 0.0 0.0 21732 2088 1 I 4:49PM 0:00.00 su - > root 39813 0.0 0.0 21732 2108 1 I+ 4:49PM 0:00.00 su - > %procstat -kk 39812 > PID TID COMM TDNAME KSTACK > %procstat -kk 39813 > PID TID COMM TDNAME KSTACK > % > Mmmm, I'm out of options than. Maybe somebody else has a good idea. Ronald. > > Sami > > On Mon, Jun 11, 2012 at 11:14 AM, Ronald Klop > wrote: > >> On Sat, 09 Jun 2012 18:42:27 +0200, 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. >>> >>> Eugene Grosbein >>> >> >> >> Can you see what su is doing with procstat -kk ? >> >> ______________________________**_________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**stable >> To unsubscribe, send any mail to >> "freebsd-stable-unsubscribe@**freebsd.org >> " >> > >