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#11194: 24.0.95; sudo rm doesn't work with absolute directory paths on the file system Date: Fri, 20 Apr 2012 22:58:52 +0200 Message-ID: <87wr5ai0hf.fsf@gmail.com> References: <877gxrbz1p.fsf@rbdash.i-did-not-set--mail-host-address--so-tickle-me> <87obr2cwtu.fsf@gmx.de> <87ehrwdbhs.fsf@gmx.de> <87r4vwqd3q.fsf@gmx.de> <87zkajsn4e.fsf@gmx.de> <87r4vvsjor.fsf@gmx.de> <87mx6jzgr6.fsf@gmail.com> <87aa2jr0ck.fsf@gmail.com> <877gxaseud.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334955585 24575 80.91.229.3 (20 Apr 2012 20:59:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2012 20:59:45 +0000 (UTC) Cc: 11194@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 20 22:59:44 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLKvf-0002S5-Tw for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Apr 2012 22:59:44 +0200 Original-Received: from localhost ([::1]:35483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLKvf-0001tB-DQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Apr 2012 16:59:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLKvb-0001t3-Tw for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 16:59:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLKvZ-00074R-VZ for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 16:59:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLKvZ-00074K-OW for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 16:59:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SLKvz-0006PO-AN for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 17:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Apr 2012 21:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11194-submit@debbugs.gnu.org id=B11194.133495557624578 (code B ref 11194); Fri, 20 Apr 2012 21:00:02 +0000 Original-Received: (at 11194) by debbugs.gnu.org; 20 Apr 2012 20:59:36 +0000 Original-Received: from localhost ([127.0.0.1]:44727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLKvX-0006OL-Tr for submit@debbugs.gnu.org; Fri, 20 Apr 2012 16:59:36 -0400 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:40894) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLKvV-0006O9-6A for 11194@debbugs.gnu.org; Fri, 20 Apr 2012 16:59:34 -0400 Original-Received: by wibhm17 with SMTP id hm17so992965wib.15 for <11194@debbugs.gnu.org>; Fri, 20 Apr 2012 13:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Lb5U6QyWO05zS3WBr6JPiih+3QBSWwM3JR2LZv2EMfM=; b=0k+CHD5pucg9KYVfKWHfHISpkOLds9nPbEprsOY76L79KQoO/S9LXUl43t+7rQ3QP0 /OWUEacWCEUE/N8JchjpdXkhZwAhTQcQjdDqFuuRAC8YKqAI4jzU3kxGHM2i7r+cmPx9 e+4QpFZYPBM+yplgQMuAEgvW5MXrFL1x4C7Ayo0KI5dMb9JXDD8sy/GCClqN76g5KByJ 8Wkwo3hniyywmDdgqkuUmlJOMkmYPb3dZab+R2KWptA/sHzTYZiBfkbRWVSgrtGGpQEU My7vptJ/CJOXZw5omA+o4jCJ8gaNWkJesPVsR5zTqWRhvZQEN63YrQMFKbWIpuwuewq4 UjQw== Original-Received: by 10.216.137.149 with SMTP id y21mr4755012wei.110.1334955540794; Fri, 20 Apr 2012 13:59:00 -0700 (PDT) Original-Received: from thierry-MM061 (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id ff2sm326308wib.9.2012.04.20.13.58.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Apr 2012 13:58:59 -0700 (PDT) In-Reply-To: <877gxaseud.fsf@gmx.de> (Michael Albinus's message of "Fri, 20 Apr 2012 15:38:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59331 Archived-At: Hi Michael, Michael Albinus writes: > Thierry Volpiatto writes: > >>> Hi Michael, > > Hi Thierry, > >>> Michael Albinus writes: >>> >>>> And, btw, people who don't like the current behaviour are free to add >>>> >>>> alias sudo *sudo $* >>> Most people use such an alias because eshell/sudo is not working with >>> commands where files are not involved >>> e.g "eshell/sudo uname -a" or "eshell/sudo fdisk -l" etc... >>> >>> ==> ssh: connect to host localhost port 22: Connection refused This happen with a bad configuration of `tramp-default-proxies-alist': --8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" "/ssh:%h:")) --8<---------------cut here---------------end--------------->8--- With this with host set to nil, (directory-file-p "/sudo:localhost:") C-x C-f "/sudo:localhost:" eshell/sudo fail with error above. The host should be set to the real name of the host we want to connect on as root: --8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-default-proxies-alist '("\\`realhostname\\'" "\\`root\\'" "/ssh:%h:")) --8<---------------cut here---------------end--------------->8--- >> And also it is using /bin/sh which is not aware of many system >> maintenance commands mostly used as root with sudo. > > Does there exist a corresponding bug report? I'm short in time, but > maybe I could have a look on it later. No but you can reproduce easily with: $ eshell/sudo fdisk -l =>/bin/sh: fdisk: not found -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997