From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tyler Smith Newsgroups: gmane.emacs.bugs Subject: bug#25963: 25.2; tramp su fails Date: Fri, 03 Mar 2017 21:02:29 -0500 Message-ID: <1488592949.654804.899954472.76F68A80@webmail.messagingengine.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1488592999 19328 195.159.176.226 (4 Mar 2017 02:03:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Mar 2017 02:03:19 +0000 (UTC) To: 25963@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 04 03:03:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjz2K-0003mL-7G for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Mar 2017 03:03:08 +0100 Original-Received: from localhost ([::1]:33503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjz2O-0007Ym-L9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Mar 2017 21:03:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjz2I-0007Yh-SM for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 21:03:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjz2E-0005S0-Ao for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 21:03:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cjz2E-0005Rw-6n for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 21:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cjz2D-00032C-RJ for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 21:03:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tyler Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Mar 2017 02:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25963 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148859297211643 (code B ref -1); Sat, 04 Mar 2017 02:03:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Mar 2017 02:02:52 +0000 Original-Received: from localhost ([127.0.0.1]:39016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjz23-00031j-Ka for submit@debbugs.gnu.org; Fri, 03 Mar 2017 21:02:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjz21-00031U-78 for submit@debbugs.gnu.org; Fri, 03 Mar 2017 21:02:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjz1u-0005KZ-Oh for submit@debbugs.gnu.org; Fri, 03 Mar 2017 21:02:44 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:58157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjz1u-0005KV-LT for submit@debbugs.gnu.org; Fri, 03 Mar 2017 21:02:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjz1t-0007YK-4G for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 21:02:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjz1o-0005II-S4 for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 21:02:41 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59849) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjz1o-0005HC-JM for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2017 21:02:36 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2380020806 for ; Fri, 3 Mar 2017 21:02:30 -0500 (EST) Original-Received: from web2 ([10.202.2.212]) by compute4.internal (MEProxy); Fri, 03 Mar 2017 21:02:30 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=plantarum.ca; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= mesmtp; bh=166Mh82tm1BL5C28DfQqY51bhSU=; b=ezNCtXQZhJMDKwWXNrrVQ 9PXn1+BrzzmkUUjPUX/2+mjEXBwp64S4+QfDKOXrL6i69jJ6i7HacMz/7pPjsPdg BWj5zCwnbYXbPX2mxrXYxvfd1js+DbE+qjgkkFRmSJ6U8IWmdO+ZmqBbNDR6poCt nfj7sgMantflabZjMvQYws= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=smtpout; bh=166Mh82tm1BL5C28DfQqY51bh SU=; b=qM/Ob+TucK8bqzYs7ZAtbPsgALwybdEpYZNoqmTTril8VmH9jBkSwfM+r 8jrPWjnY+R/2kCx6trTQbpyOdhfwtw4fThi/MS//XVgKDAsw52REoV0yqjtdEU9N T0rip5OiqQUAZkDRuf5SbjOuYgmB+vxxnLgveE1vRY+78cWMGc= X-ME-Sender: Original-Received: by mailuser.nyi.internal (Postfix, from userid 99) id E7781626DB; Fri, 3 Mar 2017 21:02:29 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface - ajax-1f3b8e78 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:130145 Archived-At: Hello, I'm having a problem opening files as root.=20 >From emacs -Q, I issue `(require 'tramp)`, customize tramp-verbose to 10, and try to open a file as root: `C-x C-f /su::/etc/fstab`. I'm then prompted for my root password. Entering the password, Emacs pauses for ca. 10 seconds, then appears to open a new file called fstab, but it's not the fstab that already exists in /etc/fstab. The message about calling make-directory to create the parent directories shows up, so I've apparently opened a new file somewhere. I can't see where, exactly, as `C-x C-f`, or even `M-x shell-commmand pwd` both prompt me for the root password, and then fail.=20 Despite having turned `tramp-verbose` to the maximum value, there's not much in my *Messages* buffer after all this: Creating customization setup...done=20=20 Tramp: Opening connection for root@ using su...=20=20 Tramp: Sending command =E2=80=98exec su - root=E2=80=99=20=20 Tramp: Waiting for prompts from remote shell...=20=20 Tramp: Sending Password=20=20 Tramp: Waiting for prompts from remote shell...failed=20=20 Tramp: Opening connection for root@ using su...failed=20=20 Use M-x make-directory RET RET to create the directory and its parents=20=20 Tramp: Checking =E2=80=98vc-registered=E2=80=99 for /su:root@:= =20 /etc/fstab...failed=20=20 Use M-x make-directory RET RET to create the directory and its parents=20=20 Tramp: Opening connection for root@ using su...=20=20 Tramp: Sending command =E2=80=98exec su - root=E2=80=99=20=20 Tramp: Waiting for prompts from remote shell...=20=20 Tramp: Sending Password=20=20 Tramp: Waiting for prompts from remote shell...failed=20=20 Tramp: Opening connection for root@ using su...failed=20=20 Quit=20=20 This is all on a laptop, I'm not trying to connect to another machine.=20 Emacs 25.1.91.1, and confirmed again with Emacs 25.2.1. In GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.8) of 2017-03-03 built on onottra672626p Repository revision: 6e788ef0e262fafc014c21f4ad52cc5dc9f1715b Windowing system distributor 'The X.Org Foundation', version 11.0.11901000 System Description: Debian GNU/Linux 9.0 (stretch) Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_CA.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [2 times] user-error: End of history; no default available Load-path shadows: /home/tws/research/programs/emacs-github/lisp/net/rfc2104 hides /home/tws/research/programs/emacs-github/lisp/gnus/rfc2104 /home/tws/research/programs/emacs-github/lisp/play/landmark hides /home/tws/research/programs/emacs-github/lisp/obsolete/landmark /home/tws/research/programs/emacs-github/lisp/emacs-lisp/gulp hides /home/tws/research/programs/emacs-github/lisp/obsolete/gulp /home/tws/research/programs/emacs-github/lisp/net/eudcb-ph hides /home/tws/research/programs/emacs-github/lisp/obsolete/eudcb-ph /home/tws/research/programs/emacs-github/lisp/vc/vc-arch hides /home/tws/research/programs/emacs-github/lisp/obsolete/vc-arch Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils thingatpt time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 87181 6288) (symbols 48 19950 0) (miscs 40 53 171) (strings 32 14702 4549) (string-bytes 1 420962) (vectors 16 11979) (vector-slots 8 434895 4455) (floats 8 165 25) (intervals 56 213 4) (buffers 976 21)) Best, Tyler