Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jun 2012 22:49:37 +0200
From:      Mel Flynn <rflynn@acsalaska.net>
To:        Eugene Grosbein <egrosbein@rdtc.ru>
Cc:        freebsd-stable@freebsd.org, Sami Halabi <sodynet1@gmail.com>
Subject:   Re: su problem
Message-ID:  <4FD3B6E1.4040405@acsalaska.net>
In-Reply-To: <4FD37CF3.109@rdtc.ru>
References:  <CAEW%2BogYrUso=nqx4dUx0rhr9XUFMmSSMP-fxNa03pgj8tNF%2B%2Bg@mail.gmail.com>	<201206091035.q59AZWFB058742@lurza.secnetix.de>	<CAOgwaMvp4AyLNdvENL9rXoP6D6w9JaTJr1ML5uxb28Tg9=W2uQ@mail.gmail.com>	<CAEW%2BogZ3H%2BgP86zcme-nuucLyDHmUo05uZ3R7Jc1hBb_7FM4gg@mail.gmail.com>	<20120609122457.GS13609@albert.catwhisker.org>	<CAEW%2BogadUQzu6k1XMXyLkqjEuq-_6gShiG5mRKbBgKMyoviAEg@mail.gmail.com>	<20120609123626.GT13609@albert.catwhisker.org> <CAEW%2BogY4zZLj=D9cKuoG58Ozn_UbXjx3GJCT_Gtd4f4zEp3D2A@mail.gmail.com> <4FD37CF3.109@rdtc.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD3B6E1.4040405>