I'm not sure if perl is on Andrey's remote host, but I recall that other parts of Tramp uses it. So here are perl-based alternates to "id":
# id -u: perl -le 'print$>' # id -un perl -le 'print scalar getpwuid($>)' # id -g perl -le 'print($)=~/(\d+)/)' # id -gn perl -le 'print scalar getgrgid($))' -y On Wed, Sep 18, 2013 at 6:09 AM, Michael Albinus <michael.albi...@gmx.de> wrote: > Andrey Tykhonov <atykho...@gmail.com> writes: > >> Hi Michael! > > Hi Andrey, > >> This is not surprise for me as such hosts are very custom. They are not >> sterling FreeBSD. I'm not sure if I can install something there. But >> even I can then I'll be needed to install these things again, again and >> again, because such hosts has very short life, they reinstalls very >> often, from the scratch, from template which I'm not able to change... > > I see. However, Tramp is not fixed to use `id' and nothing else. It > needs `id' to recognize the user's uid and gid. If you could tell me, > what the counterparts of the respective commands are on the remote host, > I could teach Tramp to use them. Tramp needs to call the following > commands, which would require a replacement: > > # id -u > # id -un > # id -g > # id -gn > >> Best regards, >> Andrey > > Best regards, Michael. > > _______________________________________________ > Tramp-devel mailing list > Tramp-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/tramp-devel _______________________________________________ Tramp-devel mailing list Tramp-devel@gnu.org https://lists.gnu.org/mailman/listinfo/tramp-devel