GNU bug report logs - #25963
25.2; tramp su fails

Previous Next

Package: emacs;

Reported by: Tyler Smith <tyler <at> plantarum.ca>

Date: Sat, 4 Mar 2017 02:03:01 UTC

Severity: normal

Tags: notabug

Found in version 25.2

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Tyler Smith <tyler <at> plantarum.ca>
Cc: 25963 <at> debbugs.gnu.org
Subject: bug#25963: 25.2; tramp su fails
Date: Sat, 04 Mar 2017 14:37:11 +0100
Tyler Smith <tyler <at> plantarum.ca> writes:

> Hello,

Hi Tyler,

> 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. 
>
> Despite having turned `tramp-verbose` to the maximum value, there's not
> much in my *Messages* buffer after all this:
>
> Creating customization setup...done  
> Tramp: Opening connection for root@<myhostname> using su...  
> Tramp: Sending command ‘exec su - root’  
> Tramp: Waiting for prompts from remote shell...  
> Tramp: Sending Password  
> Tramp: Waiting for prompts from remote shell...failed  
> Tramp: Opening connection for root@<myhostname> using su...failed  

This tells us that the su command hasn't been successful. When you have
turned `tramp-verbose' to 10, there is a Tramp debug buffer. Pls show this.

> Best,
>
> Tyler

Best regards, Michael.




This bug report was last modified 8 years and 76 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.