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: Fri, 04 Jun 2010 09:33:23 +0200 Organization: ThierryVolpiatto Message-ID: <87aarbb6bg.fsf@tux.homenetwork> References: <87pr0fth4g.fsf@tux.homenetwork> <1taarbd9av.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275638294 14895 80.91.229.12 (4 Jun 2010 07:58:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2010 07:58:14 +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 Fri Jun 04 09:58:12 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 1OKRn4-0002eF-1I for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jun 2010 09:58:06 +0200 Original-Received: from localhost ([127.0.0.1]:60318 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKRn2-0005Qm-Hn for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Jun 2010 03:58:04 -0400 Original-Received: from [140.186.70.92] (port=35951 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKRmv-0005Py-So for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 03:57:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKRmr-00088Q-0r for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 03:57:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57783) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKRmq-00088M-Vs for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2010 03:57:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OKRSf-0006NA-JF; Fri, 04 Jun 2010 03:37: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: Fri, 04 Jun 2010 07:37: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.127563700624487 (code B ref 6302); Fri, 04 Jun 2010 07:37:01 +0000 Original-Received: (at 6302) by debbugs.gnu.org; 4 Jun 2010 07:36:46 +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 1OKRSQ-0006Mu-4q for submit@debbugs.gnu.org; Fri, 04 Jun 2010 03:36:46 -0400 Original-Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKRSO-0006Mo-Sz for 6302@debbugs.gnu.org; Fri, 04 Jun 2010 03:36:45 -0400 Original-Received: by wyf23 with SMTP id 23so624443wyf.3 for <6302@debbugs.gnu.org>; Fri, 04 Jun 2010 00:36:41 -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; bh=NKqi09RclIEt5FhbrFHK/zVbxMG4iv2qsqBApyc3qNQ=; b=el/5nZgN5Ge7cmJSwDSBSBQFwYLYFR6QwDsa3JuCREmbQv2IlTZX+DuwT6KqZ+hLhi zzqacOnbKJtV/B0fv+yPHQxN5A6cnfgqQecqltbHBAy1M8KjajR/S7KVRkOEx+3LyrbH 5S8WWVJcyLMXjznY0gEaok06TKHAwBBcRTV7M= 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; b=N8h8hdQ86VJqIRitzVBCiL1uiiKY43vapzT+UJFV8W98mlLvXXeYPuxuTbMmjeMmy3 1RIcoUi9lVsyFG10t5xcsET/PEfSMC0WBGuqcUOfxQxuk7O/5JqbadkFfapP5D77XTcQ Paq4YkzhsTCDoRG6fRN1ZiVrd64UjlHrMW7MA= Original-Received: by 10.227.143.205 with SMTP id w13mr10269377wbu.162.1275637001052; Fri, 04 Jun 2010 00:36:41 -0700 (PDT) Original-Received: from tux.homenetwork (171.78.88-79.rev.gaoland.net [79.88.78.171]) by mx.google.com with ESMTPS id z33sm7939141wbd.7.2010.06.04.00.36.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Jun 2010 00:36:39 -0700 (PDT) In-Reply-To: <1taarbd9av.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 03 Jun 2010 18:46:00 -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: Fri, 04 Jun 2010 03:37: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:37529 Archived-At: Glenn Morris writes: > merge 5300 6302 > stop > > Thierry Volpiatto wrote: > >> i am unable to log to root account with su in term or ansi-term. > > Sounds like it might be the same issue as > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5300 Yes it is the same > (I still cannot reproduce it.) I found what is not working. I use an alias in my .bashrc to force emacs shell using the word Password as prompt for su command: ,---- | alias su="LC_ALL=C su -l" `---- Emacs shell support that but term doesn't. Without that alias or when running sh instead of bash term work as expected. 1) Running term with the alias: ,---- | thierry@tux ~ $ echo $UID | 1000 | thierry@tux ~ $ su | Password: | thierry@tux ~ $ echo $UID | 1000 `---- 2) Running term without alias: ,---- | thierry@tux ~ $ echo $UID | 1000 | thierry@tux ~ $ su | Mot de passe : | tux thierry # echo $UID | 0 `---- 3) Running Emacs shell with the alias (M-x shell): ,---- | thierry@tux ~ $ echo $UID | 1000 | thierry@tux ~ $ su | Password: | tux ~ # echo $UID | 0 `---- -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/