From owner-freebsd-stable@FreeBSD.ORG Sat Jun 9 21:11:23 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 02B401065672 for ; Sat, 9 Jun 2012 21:11:23 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 61C088FC12 for ; Sat, 9 Jun 2012 21:11:22 +0000 (UTC) Received: by lbon10 with SMTP id n10so2537375lbo.13 for ; Sat, 09 Jun 2012 14:11:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=cFys19hUg7Clnp3aesFVC8O5KsN3QqL5rne7uCuwBX8=; b=pEOmw2+/X1MkoZg7txOheqQzMd+sCgwUcnA50MlkEqK5IzHzvHaOXbDNii9EqJ7Drn V9X3C7bOVd4MuANMclfmbkdnMu/6sLX14vAhCImNavUXT+TS1fiahjoums1onTwh7wKp Xj75dvCAjanOX6udcu53m6BUpOk0OXU5YjCaq3PJzD1Za3XQHIz4UeUfzxhP4QZjDG3b nHTH4+J1qxuJVyEF5Ht6aOfytUvNa8PXxq2FHKEi3xO4cFWmIIfgsZTggaImia3V1my3 oo3Fe7EwldEIYSH3Lv/TQMpadWqeg1PsBmFd5tbCJky72dY2ZZgrWtHJQw3IMELkVwWx nV0w== Received: by 10.112.29.233 with SMTP id n9mr1165454lbh.91.1339276280969; Sat, 09 Jun 2012 14:11:20 -0700 (PDT) Received: from zont-osx.local (ppp95-165-147-222.pppoe.spdop.ru. [95.165.147.222]) by mx.google.com with ESMTPS id i4sm5892843lbg.17.2012.06.09.14.11.19 (version=SSLv3 cipher=OTHER); Sat, 09 Jun 2012 14:11:20 -0700 (PDT) Message-ID: <4FD3BBF6.5030909@zonov.org> Date: Sun, 10 Jun 2012 01:11:18 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Sami Halabi References: <201206091035.q59AZWFB058742@lurza.secnetix.de> <20120609122457.GS13609@albert.catwhisker.org> <20120609123626.GT13609@albert.catwhisker.org> <4FD37CF3.109@rdtc.ru> <4D5EE1C7-9297-415B-A5A0-45801B8A0182@longcount.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQk4yegqje5Jtx5CF6SK+9iN/EejsGL/v7/V/EZ2DuBxmxo6lKjTS7SOn6VMbVWBixo2qO57 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 21:11:23 -0000 sudo is not installed? On 6/10/12 12:22 AM, Sami Halabi wrote: > I already posted that: > > %ls -l /usr/bin/su > -r-sr-xr-x 1 root wheel 16944 Jun 7 19:47 /usr/bin/su > % > > Sami > > On Sat, Jun 9, 2012 at 10:57 PM, Mark Saad wrote: > >> >> >> >> On Jun 9, 2012, at 2:45 PM, Sami Halabi wrote: >> >>> 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:>> 0/0, rev 1.10/2.50, addr 2> on usbus0 >>> Jun 7 20:18:04 vps16 kernel: kbd2 at ukbd0 >>> Jun 7 20:18:05 vps16 kernel: uhid0:>> 0/0, rev 1.10/2.50, addr 2> 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 пишет: >>>>> %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 >>>> >>> >>> >>> >>> -- >>> Sami Halabi >>> Information Systems Engineer >>> NMS Projects Expert >>> FreeBSD SysAdmin Expert >>> _______________________________________________ >>> 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 >> " >> >> Check the permissions on the su binary it could be missing the suid but. >> >> --- >> Mark saad | mark.saad@longcount.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" >> > > > -- Andrey Zonov