"Kai Großjohann" <[email protected]> writes:

Hi Kai,

as always, I'm happy to see you!

> 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?

It returns the uid/gid as number:

# touch xxx
# sudo chown 12345:12345 xxx
# ls -l xxx
-rw-rw-r-- 1 12345 12345 0 Nov  1 15:57 xxx

Better suited seems to be stat, which returns "UNKNOWN":

# stat -c "%U %G" xxx
UNKNOWN UNKNOWN

So I will add this as alternative to `tramp-get-remote-uid' and
`tramp-get-remote-gid'.

> Kai

Thanks for the tip, Kai! Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to