unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 4350@emacsbugs.donarmstrong.com
Subject: bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error
Date: Sun, 06 Sep 2009 16:32:37 +0300	[thread overview]
Message-ID: <87ab18b3m2.fsf@iki.fi> (raw)
In-Reply-To: <87r5ukqkx8.fsf@gmx.de> (Michael Albinus's message of "Sun, 06 Sep 2009 15:09:39 +0200")

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

On 2009-09-06 15:09 (+0200), Michael Albinus wrote:

> Teemu Likonen <tlikonen@iki.fi> writes:
>> The result:
>>
>>     tramp-error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t
>>     %i.0 -1)' /root/test.txt' returns with error
>
> Could you, please, set tramp-verbose to 6, and show Tramp's debug
> buffer?

Yes, see the attachment.


[-- Attachment #2: tramp-debug.txt --]
[-- Type: text/plain, Size: 10107 bytes --]

;; GNU Emacs: 23.1.50.2 Tramp: 2.1.17-pre -*- mode: outline; -*-
16:24:48.800826 tramp-maybe-open-connection (3) # Opening connection for root@mithlond.arda.local using sudo...
16:24:48.802965 tramp-maybe-open-connection (6) # /bin/sh
16:24:48.803530 tramp-maybe-open-connection (3) # Waiting 60s for local shell to come up...
16:24:48.804009 tramp-wait-for-regexp (6) # 
$ 
16:24:48.804760 tramp-maybe-open-connection (3) # Sending command `sudo -u root -s -H -p Password: && exit || exit'
16:24:48.805042 tramp-send-command (6) # sudo -u root -s -H -p Password: && exit || exit
16:24:48.805607 tramp-process-actions (3) # Waiting for prompts from remote shell
16:24:48.910240 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
16:24:48.910563 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
16:24:48.910902 tramp-process-one-action (5) # Call `tramp-action-password'
16:24:48.911415 tramp-action-password (3) # Sending Password
16:24:56.986428 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|Sorry, try again\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
16:24:56.986825 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
16:24:56.987187 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^#$%>
]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
16:24:56.988597 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
16:24:56.988887 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
16:24:56.989176 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
16:24:56.989440 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
16:24:56.989684 tramp-process-one-action (5) # Call `tramp-action-process-alive'
16:24:56.990017 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
16:24:56.990397 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
16:24:56.990678 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|Sorry, try again\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
16:24:57.016461 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
16:24:57.016784 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^#$%>
]*[#$%>] *\(^[\[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
16:24:57.017047 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
16:24:57.017308 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
16:24:57.017565 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
16:24:57.017813 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
16:24:57.018057 tramp-process-one-action (5) # Call `tramp-action-process-alive'
16:24:57.096429 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell
16:24:57.096762 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell
16:24:57.097046 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|Sorry, try again\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
16:24:57.097349 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
16:24:57.097594 tramp-process-one-action (5) # Call `tramp-action-succeed'
16:24:57.097869 tramp-process-actions (6) # 
Password:
mithlond:/tmp# 
16:24:57.098365 tramp-maybe-open-connection (3) # Found remote shell prompt on `mithlond.arda.local'
16:24:57.098689 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\$\  PS2='' PS3='' /bin/sh
16:24:57.116781 tramp-wait-for-regexp (6) # 
$ 
16:24:57.117069 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
16:24:57.117346 tramp-send-command (6) # stty -inlcr -echo kill '^U' erase '^H'
16:24:57.134142 tramp-wait-for-regexp (6) # 
$ 
16:24:57.134469 tramp-send-command (6) # echo foo
16:24:57.135031 tramp-wait-for-regexp (6) # 
foo
$ 
16:24:57.135286 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
16:24:57.135568 tramp-send-command (6) # PS1=///6f3b80573fd9e85f476dcd2bfa22dfcb\$
16:24:57.136089 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.136487 tramp-send-command (6) # PS2=''
16:24:57.136956 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.137345 tramp-send-command (6) # PS3=''
16:24:57.137817 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.138203 tramp-send-command (6) # PROMPT_COMMAND=''
16:24:57.138678 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.139154 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
16:24:57.139424 tramp-send-command (6) # echo foo ; echo bar
16:24:57.139921 tramp-wait-for-regexp (6) # 
foo
bar
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.140416 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to `utf-8-unix' and `utf-8-unix'
16:24:57.140687 tramp-send-command (6) # set +o vi +o emacs
16:24:57.141186 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.141551 tramp-open-connection-setup-interactive-shell (5) # Checking system information
16:24:57.141881 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $? 
16:24:57.145078 tramp-wait-for-regexp (6) # 
"Linux 2.6.26-2-686"
tramp_exit_status 0
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.145619 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for `send-process-string' bug
16:24:57.145873 tramp-set-remote-path (5) # Setting $PATH environment variable
16:24:57.146211 tramp-send-command (6) # PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin; export PATH
16:24:57.146757 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.147176 tramp-send-command (6) # mesg n; biff n
16:24:57.162844 tramp-wait-for-regexp (6) # 
/bin/sh: biff: not found
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.163271 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
16:24:57.163585 tramp-send-command (6) # HISTFILE=$HOME/.tramp_history; export HISTFILE
16:24:57.164114 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.164517 tramp-send-command (6) # HISTSIZE=1; export HISTSIZE
16:24:57.165004 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.165402 tramp-send-command (6) # LC_ALL=C; export LC_ALL
16:24:57.165886 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.166283 tramp-send-command (6) # TERM=dumb; export TERM
16:24:57.166763 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.167182 tramp-send-command (6) # EMACS=t; export EMACS
16:24:57.167661 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.168065 tramp-send-command (6) # INSIDE_EMACS=23.1.50.2,tramp:2.1.17-pre; export INSIDE_EMACS
16:24:57.168554 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.169035 tramp-send-command (6) # unset correct autocorrect MAILPATH MAILCHECK MAIL HISTORY CDPATH
16:24:57.169529 tramp-wait-for-regexp (6) # 
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.169917 tramp-send-command (6) # test -e /root/test.txt 2>/dev/null; echo tramp_exit_status $? 
16:24:57.170472 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.172479 tramp-send-command (6) # test -d /root/test.txt 2>/dev/null; echo tramp_exit_status $? 
16:24:57.173191 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.174692 tramp-handle-file-truename (4) # Finding true name for `/sudo:root@mithlond.arda.local:/root/test.txt'
16:24:57.174944 tramp-handle-file-truename (5) # Check /root
16:24:57.175834 tramp-do-file-attributes-with-stat (5) # file attributes with stat: /root
16:24:57.176198 tramp-send-command (6) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /root 2>/dev/null; echo tramp_exit_status $? 
16:24:57.187447 tramp-wait-for-regexp (6) # 
(("`/root'") 10 0 0 1252209679.0 1252158637.0 1252158637.0 4096.0 "drwxr-xr-x" t 393217.0 -1)
tramp_exit_status 0
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.188125 tramp-handle-file-truename (5) # Check /root/test.txt
16:24:57.188993 tramp-do-file-attributes-with-stat (5) # file attributes with stat: /root/test.txt
16:24:57.189368 tramp-send-command (6) # \stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /root/test.txt 2>/dev/null; echo tramp_exit_status $? 
16:24:57.191612 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///6f3b80573fd9e85f476dcd2bfa22dfcb$
16:24:57.192252 tramp-barf-unless-okay (1) # File error: `\stat -c '(("%N") %h %u %g %X.0 %Y.0 %Z.0 %s.0 "%A" t %i.0 -1)' /root/test.txt' returns with error

  reply	other threads:[~2009-09-06 13:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87fxb0gewp.fsf@gmx.de>
2009-09-05 16:26 ` bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error Teemu Likonen
2009-09-06 13:09   ` Michael Albinus
2009-09-06 13:32     ` Teemu Likonen [this message]
2009-09-06 14:29       ` Michael Albinus
     [not found]       ` <mailman.6112.1252248430.2239.bug-gnu-emacs@gnu.org>
2009-09-06 15:40         ` Teemu Likonen
2009-09-06 17:35   ` bug#4350: marked as done (tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ab18b3m2.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=4350@emacsbugs.donarmstrong.com \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).