From owner-freebsd-stable@FreeBSD.ORG Tue Jun 12 11:05:19 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 9C6C41065672 for ; Tue, 12 Jun 2012 11:05:19 +0000 (UTC) (envelope-from oliver.pntr@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4DED08FC0A for ; Tue, 12 Jun 2012 11:05:19 +0000 (UTC) Received: by ggnm2 with SMTP id m2so3722139ggn.13 for ; Tue, 12 Jun 2012 04:05:18 -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:content-transfer-encoding; bh=hK6Wrf8su49PUbyA4d8/egZQ0ywSBjqZMhBiYkjvvG4=; b=pJWthdbDe/tm1HJ71FvBTFeYnNX1/t4lx96UuDxkNWaNBw+tH3uVYNo8OGqT0doHGF g9xoB5nzoexDVOFcqO7POeQx+D/N58JWeWVXxvbLloHmV/7Bs3aGUcBnWSUxp/uiZqNb tm/OA3ypVRLFoN6YLyze/avT7YTqLFJpshLlNU0hNzAm+TlVUE2gAdnNthSSrjdabKuT FT6FRM87jHSA+Ji4TGbUHI94eVJeMEDU7StoJrYMlpXxF/xZikwdEMZqdylXEl36d2+s dvthr8qIHqyJegUAg+QCqVoIbTUh4L5EOXdXPCot7pLTKdMJoYHJVxpoQKiRHtG5j0ou 8Bag== MIME-Version: 1.0 Received: by 10.236.182.161 with SMTP id o21mr26288056yhm.43.1339499118768; Tue, 12 Jun 2012 04:05:18 -0700 (PDT) Received: by 10.236.46.233 with HTTP; Tue, 12 Jun 2012 04:05:17 -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: Tue, 12 Jun 2012 13:05:17 +0200 Message-ID: From: Oliver Pinter To: Ronald Klop Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 12 Jun 2012 11:05:19 -0000 truss, ktrace the sody user is member of wheel? On 6/12/12, Ronald Klop wrote: > On Mon, 11 Jun 2012 15:53:34 +0200, Sami Halabi wrot= e: > >> 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 =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 >>>> 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 >>> " >>> >> >> > _______________________________________________ > 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" >