From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#4350: tramp "sudo" and "su" broken: `\stat -c '(("%N") [...]' returns with error Date: Sun, 06 Sep 2009 16:32:37 +0300 Message-ID: <87ab18b3m2.fsf@iki.fi> References: <87my59pdc0.fsf@iki.fi> <87r5ukqkx8.fsf@gmx.de> Reply-To: Teemu Likonen , 4350@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1252244851 9066 80.91.229.12 (6 Sep 2009 13:47:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2009 13:47:31 +0000 (UTC) Cc: 4350@emacsbugs.donarmstrong.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 06 15:47:23 2009 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.50) id 1MkI5S-0007wH-P5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 15:47:23 +0200 Original-Received: from localhost ([127.0.0.1]:59538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkI5S-0005ID-2s for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Sep 2009 09:47:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkI5C-0005CJ-Ld for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 09:47:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkI58-0005Bv-1h for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 09:47:06 -0400 Original-Received: from [199.232.76.173] (port=58948 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkI57-0005Bl-RP for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 09:47:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33579) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkI57-0005Ks-67 for bug-gnu-emacs@gnu.org; Sun, 06 Sep 2009 09:47:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n86DkwVp017543; Sun, 6 Sep 2009 06:46:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n86De5Bu016419; Sun, 6 Sep 2009 06:40:05 -0700 Resent-Date: Sun, 6 Sep 2009 06:40:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Teemu Likonen Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 06 Sep 2009 13:40:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4350 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4350-submit@emacsbugs.donarmstrong.com id=B4350.125224396215530 (code B ref 4350); Sun, 06 Sep 2009 13:40:05 +0000 Original-Received: (at 4350) by emacsbugs.donarmstrong.com; 6 Sep 2009 13:32:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from kirsi1.inet.fi (mta-out.inet.fi [195.156.147.13]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n86DWeEg015527 for <4350@emacsbugs.donarmstrong.com>; Sun, 6 Sep 2009 06:32:41 -0700 Original-Received: from mithlond.arda.local (80.220.180.181) by kirsi1.inet.fi (8.5.014) id 4A77672B0130EC5E; Sun, 6 Sep 2009 16:32:38 +0300 Original-Received: from dtw by mithlond.arda.local with local (Exim 4.69) (envelope-from ) id 1MkHrB-0002Eh-On; Sun, 06 Sep 2009 16:32:37 +0300 In-Reply-To: <87r5ukqkx8.fsf@gmx.de> (Michael Albinus's message of "Sun, 06 Sep 2009 15:09:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sun, 06 Sep 2009 09:47:06 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:30821 Archived-At: --=-=-= On 2009-09-06 15:09 (+0200), Michael Albinus wrote: > Teemu Likonen 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. --=-=-= Content-Disposition: attachment; filename=tramp-debug.txt Content-Transfer-Encoding: 8bit ;; 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 --=-=-=--