tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp 24.4: /usr/bin/id: cannot find name for group ID


From: Michael Albinus
Subject: Re: Tramp 24.4: /usr/bin/id: cannot find name for group ID
Date: Sat, 01 Nov 2014 16:29:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

"Kai Gro├čjohann" <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]