Re: tramp (2.7.0-pre nil/nil); Can't connect to server anymore

"Kirill A. Korinsky" <[email protected]>
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
Greetings,

> On 7. Jan 2024, at 16:45, Michael Albinus <[email protected]> wrote:
> 
> That indicates, that the error in your case, writing to an improper /tmp
> directory, isn't caused by Tramp directly, but rather by an external
> program Tramp runs on the remote side behind the scenes. Could you
> please verify this? Remove write permissions from the remote /tmp
> directory, and start Emacs like this:
> 
> --8<---------------cut here---------------start------------->8---
> # emacs -l tramp --eval '(setq tramp-verbose 10)' /ssh:some.host:
> --8<---------------cut here---------------end--------------->8---
> 
> The error should appear, and there should be a Tramp debug buffer. This
> might tell us more. If you fear to uncover sensible information with the
> debug buffer, send it directly to me.

I make a fresh VM with OpenBSD and I've commented /tmp in fstab:

> playground$ cat /etc/fstab | grep /tmp
> #9d7210582a3759f3.e /tmp ffs rw,nodev,nosuid 1 2
> playground$


after reboot I've checked permissions: all good

> playground$ ls -l / | grep tmp
> drwxr-xr-x   6 root  wheel       512 Jan  7 22:42 tmp
> playground$

now I've added ramdisk for /tmp

> playground$ cat /etc/fstab | grep /tmp
> #9d7210582a3759f3.e /tmp ffs rw,nodev,nosuid 1 2
> swap /tmp mfs rw,nodev,nosuid,-s=300m 0 0
> playground$

and reboot machine one more time, and check that I can't use /tmp:

> playground$ ls -l / | grep tmp
> drwxr-xr-x   6 root  wheel       512 Jan  7 22:46 tmp
> playground$ echo > /tmp/xxx
> ksh: cannot create /tmp/xxx: Permission denied
> playground$

When I run emacs your way I have:

In *Messages*
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Tramp: Opening connection nil for playground.island.local using ssh...failed
> signal: Wrong type argument: "listp /bin/sh:"

and I've attached tramp.log

--
wbr, Kirill
tramp.log.gz (application/x-gzip, 144.2 KB) - not displayed
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3/KLNtcfWfLw7JxqmNjZhndZIm4FAmWbHN8ACgkQmNjZhndZ
Im6G1A/7BZUcuMRKAtHK3u7tY5ntcZhZxoQJ5XuTAxhVks0AkneGwVaqhSWERliO
hSsuDOKBYxf6IegWfsD9WtfOFipB0Z53DPpvzjG8kBkigwwtVNB8xTDvRvXI+9Ey
tDgHJnIQDL+TL6jBHfA6YArgtTdXYNdlD6P7ujNE0+JGAuYgdU+UBjegd4yB7ubk
vyxOFFjBE3wB3g0cbt//MWZJwtXF2aACehxYb6x3bcbZ0AcYzWiHcESOkmhPlWv4
RSn6gUzWVg6YwoqCPkqutrhb23dQC1FRC664Ij4cayqwTQH0V3kzVndIGb+YqpOb
BO6pz705d4ZZOJQ/o2VRhVKOa58+GRfBmDlCmMefPLxfQB3uDKtE24WdpH9MaANe
ri4L/KY1fni2j2sQMlfjKZm/c5xeRZr5Ty7OZ1gnZZNMiBM/+uE6uqkziwkBSrcK
/hv9HffJB+MSyj+dHI8ToyoQLVa1Qo6l1Mz2TpQ3WKmxDDCL4Fr1KSkzA5hJn7c9
z8vJRHVL2BPUxPNAdbqSlCBQwkDf4z+KD/0CtNIAg/eCD/QFMQhTFkW2AACyROcv
q7+mXHS57eGE86LvKMYR4VPg0dcX7Dl+5QAyMDVfccNYSh6+qa0+jhkeTd/RH40Z
KnP32W1C47aJlKpbrlQ4USOeUM7ifSKJi1fnHkT+LNHJ+i64rQU=
=ET19
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.