From owner-freebsd-questions@FreeBSD.ORG Wed Jun 4 06:19:34 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E91017E2 for ; Wed, 4 Jun 2014 06:19:34 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A5F5F27D3 for ; Wed, 4 Jun 2014 06:19:34 +0000 (UTC) Received: from [89.204.137.121] (helo=localhost.my.domain) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1Ws4Xl-0000J2-F0 for freebsd-questions@freebsd.org; Wed, 04 Jun 2014 08:19:25 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id s546JMf1002141 for ; Wed, 4 Jun 2014 08:19:23 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id s546JMbd002140 for freebsd-questions@freebsd.org; Wed, 4 Jun 2014 08:19:22 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 4 Jun 2014 08:19:22 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: ssh + su problem Message-ID: <20140604061922.GA2130@La-Habana> Reply-To: Matthias Apitz References: <20140601231728.9decb4f8b733c26bf040f963@yahoo.es> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.137.121 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2014 06:19:35 -0000 El día Tuesday, June 03, 2014 a las 09:48:01PM +0000, Will Parsons escribió: > >> % su > >> Password: > >> su: Sorry > >> % > >> > > No - doesn't help. (Again, note that there's no problem su-ing > locally, only after loggin in remotely with ssh.) Try: - become root in anther vt-session locally, - issue the 'su' command, still without providing a password - look as root for the PID of the 'su' and attach something like # truss -o /tmp/su.tr -f -p PID - provide the password to the 'su' - check the file /tmp/su.tr what the 'su' complains about HIH matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign