[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tramp (2.2.6); When editing files using tramp it changes file owner
From: |
Sergey Pashinin |
Subject: |
tramp (2.2.6); When editing files using tramp it changes file owner |
Date: |
Thu, 17 Jan 2013 23:59:22 +0400 |
When editing a file like:
/sudo:localhost:/etc/.../postgresql.conf
which owner is "postgres":
-rw-r--r-- 1 postgres postgres 19307 Jan 17 23:41 postgresql.conf
and then save it, emacs changes file owner:
-rw-r--r-- 1 root root 19308 Jan 17 23:42 postgresql.conf
The owner should remain the same, no?
Emacs : GNU Emacs 24.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12)
of 2012-09-22 on batsu, modified by Debian
Package: tramp (2.2.6)
current state:
==============
(setq
backup-by-copying nil
backup-by-copying-when-linked nil
backup-by-copying-when-mismatch t
backup-by-copying-when-privileged-mismatch 200
backup-directory-alist '(("\\`/\\([^[/|:]+\\|[^/|]+]\\):")
("." . "~/.emacs.backups"))
file-name-handler-alist
'(("\\(?:\\.dz\\|\\.xz\\|\\.lzma\\|\\.lz\\|\\.g?z\\|\\.\\(?:tgz\\|svgz\\|sifz\\)\\|\\.tbz2?\\|\\.bz2\\|\\.Z\\)\\(?:~\\|\\.~[-[:alnum:]:address@hidden(?:~[[:digit:]]+\\)?~\\)?\\'"
. jka-compr-handler)
("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" . epa-file-handler)
("\\`/[^/]*\\'" .
tramp-completion-file-name-handler)
("\\`/\\([^[/|:]+\\|[^/|]+]\\):" . tramp-file-name-handler)
("" . openwith-file-handler)
("\\`/:" .
file-name-non-special))
password-cache t
password-cache-expiry 16
remote-file-name-inhibit-cache 10
shell-prompt-pattern "^[^#$%>\n]*[#$%>] *"
tramp-actions-before-shell '((tramp-login-prompt-regexp tramp-action-login)
(tramp-password-prompt-regexp tramp-action-password)
(tramp-wrong-passwd-regexp
tramp-action-permission-denied)
(shell-prompt-pattern
tramp-action-succeed)
(tramp-shell-prompt-pattern tramp-action-succeed)
(tramp-yesno-prompt-regexp tramp-action-yesno)
(tramp-yn-prompt-regexp tramp-action-yn)
(tramp-terminal-prompt-regexp tramp-action-terminal)
(tramp-process-alive-regexp tramp-action-process-alive))
tramp-actions-copy-out-of-band '((tramp-password-prompt-regexp
tramp-action-password)
(tramp-wrong-passwd-regexp
tramp-action-permission-denied)
(tramp-copy-failed-regexp
tramp-action-permission-denied)
(tramp-process-alive-regexp
tramp-action-out-of-band)
)
tramp-auto-save-directory nil
tramp-backup-directory-alist nil
tramp-bug-report-address "address@hidden"
tramp-cache-data '((["ssh" "root" "host" nil nil]
("uname" "Linux 3.2.0-35-generic")
("test" "test")
("remote-path"
("/bin" "/usr/bin" "/sbin"
"/usr/sbin" "/usr/local/bin"
"/usr/local/sbin")
)
("remote-shell" "/bin/sh") ("busybox"
nil) ("stat" "\\stat")
("file-exists" "test -e") ("id"
"/usr/bin/id") ("gid-integer" 0)
("perl-file-spec" t)
("perl-cwd-realpath" t) ("perl" "\\perl")
("readlink" "\\readlink") ("ls"
"/bin/ls --color=never")
("ls-dired" t) ("~" "/root")
("uid-integer" 0) ("trash" nil))
(["sudo" "root" "localhost" nil nil]
("uname" "Linux 3.5.0-21-generic")
("test" "test")
("remote-path"
("/bin" "/usr/bin" "/sbin"
"/usr/sbin" "/usr/local/bin"
"/usr/local/sbin")
)
("remote-shell" "/bin/sh") ("busybox"
nil) ("stat" "\\stat")
("file-exists" "test -e") ("id"
"/usr/bin/id") ("gid-integer" 0)
("perl-file-spec" t)
("perl-cwd-realpath" t) ("perl" "\\perl")
("readlink" "\\readlink")
("uid-integer" 0)
("ls" "/bin/ls --color=never")
("ls-dired" t) ("~root" "/root"))
)
tramp-cache-data-changed nil
tramp-cache-unload-hook '(#[nil "\300\301\302\"\207"
[remove-hook
kill-emacs-hook
tramp-dump-connection-properties]
3]
#[nil
"\300\301\302\"\210\300\303\302\"\210\300\304\302\"\207"
[remove-hook
before-revert-hook
tramp-flush-file-function eshell-pre-command-hook
kill-buffer-hook]
3]
)
tramp-chunksize nil
;; Variable encoded due to non-printable characters.
tramp-color-escape-sequence-regexp (base64-decode-string "G1tbOzAtOV0rbQ==")
tramp-completion-file-name-handler-alist '((file-name-all-completions .
tramp-completion-handle-file-name-all-completions)
(file-name-completion .
tramp-completion-handle-file-name-completion)
)
tramp-completion-file-name-regexp "\\`/[^/]*\\'"
tramp-completion-file-name-regexp-separate "\\`/\\([[][^]]*\\)?\\'"
tramp-completion-file-name-regexp-unified "\\`/[^/]*\\'"
tramp-completion-file-name-regexp-url
"\\`/[^/:]+\\(:\\(/\\(/[^/]*\\)?\\)?\\)?\\'"
tramp-completion-function-alist '(("fcp" (tramp-parse-shosts
"~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("pscp"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("plink1"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("plink"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("ksu"
(tramp-parse-passwd "/etc/passwd"))
("sudo"
(tramp-parse-passwd "/etc/passwd"))
("su"
(tramp-parse-passwd "/etc/passwd"))
("telnet"
(tramp-parse-hosts "/etc/hosts"))
("sshx"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("ssh2_old"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("ssh1_old"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("ssh2"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("ssh1"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("ssh"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("rsyncc"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("rsync"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("sftp"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("scpx"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("scpc"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("scp2"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("scp1"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
("scp"
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
)
tramp-completion-function-alist-putty '((tramp-parse-putty
"~/.putty/sessions"))
tramp-completion-function-alist-rsh '((tramp-parse-rhosts "/etc/hosts.equiv")
(tramp-parse-rhosts "~/.rhosts"))
tramp-completion-function-alist-ssh '((tramp-parse-rhosts "/etc/hosts.equiv")
(tramp-parse-rhosts "/etc/shosts.equiv")
(tramp-parse-shosts "/etc/ssh_known_hosts")
(tramp-parse-sconfig "/etc/ssh_config")
(tramp-parse-shostkeys "/etc/ssh2/hostkeys")
(tramp-parse-sknownhosts
"/etc/ssh2/knownhosts")
(tramp-parse-rhosts "~/.rhosts")
(tramp-parse-rhosts "~/.shosts")
(tramp-parse-shosts "~/.ssh/known_hosts")
(tramp-parse-sconfig "~/.ssh/config"))
tramp-completion-function-alist-su '((tramp-parse-passwd "/etc/passwd"))
tramp-completion-function-alist-telnet '((tramp-parse-hosts "/etc/hosts"))
tramp-completion-mode nil
tramp-completion-reread-directory-timeout 10
tramp-copy-failed-regexp "\\(.+: \\(No such file or directory\\|Permission
denied\\|is a directory\\|not a regular file\\)\\)\\s-*"
tramp-copy-size-limit 10240
tramp-current-connection nil
tramp-current-host nil
tramp-current-method nil
tramp-current-user nil
tramp-debug-outline-regexp "[0-9]+:[0-9]+:[0-9]+\\.[0-9]+ [a-z0-9-]+
(\\([0-9]+\\)) #"
tramp-default-host "localhost"
tramp-default-method "ssh"
tramp-default-method-alist '((nil "%" "smb")
("\\`\\(127\\.0\\.0\\.1\\|::1\\|localhost6?\\|ubuntu-station\\)\\'"
"\\`root\\'" "su")
(nil
"\\`\\(anonymous\\|ftp\\)\\'" "ftp")
("\\`ftp\\." nil
"ftp"))
tramp-default-proxies-alist nil
tramp-default-user "root"
tramp-default-user-alist '(("\\`smb\\'" nil nil)
("\\`\\(?:fcp\\|krlogin\\|r\\(?:cp\\|emcp\\|sh\\)\\|telnet\\)\\'" nil "xdev")
("\\`\\(?:ksu\\|su\\(?:do\\)?\\)\\'" nil "root")
("\\`\\(?:socks\\|tunnel\\)\\'" nil "xdev")
("\\`synce\\'" nil nil))
tramp-devices 0
tramp-domain-regexp "[-a-zA-Z0-9_.]+"
tramp-echo-mark "_echo"
tramp-echo-mark-marker "_echo"
tramp-echo-mark-marker-length 5
tramp-echoed-echo-mark-regexp "_echo\\(\\( \\)?\\)\\{5\\}"
tramp-efs-method "ftp"
tramp-encoding-command-interactive "-i"
tramp-encoding-command-switch "-c"
tramp-encoding-shell "/bin/bash"
tramp-end-of-output "///252fb4121a0d7d951c44fa93e9fd1ba4#$"
tramp-file-mode-type-map '((0 . "-") (1 . "p") (2 . "c") (3 . "m") (4 . "d")
(5 . "?") (6 . "b") (7
. "?") (8 . "-") (9 . "n")
(10 . "l") (11 . "?")
(12 . "s") (13 . "D") (14 . "w"))
tramp-file-name-regexp "\\`/\\([^[/|:]+\\|[^/|]+]\\):"
tramp-file-name-regexp-separate "\\`/\\[.*\\]"
tramp-file-name-regexp-unified "\\`/\\([^[/|:]+\\|[^/|]+]\\):"
tramp-file-name-regexp-url "\\`/[^/|:]+://"
tramp-file-name-structure
'("^/\\(\\(?:\\(?:\\([a-zA-Z_0-9-]+\\):\\)?\\(?:\\([^/|:
]+\\)@\\)?\\(\\(?:[a-zA-Z0-9_.-]+\\|\\[\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+]\\)\\(?:#[0-9]+\\)?\\)?|\\)+\\)?\\(?:\\([a-zA-Z_0-9-]+\\):\\)?\\(?:\\([^/|:
]+\\)@\\)?\\(\\(?:[a-zA-Z0-9_.-]+\\|\\[\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+]\\)\\(?:#[0-9]+\\)?\\)?:\\(.*$\\)"
5 6 7 8 1)
tramp-foreign-file-name-handler-alist '((tramp-smb-file-name-p .
tramp-smb-file-name-handler)
(tramp-gvfs-file-name-p .
tramp-gvfs-file-name-handler)
(tramp-ftp-file-name-p .
tramp-ftp-file-name-handler)
(identity . tramp-sh-file-name-handler))
tramp-ftp-method "ftp"
tramp-gvfs-methods '("dav" "davs" "obex" "synce")
tramp-gw-socks-method "socks"
tramp-gw-tunnel-method "tunnel"
tramp-half-a-year '(241 17024)
tramp-handle-file-local-copy-hook nil
tramp-handle-write-region-hook nil
tramp-host-regexp "[a-zA-Z0-9_.-]+"
tramp-host-with-port-regexp "\\([a-zA-Z0-9_.-]+\\)#\\([0-9]+\\)"
tramp-initial-end-of-output "#$ "
tramp-inline-compress-commands '(("gzip" "gzip -d") ("bzip2" "bzip2 -d")
("xz" "xz
-d") ("compress" "compress -d"))
tramp-inline-compress-start-size 4096
tramp-inodes 0
tramp-ipv6-regexp "\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+"
tramp-local-coding-commands '((b64 base64-encode-region base64-decode-region)
(uu
tramp-uuencode-region uudecode-decode-region)
(pack
"perl -e
'binmode STDIN; binmode STDOUT; print pack(q{u*}, join q{}, <>)'" "perl -e
'binmode STDIN; binmode STDOUT; print unpack(q{u*}, join q{}, <>)'")
)
tramp-local-end-of-line "\n"
tramp-local-host-regexp
"\\`\\(127\\.0\\.0\\.1\\|::1\\|localhost6?\\|ubuntu-station\\)\\'"
tramp-localname-regexp ".*$"
tramp-locked nil
tramp-locker nil
tramp-login-prompt-regexp ".*ogin\\( .*\\)?: *"
tramp-message-show-message t
tramp-message-show-progress-reporter-message t
tramp-method-regexp "[a-zA-Z_0-9-]+"
tramp-methods '(("smb" (tramp-remote-shell "") (tramp-tmpdir "/C$/Temp"))
("fcp" (tramp-login-program "fsh")
(tramp-login-args (("%h") ("-l" "%u") ("sh"
"-i")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-i") ("-c"))
(tramp-copy-program "fcp")
(tramp-copy-args (("-p" "%k")))
(tramp-copy-keep-date t))
("psftp" (tramp-login-program "plink")
(tramp-login-args (("-l" "%u") ("-P" "%p")
("-ssh") ("%h")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "pscp")
(tramp-copy-args
(("-l" "%u") ("-P" "%p") ("-sftp") ("-p"
"%k") ("-q") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t))
("pscp" (tramp-login-program "plink")
(tramp-login-args (("-l" "%u") ("-P" "%p")
("-ssh") ("%h")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "pscp")
(tramp-copy-args
(("-l" "%u") ("-P" "%p") ("-scp") ("-p"
"%k") ("-q") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-default-port 22))
("plinkx" (tramp-login-program "plink")
(tramp-login-args
(("-load") ("%h") ("-t")
("env 'TERM=dumb' 'PROMPT_COMMAND='
'PS1=#$ '") ("/bin/sh"))
)
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))
("plink1" (tramp-login-program "plink")
(tramp-login-args (("-l" "%u") ("-P" "%p")
("-1" "-ssh") ("%h")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-default-port 22))
("plink" (tramp-login-program "plink")
(tramp-login-args (("-l" "%u") ("-P" "%p")
("-ssh") ("%h")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-default-port 22))
("krlogin" (tramp-login-program "krlogin")
(tramp-login-args (("%h") ("-l" "%u") ("-x")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))
("ksu" (tramp-login-program "ksu")
(tramp-login-args (("%u") ("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))
("sudo" (tramp-login-program "sudo")
(tramp-login-args (("-u" "%u") ("-s") ("-H")
("-p" "Password:")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))
("su" (tramp-login-program "su")
(tramp-login-args (("-") ("%u")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))
("telnet" (tramp-login-program "telnet")
(tramp-login-args (("%h") ("%p")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-default-port 23))
("sshx" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-e" "none") ("-t"
"-t") ("%h")
("/bin/sh"))
)
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("ssh2" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-2") ("-e"
"none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("ssh1" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-1") ("-e"
"none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("ssh" (tramp-login-program "ssh")
(tramp-login-args (("-l" "%u") ("-p" "%p")
("-e" "none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("remsh" (tramp-login-program "remsh")
(tramp-login-args (("%h") ("-l" "%u")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))
("rsh" (tramp-login-program "rsh")
(tramp-login-args (("%h") ("-l" "%u")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c")))
("rsyncc" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-o"
"address@hidden:%%p")
("-o" "ControlMaster=yes") ("-e"
"none") ("%h"))
)
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "rsync")
(tramp-copy-args (("-t" "%k") ("-r")))
(tramp-copy-env
(("RSYNC_RSH")
("ssh -o address@hidden:%%p -o
ControlMaster=auto"))
)
(tramp-copy-keep-date t)
(tramp-copy-keep-tmpfile t)
(tramp-copy-recursive t))
("rsync" (tramp-login-program "ssh")
(tramp-login-args (("-l" "%u") ("-p" "%p")
("-e" "none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "rsync")
(tramp-copy-args (("-e" "ssh") ("-t" "%k")
("-r")))
(tramp-copy-keep-date t)
(tramp-copy-keep-tmpfile t)
(tramp-copy-recursive t))
("sftp" (tramp-login-program "ssh")
(tramp-login-args (("-l" "%u") ("-p" "%p")
("-e" "none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "sftp"))
("scpx" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-e" "none") ("-t"
"-t") ("%h")
("/bin/sh"))
)
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "scp")
(tramp-copy-args (("-P" "%p") ("-p" "%k")
("-q") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("scpc" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-o"
"address@hidden:%%p")
("-o" "ControlMaster=yes") ("-e"
"none") ("%h"))
)
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "scp")
(tramp-copy-args
(("-P" "%p") ("-p" "%k") ("-q") ("-r")
("-o" "address@hidden:%%p") ("-o"
"ControlMaster=auto"))
)
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("scp2" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-2") ("-e"
"none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "scp")
(tramp-copy-args (("-2") ("-P" "%p") ("-p"
"%k") ("-q") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("scp1" (tramp-login-program "ssh")
(tramp-login-args
(("-l" "%u") ("-p" "%p") ("-1") ("-e"
"none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "scp")
(tramp-copy-args (("-1") ("-P" "%p") ("-p"
"%k") ("-q") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("scp" (tramp-login-program "ssh")
(tramp-login-args (("-l" "%u") ("-p" "%p")
("-e" "none") ("%h")))
(tramp-async-args (("-q")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "scp")
(tramp-copy-args (("-P" "%p") ("-p" "%k")
("-q") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-gw-args
(("-o" "GlobalKnownHostsFile=/dev/null")
("-o" "UserKnownHostsFile=/dev/null")
("-o" "StrictHostKeyChecking=no"))
)
(tramp-default-port 22))
("remcp" (tramp-login-program "remsh")
(tramp-login-args (("%h") ("-l" "%u")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "rcp") (tramp-copy-args
(("-p" "%k")))
(tramp-copy-keep-date t))
("rcp" (tramp-login-program "rsh")
(tramp-login-args (("%h") ("-l" "%u")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "rcp") (tramp-copy-args
(("-p" "%k") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t))
("synce") ("obex") ("davs") ("dav") ("ftp"))
tramp-mode t
tramp-operation-not-permitted-regexp "\\(preserving times.*\\|set
mode\\):\\s-*\\(Operation not permitted\\)"
tramp-parse-time-months '(("jan" . 1) ("feb" . 2) ("mar" . 3) ("apr" . 4)
("may" . 5) ("jun" . 6)
("jul" . 7) ("aug" . 8)
("sep" . 9) ("oct" . 10)
("nov" . 11) ("dec" . 12))
;; Variable encoded due to non-printable characters.
tramp-password-prompt-regexp (base64-decode-string
"Xi4qXChbcFBdYXNzd29yZFx8W3BQXWFzc3BocmFzZVwpLio6AD8gKg==")
tramp-perl-decode "%s -e '\n# This script contributed by Juanma Barranquero
<address@hidden>.\n# Copyright (C) 2002-2012 Free Software Foundation,
Inc.\nuse strict;\n\nmy %%trans = do {\n my $i = 0;\n map {($_,
substr(unpack(q(B8), chr $i++), 2, 6))}\n split //,
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/)\n};\n\nmy
%%bytes = map {(unpack(q(B8), chr $_), chr $_)} 0 ..
255;\n\nbinmode(\\*STDOUT);\n\n# We are going to accumulate into $pending to
accept any line length\n# (we do not check they are <= 76 chars as the RFC
says)\nmy $pending = q();\n\nwhile (my $data = <STDIN>) {\n chomp $data;\n\n
# If we find one or two =, we have reached the end and\n # any following
data is to be discarded\n my $finished = $data =~ s/(==?).*/$1/;\n
$pending .= $data;\n\n my $len = length($pending);\n my $chunk =
substr($pending, 0, $len & ~3);\n $pending = substr($pending, $len & ~3 +
1);\n\n # Easy method: translate from chars to (pregenerated) six-bit
packets, join,\n # split in 8-bit chunks and convert back to char.\n
print join q(),\n map $bytes{$_},\n ((join q(), map {$trans{$_} ||
q()} split //, $chunk) =~ /......../g);\n\n last if $finished;\n}'
2>/dev/null"
tramp-perl-decode-with-module "%s -MMIME::Base64 -0777 -ne 'print
decode_base64($_)' 2>/dev/null"
tramp-perl-directory-files-and-attributes "%s -e '\nchdir($ARGV[0]) or
printf(\"\\\"Cannot change to $ARGV[0]: $''!''\\\"\\n\"),
exit();\nopendir(DIR,\".\") or printf(\"\\\"Cannot open directory $ARGV[0]:
$''!''\\\"\\n\"), exit();address@hidden = readdir(DIR);\nclosedir(DIR);\n$n =
scalar(@list);\nprintf(\"(\\n\");\nfor($i = 0; $i < $n; $i++)\n{\n $filename
= $list[$i];\n @stat = lstat($filename);\n if (($stat[2] & 0170000) ==
0120000)\n {\n $type = readlink($filename);\n $type =
\"\\\"$type\\\"\";\n }\n elsif (($stat[2] & 0170000) == 040000)\n {\n
$type = \"t\";\n }\n else\n {\n $type = \"nil\"\n };\n
$uid = ($ARGV[1] eq \"integer\") ? $stat[4] : \"\\\"\" . getpwuid($stat[4])
. \"\\\"\";\n $gid = ($ARGV[1] eq \"integer\") ? $stat[5] : \"\\\"\" .
getgrgid($stat[5]) . \"\\\"\";\n printf(\n \"(\\\"%%s\\\" %%s %%u %%s
%%s (%%u %%u) (%%u %%u) (%%u %%u) %%u.0 %%u t (%%u . %%u) (%%u . %%u))\\n\",\n
$filename,\n $type,\n $stat[3],\n $uid,\n
$gid,\n $stat[8] >> 16 & 0xffff,\n $stat[8] & 0xffff,\n
$stat[9] >> 16 & 0xffff,\n $stat[9] & 0xffff,\n $stat[10] >> 16 &
0xffff,\n $stat[10] & 0xffff,\n $stat[7],\n $stat[2],\n
$stat[1] >> 16 & 0xffff,\n $stat[1] & 0xffff,\n $stat[0] >>
16 & 0xffff,\n $stat[0] & 0xffff);\n}\nprintf(\")\\n\");' \"$1\" \"$2\"
2>/dev/null"
tramp-perl-encode "%s -e '\n# This script contributed by Juanma Barranquero
<address@hidden>.\n# Copyright (C) 2002-2012 Free Software Foundation,
Inc.\nuse strict;\n\nmy %%trans = do {\n my $i = 0;\n map
{(substr(unpack(q(B8), chr $i++), 2, 6), $_)}\n split //,
q(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/);\n};\n\nbinmode(\\*STDIN);\n\n#
We read in chunks of 54 bytes, to generate output lines\n# of 72 chars (plus
end of line)\n$/ = \\54;\n\nwhile (my $data = <STDIN>) {\n my $pad =
q();\n\n # Only for the last chunk, and only if did not fill the last
three-byte packet\n if (eof) {\n my $mod = length($data) %% 3;\n
$pad = q(=) x (3 - $mod) if $mod;\n }\n\n # Not the fastest method, but
it is simple: unpack to binary string, split\n # by groups of 6 bits and
convert back from binary to byte; then map into\n # the translation table\n
print\n join q(),\n map($trans{$_},\n
(substr(unpack(q(B*), $data) . q(00000), 0, 432) =~ /....../g)),\n
$pad,\n qq(\\n);\n}' 2>/dev/null"
tramp-perl-encode-with-module "%s -MMIME::Base64 -0777 -ne 'print
encode_base64($_)' 2>/dev/null"
tramp-perl-file-attributes "%s -e 'address@hidden = lstat($ARGV[0]);\nif
(address@hidden) {\n print \"nil\\n\";\n exit 0;\n}\nif (($stat[2] &
0170000) == 0120000)\n{\n $type = readlink($ARGV[0]);\n $type =
\"\\\"$type\\\"\";\n}\nelsif (($stat[2] & 0170000) == 040000)\n{\n $type =
\"t\";\n}\nelse\n{\n $type = \"nil\"\n};\n$uid = ($ARGV[1] eq \"integer\") ?
$stat[4] : \"\\\"\" . getpwuid($stat[4]) . \"\\\"\";\n$gid = ($ARGV[1] eq
\"integer\") ? $stat[5] : \"\\\"\" . getgrgid($stat[5]) . \"\\\"\";\nprintf(\n
\"(%%s %%u %%s %%s (%%u %%u) (%%u %%u) (%%u %%u) %%u.0 %%u t (%%u . %%u)
-1)\\n\",\n $type,\n $stat[3],\n $uid,\n $gid,\n $stat[8] >> 16
& 0xffff,\n $stat[8] & 0xffff,\n $stat[9] >> 16 & 0xffff,\n $stat[9] &
0xffff,\n $stat[10] >> 16 & 0xffff,\n $stat[10] & 0xffff,\n
$stat[7],\n $stat[2],\n $stat[1] >> 16 & 0xffff,\n $stat[1] &
0xffff\n);' \"$1\" \"$2\" 2>/dev/null"
tramp-perl-file-name-all-completions "%s -e 'sub case {\n my $str = shift;\n
if ($ARGV[2]) {\n return lc($str);\n }\n else {\n return $str;\n
}\n}\nopendir(d, $ARGV[0]) || die(\"$ARGV[0]: $!\\nfail\\n\");address@hidden =
readdir(d); closedir(d);\nforeach $f (@files) {\n if (case(substr($f, 0,
length($ARGV[1]))) eq case($ARGV[1])) {\n if (-d \"$ARGV[0]/$f\") {\n print
\"$f/\\n\";\n }\n else {\n print \"$f\\n\";\n }\n }\n}\nprint \"ok\\n\"\n'
\"$1\" \"$2\" \"$3\" 2>/dev/null"
tramp-perl-file-truename "%s -e '\nuse File::Spec;\nuse Cwd
\"realpath\";\n\nsub recursive {\n my ($volume, @dirs) = @_;\n my $real =
realpath(File::Spec->catpath(\n $volume,
File::Spec->catdir(@dirs), \"\"));\n if ($real) {\n my ($vol, $dir) =
File::Spec->splitpath($real, 1);\n return ($vol,
File::Spec->splitdir($dir));\n }\n else {\n my $last =
pop(@dirs);\n ($volume, @dirs) = recursive($volume, @dirs);\n
push(@dirs, $last);\n return ($volume, @dirs);\n }\n}\n\n$result =
realpath($ARGV[0]);\nif (!$result) {\n my ($vol, $dir) =
File::Spec->splitpath($ARGV[0], 1);\n ($vol, @dirs) = recursive($vol,
File::Spec->splitdir($dir));\n\n $result = File::Spec->catpath($vol,
File::Spec->catdir(@dirs), \"\");\n}\n\nif ($ARGV[0] =~ /\\/$/) {\n $result
= $result . \"/\";\n}\n\nprint \"\\\"$result\\\"\\n\";\n' \"$1\" 2>/dev/null"
tramp-persistency-file-name "/home/xdev/.emacs.d/tramp"
tramp-port-regexp "[0-9]+"
tramp-postfix-hop-format "|"
tramp-postfix-hop-regexp "|"
tramp-postfix-host-format ":"
tramp-postfix-host-regexp ":"
tramp-postfix-ipv6-format "]"
tramp-postfix-ipv6-regexp "]"
tramp-postfix-method-format ":"
tramp-postfix-method-regexp ":"
tramp-postfix-user-format "@"
tramp-postfix-user-regexp "@"
tramp-prefix-domain-format "%"
tramp-prefix-domain-regexp "%"
tramp-prefix-format "/"
tramp-prefix-ipv6-format "["
tramp-prefix-ipv6-regexp "\\["
tramp-prefix-port-format "#"
tramp-prefix-port-regexp "#"
tramp-prefix-regexp "^/"
tramp-process-alive-regexp ""
tramp-process-connection-type t
tramp-remote-coding-commands '((b64 "base64" "base64 -d -i")
(b64 "base64"
"base64 -d")
(b64 "mimencode
-b" "mimencode -u -b")
(b64 "mmencode
-b" "mmencode -u -b")
(b64 "recode
data..base64" "recode base64..data")
(b64
tramp-perl-encode-with-module
tramp-perl-decode-with-module)
(b64
tramp-perl-encode tramp-perl-decode)
(uu "uuencode
xxx" "uudecode -o /dev/stdout"
"test -c
/dev/stdout")
(uu "uuencode
xxx" "uudecode -o -")
(uu "uuencode
xxx" "uudecode -p")
(uu "uuencode
xxx" tramp-uudecode)
(pack
"perl -e
'binmode STDIN; binmode STDOUT; print pack(q{u*}, join q{}, <>)'" "perl -e
'binmode STDIN; binmode STDOUT; print unpack(q{u*}, join q{}, <>)'")
)
tramp-remote-file-name-spec-regexp
"\\(?:\\([a-zA-Z_0-9-]+\\):\\)?\\(?:\\([^/|:
]+\\)@\\)?\\(\\(?:[a-zA-Z0-9_.-]+\\|\\[\\(?:\\(?:[a-zA-Z0-9]+\\)?:\\)+[a-zA-Z0-9.]+]\\)\\(?:#[0-9]+\\)?\\)?"
tramp-remote-path '(tramp-default-remote-path "/bin" "/usr/bin" "/sbin"
"/usr/sbin"
"/usr/local/bin" "/usr/local/sbin"
"/local/bin"
"/local/freeware/bin" "/local/gnu/bin"
"/usr/freeware/bin"
"/usr/pkg/bin" "/usr/contrib/bin"
"/opt/bin" "/opt/sbin"
"/opt/local/bin")
tramp-remote-process-environment '("LC_ALL=en_US.utf8" "HISTORY")
tramp-restricted-shell-hosts-alist nil
tramp-rfn-eshadow-overlay nil
tramp-rfn-eshadow-update-overlay-regexp "[^:/~]*\\(/\\|~\\)"
tramp-rsh-end-of-line "\n"
tramp-save-ad-hoc-proxies nil
tramp-sh-extra-args '(("/bash\\'" . "-norc -noprofile"))
tramp-sh-file-name-handler-alist '((load . tramp-handle-load)
(make-symbolic-link .
tramp-sh-handle-make-symbolic-link)
(file-name-as-directory .
tramp-handle-file-name-as-directory)
(file-name-directory .
tramp-handle-file-name-directory)
(file-name-nondirectory .
tramp-handle-file-name-nondirectory)
(file-truename . tramp-sh-handle-file-truename)
(file-exists-p . tramp-sh-handle-file-exists-p)
(file-directory-p .
tramp-sh-handle-file-directory-p)
(file-executable-p .
tramp-sh-handle-file-executable-p)
(file-readable-p .
tramp-sh-handle-file-readable-p)
(file-regular-p . tramp-handle-file-regular-p)
(file-symlink-p . tramp-handle-file-symlink-p)
(file-writable-p .
tramp-sh-handle-file-writable-p)
(file-ownership-preserved-p .
tramp-sh-handle-file-ownership-preserved-p)
(file-newer-than-file-p .
tramp-sh-handle-file-newer-than-file-p)
(file-attributes .
tramp-sh-handle-file-attributes)
(file-modes . tramp-handle-file-modes)
(directory-files . tramp-handle-directory-files)
(directory-files-and-attributes .
tramp-sh-handle-directory-files-and-attributes)
(file-name-all-completions .
tramp-sh-handle-file-name-all-completions)
(file-name-completion .
tramp-handle-file-name-completion)
(add-name-to-file .
tramp-sh-handle-add-name-to-file)
(copy-file . tramp-sh-handle-copy-file)
(copy-directory . tramp-sh-handle-copy-directory)
(rename-file . tramp-sh-handle-rename-file)
(set-file-modes . tramp-sh-handle-set-file-modes)
(set-file-times . tramp-sh-handle-set-file-times)
(make-directory . tramp-sh-handle-make-directory)
(delete-directory .
tramp-sh-handle-delete-directory)
(delete-file . tramp-sh-handle-delete-file)
(directory-file-name .
tramp-handle-directory-file-name)
(executable-find .
tramp-sh-handle-executable-find)
(start-file-process .
tramp-sh-handle-start-file-process)
(process-file . tramp-sh-handle-process-file)
(shell-command . tramp-handle-shell-command)
(insert-directory .
tramp-sh-handle-insert-directory)
(expand-file-name .
tramp-sh-handle-expand-file-name)
(substitute-in-file-name .
tramp-handle-substitute-in-file-name)
(file-local-copy .
tramp-sh-handle-file-local-copy)
(file-remote-p . tramp-handle-file-remote-p)
(insert-file-contents .
tramp-handle-insert-file-contents)
(insert-file-contents-literally .
tramp-sh-handle-insert-file-contents-literally)
(write-region . tramp-sh-handle-write-region)
(find-backup-file-name .
tramp-handle-find-backup-file-name)
(make-auto-save-file-name .
tramp-sh-handle-make-auto-save-file-name)
(unhandled-file-name-directory .
tramp-handle-unhandled-file-name-directory)
(dired-compress-file .
tramp-sh-handle-dired-compress-file)
(dired-recursive-delete-directory .
tramp-sh-handle-dired-recursive-delete-directory)
(dired-uncache . tramp-handle-dired-uncache)
(set-visited-file-modtime .
tramp-sh-handle-set-visited-file-modtime)
(verify-visited-file-modtime .
tramp-sh-handle-verify-visited-file-modtime)
(file-selinux-context .
tramp-sh-handle-file-selinux-context)
(set-file-selinux-context .
tramp-sh-handle-set-file-selinux-context)
(vc-registered . tramp-sh-handle-vc-registered))
tramp-shell-prompt-pattern "^[^$>\n]*[#$%>] *\\([[0-9;]*[a-zA-Z] *\\)*"
tramp-smb-method "smb"
tramp-syntax 'ftp
tramp-temp-buffer-file-name nil
tramp-temp-buffer-name " *tramp temp*"
tramp-temp-name-prefix "tramp."
tramp-terminal-prompt-regexp "\\(TERM = (.*)\\|Terminal type\\?
\\[.*\\]\\)\\s-*"
tramp-terminal-type "dumb"
tramp-unload-hook '(#[nil "\300\301\302\"\207" [unload-feature tramp-cache
force] 3]
#[nil "\300\301\302\"\207"
[unload-feature tramp-cmds force] 3]
#[nil "\300\301\302\"\207"
[unload-feature tramp-sh force] 3]
#[nil "\300\301\302\"\207"
[remove-hook find-file-hooks
tramp-set-auto-save] 3]
#[nil "\300\301\302\"\207"
[remove-hook auto-save-hook
tramp-set-auto-save-file-modes] 3]
#[nil "\300\301\302\"\207"
[remove-hook kill-buffer-hook
tramp-delete-temp-file-function]
3]
tramp-unload-file-name-handlers
#[nil "\300\301\302\"\207"
[remove-hook
rfn-eshadow-update-overlay-hook
tramp-rfn-eshadow-update-overlay]
3]
#[nil "\300\301\302\"\207"
[remove-hook
rfn-eshadow-setup-minibuffer-hook
tramp-rfn-eshadow-setup-minibuffer]
3]
#[nil "\300\301\302\"\207"
[unload-feature tramp-compat force] 3]
)
tramp-user-regexp "[^/|: ]+"
tramp-user-with-domain-regexp "\\([^/|: ]+\\)%\\([-a-zA-Z0-9_.]+\\)"
tramp-uudecode "(echo begin 600 /tmp/tramp.$$; tail +2) | uudecode\ncat
/tmp/tramp.$$\nrm -f /tmp/tramp.$$"
tramp-vc-registered-file-names nil
tramp-vc-registered-read-file-names "echo \"(\"\nwhile read file; do\n if
%s \"$file\"; then\n echo \"(\\\"$file\\\" \\\"file-exists-p\\\" t)\"\n
else\n echo \"(\\\"$file\\\" \\\"file-exists-p\\\" nil)\"\n fi\n if %s
\"$file\"; then\n echo \"(\\\"$file\\\" \\\"file-readable-p\\\" t)\"\n
else\n echo \"(\\\"$file\\\" \\\"file-readable-p\\\" nil)\"\n
fi\ndone\necho \")\""
tramp-verbose 3
tramp-version "2.2.6"
tramp-wrong-passwd-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\\|Timeout, server not responding\\)\\.\\).*\\|^.*\\(Received signal
[0-9]+\\).*"
tramp-yesno-prompt-regexp "\\(Are you sure you want to continue connecting
(yes/no)\\?\\)\\s-*"
tramp-yn-prompt-regexp "\\(\\(?:Store key in cache\\? (y/\\|Update cached
key\\? (y/n, Return cancels connectio\\)n)\\)\\s-*"
)
load-path shadows:
==================
- tramp (2.2.6); When editing files using tramp it changes file owner,
Sergey Pashinin <=