From owner-freebsd-stable@FreeBSD.ORG Mon Jun 11 13:53:34 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 E6217106567B for ; Mon, 11 Jun 2012 13:53:34 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id B04218FC16 for ; Mon, 11 Jun 2012 13:53:34 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so5877361pbb.13 for ; Mon, 11 Jun 2012 06:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3bbVtTFJWIYYq3RV7Z44t1oWdIR3nqzDPTCs5YPY8ic=; b=xbgqo0BRuhMnMFWkqp5X/A02il9KZu2RTPNPi3xIL0NxRPR/StTbDOZ7/ahXyUJZLe TC+GpopQ32HUbAXxkK+lL0jPoI5kdRUVAyggRtf1qPqS9rQR88556a0LRAK6pTH5ckQY n7ty/a81juh3xPHPIFDNyUzFvXsQCgJJ+6be1I8xqrlrkc1i4KtHrCyp4X7liwi5BC/A 7UZJgxOfNTgPAcS4u1Kc9ccuo5iNujBuC0mBPKPycokbiEDDhrBnbrAEzQwyZmtUo6SM DOtZfOk6qwqsBAuST9fPEzyWtuzWLIqPN/52D8YDaxmfIWFs8qVOIrKt1C4BjNM+TfEx 4rlA== MIME-Version: 1.0 Received: by 10.68.236.131 with SMTP id uu3mr28185524pbc.96.1339422814249; Mon, 11 Jun 2012 06:53:34 -0700 (PDT) Received: by 10.68.54.232 with HTTP; Mon, 11 Jun 2012 06:53:34 -0700 (PDT) In-Reply-To: References: <201206091035.q59AZWFB058742@lurza.secnetix.de> <20120609122457.GS13609@albert.catwhisker.org> <20120609123626.GT13609@albert.catwhisker.org> <4FD37CF3.109@rdtc.ru> Date: Mon, 11 Jun 2012 16:53:34 +0300 Message-ID: From: Sami Halabi To: Ronald Klop Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org 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: Mon, 11 Jun 2012 13:53:35 -0000 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 % 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 =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> >>> %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 consol= e >> 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.or= g > " > --=20 Sami Halabi Information Systems Engineer NMS Projects Expert FreeBSD SysAdmin Expert