From owner-freebsd-stable@FreeBSD.ORG Sat Jun 9 18:45:03 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 B8A1D106564A for ; Sat, 9 Jun 2012 18:45:03 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6DD4A8FC12 for ; Sat, 9 Jun 2012 18:45:03 +0000 (UTC) Received: by obcni5 with SMTP id ni5so5446790obc.13 for ; Sat, 09 Jun 2012 11:45:03 -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=oDzUwQd0xUNRxDbQh13nYVL35O8iCEWF6cJbROYc2Bo=; b=d2NLY5KLkKnePNNeGohMV6NJESNBxoh04Y/QDnQyqebxjhKpen0NNcmeQKJBSMh99m uvXjhddUMkUy5FuUtYdPIp9Ay9LNLzMQTmD7GPBjThrFJe9JVhWOHwmOh6zzZABFMzCU 3NlaYV9TPBpQElDSx8gF8QnAJLByPfeqh6t6hQclj2eg6Z0k6nS2WxfWFNFU4XrxiTb4 vNZSv+Af+SkYB1sDM0cqN8TqEn0PAKJHA92dc5tBi3vsKdVdg2HxYGvvoRNWpoCdlDW2 ULUUI0utxmfB4MPKpx6vx5fgzW0CNba8i8nR1Y3WWytwc2TDogp3vpefXqT0OABfus6m CU+w== MIME-Version: 1.0 Received: by 10.60.19.196 with SMTP id h4mr11178822oee.56.1339267503068; Sat, 09 Jun 2012 11:45:03 -0700 (PDT) Received: by 10.182.44.101 with HTTP; Sat, 9 Jun 2012 11:45:03 -0700 (PDT) In-Reply-To: <4FD37CF3.109@rdtc.ru> References: <201206091035.q59AZWFB058742@lurza.secnetix.de> <20120609122457.GS13609@albert.catwhisker.org> <20120609123626.GT13609@albert.catwhisker.org> <4FD37CF3.109@rdtc.ru> Date: Sat, 9 Jun 2012 21:45:03 +0300 Message-ID: From: Sami Halabi To: Eugene Grosbein Content-Type: text/plain; charset=KOI8-R 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: Sat, 09 Jun 2012 18:45:03 -0000 Hi, %sysctl kern.console kern.console: ttyv0,dcons,/dcons,ttyv0,uart,ucom, %tail /var/log/messages Jun 7 19:54:35 vps16 kernel: Trying to mount root from ufs:/dev/da0s1a Jun 7 19:54:36 vps16 kernel: bge0: link state changed to UP Jun 7 20:18:04 vps16 kernel: ugen0.2: at usbus0 Jun 7 20:18:04 vps16 kernel: ukbd0: on usbus0 Jun 7 20:18:04 vps16 kernel: kbd2 at ukbd0 Jun 7 20:18:05 vps16 kernel: uhid0: on usbus0 Jun 7 20:19:37 vps16 login: ROOT LOGIN (root) ON ttyv1 Jun 7 20:21:19 vps16 kernel: ugen0.2: at usbus0 (disconnected) Jun 7 20:21:19 vps16 kernel: ukbd0: at uhub0, port 1, addr 2 (disconnected= ) Jun 7 20:21:19 vps16 kernel: uhid0: at uhub0, port 1, addr 2 (disconnected= ) % the system was loaded with keyboard and disconnected later if i understand the logs... New ideas are appreciated, and thanks in advance, Sami On Sat, Jun 9, 2012 at 7:42 PM, Eugene Grosbein wrote: > 09.06.2012 19:47, Sami Halabi =D0=C9=DB=C5=D4: > > %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 > --=20 Sami Halabi Information Systems Engineer NMS Projects Expert FreeBSD SysAdmin Expert