From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#6302: 24.0.50; Unable to use su in term. Date: Thu, 10 Jun 2010 09:17:37 +0200 Organization: ThierryVolpiatto Message-ID: <87wru74ar2.fsf@tux.homenetwork> References: <87pr0fth4g.fsf@tux.homenetwork> <1taarbd9av.fsf@fencepost.gnu.org> <87aarbb6bg.fsf@tux.homenetwork> <87iq5y4znh.fsf@tux.homenetwork> <66eigflbj0.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1276154912 5843 80.91.229.12 (10 Jun 2010 07:28:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2010 07:28:32 +0000 (UTC) Cc: 6302@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 10 09:28:30 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMcBg-0008T6-GZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 09:28:28 +0200 Original-Received: from localhost ([127.0.0.1]:60083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMcBf-0004ze-8e for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 03:28:27 -0400 Original-Received: from [140.186.70.92] (port=43678 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMcBT-0004yM-09 for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 03:28:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMcBR-0001z7-NP for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 03:28:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40690) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMcBR-0001yZ-M0 for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 03:28:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OMc4T-00005s-Tc; Thu, 10 Jun 2010 03:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Jun 2010 07:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6302 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6302-submit@debbugs.gnu.org id=B6302.1276154460354 (code B ref 6302); Thu, 10 Jun 2010 07:21:01 +0000 Original-Received: (at 6302) by debbugs.gnu.org; 10 Jun 2010 07:21:00 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMc4R-00005f-Q7 for submit@debbugs.gnu.org; Thu, 10 Jun 2010 03:21:00 -0400 Original-Received: from mail-ww0-f44.google.com ([74.125.82.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMc4P-00005a-N2 for 6302@debbugs.gnu.org; Thu, 10 Jun 2010 03:20:58 -0400 Original-Received: by wwc33 with SMTP id 33so2067460wwc.3 for <6302@debbugs.gnu.org>; Thu, 10 Jun 2010 00:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=FSAm+GdUKWeytuoYr3x5mQVT5HAsKwiGjeppvBekbeM=; b=JIJE55Uz3KNr0x1isH4Zo7nFulf1vsj/UJBw1WlqOPELp21b/1sd6WYF+haD7u7f0g xdmoY+Cp5PsEPexUxFmGxL1IrBCzSgfZ/VaM38kOhNISxehxfoE6zBjS6waEPQemiAjd zeYlM7k6nsRExzLKsNnqp09wFYM5748GMnjeg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; b=IkmhUjk4/unAWA1U089ZEiplYERyoGfyJ16EOX2WipQ32JE2QiogGWPEBjdne2c7iC I7BGVbSDizWEP2Sx11jWQQCx/xU4M9RFCfapYD/So6OBH3vM7JGHromlHAz/DYwkUEaI JnXOSyOg3uc+w+7YLNDjw8xCBhZ3K3BLlQLbc= Original-Received: by 10.227.142.210 with SMTP id r18mr3181581wbu.81.1276154450258; Thu, 10 Jun 2010 00:20:50 -0700 (PDT) Original-Received: from tux.homenetwork (125.77.197-77.rev.gaoland.net [77.197.77.125]) by mx.google.com with ESMTPS id u19sm18195918wbc.20.2010.06.10.00.20.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Jun 2010 00:20:49 -0700 (PDT) In-Reply-To: <66eigflbj0.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 10 Jun 2010 01:08:51 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 10 Jun 2010 03:21:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37646 Archived-At: Glenn Morris writes: > Thierry Volpiatto wrote: > >>> thierry@tux ~ $ su -l >> Fail. (same with --login and -) >> >> So it's clear that come from the -l option of su. > > Is there anything odd in root's ~/.bash_profile (or whatever the > appropriate config file for root login shells is)? I have no .bash* files in /root. > Does it work to su -l to a non-root user? I have not such user, only me and root, so i can't test. I could create a new user just for test purpose, but i think it's not useful, if it was a problem related to general config of my system, other shell would not work, but it is not the case, M-x shell and eshell can su ==> root without problems. > One with no shell config files? > > Can you put some debug statements in the shell config files to find > out if they get sourced at all? If so, where do things go wrong? Yes, .bashrc and .bash_profile are sourced. >>> Also, can you M-x trace-function-background RET term-emulate-terminal >>> RET, reproduce the problem and then show us the *trace-output*? >> I can't find function `term-emulate-terminal'. > > ? It's in term.el. Ok i have it now. ,---- | ====================================================================== | 1 -> term-emulate-terminal: proc=# str="Password: " | 1 <- term-emulate-terminal: t | ====================================================================== | 1 -> term-emulate-terminal: proc=# str=" | " | 1 <- term-emulate-terminal: t | ====================================================================== | 1 -> term-emulate-terminal: proc=# str="//home/thierry | thierry@tux ~ $ " | 1 <- term-emulate-terminal: t | ====================================================================== `---- -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/