|
From: | Kai Großjohann |
Subject: | Re: Tramp 24.4: /usr/bin/id: cannot find name for group ID |
Date: | Sat, 01 Nov 2014 15:53:55 +0100 |
I wonder what does, say, "ls -lg" display if there is a user id that has no name or a group id that has no name in its listing? Would it make sense for Tramp to do the same thing?
Kai
On 1 Nov 2014, at 15:46, Michael Albinus wrote:
Emanuele Tomasi address@hidden writes:
I have updated Emacs to version 24.4. When I try to open remote file
with tramp I get this error:
Tramp: Inserting
/ssh:remotehost:/remotedir/remotefile.sh'...failed
/usr/bin/id -gn | sed -e s/^/\"/ -e s/$/\"/' does not
byte-code:
return a valid
Lisp _expression_: `/usr/bin/id: cannot find name for group ID 20002
"20002"'
Well, reading the code of `tramp-get-remote-gid', it looks that Tramp has
stronger checks now. That might be the reason, that you see the error.If I run "/usr/bin/id -gn" on remote host I have:
/usr/bin/id: cannot find name for group ID 20002
20002
Well, it looks like there is a problem on your remote host. Why couldn't
"id" determine the name of your gid 20002?With Emacs 24.3 I could open that files.
Because of weaker checks. I'm not fully decided, whether we shall return
a dummy group name like "nobody", if the name cannot be determined
remotely. This could result in further problems, I fear.Anyway, there might be a workaround. The group name is cached in Tramp,
and you could predefine its value like this:(add-to-list 'tramp-connection-properties
(list (regexp-quote "/ssh:remotehost:")
"gid-string" "myfakedvalue"))See also the Tramp manual about "Predefined connection information".
Best regards,
EmanueleBest regards, Michael.
Tramp-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/tramp-devel
[Prev in Thread] | Current Thread | [Next in Thread] |