[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: tramp sudo:: and version control on RCS root control
From: |
Michael Albinus |
Subject: |
Re: address@hidden: tramp sudo:: and version control on RCS root controlled files] |
Date: |
Mon, 21 Nov 2005 10:53:00 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux) |
Andre Spiegel <address@hidden> writes:
> A related operation, also used in VC, is to find a user's login name,
> given the uid of that user. In the local case, Emacs does it via
> (user-login-name UID), which is implemented as getpwuid(). How would
> you do that for a remote file? I'm currently baffled as to how I could
> get that information at the shell level, sans grepping /etc/passwd of
> course.
# touch /tmp/foo; chown UID /tmp/foo
Then you can retrieve the user name via file-attributes, with
ID-FORMAT 'string.
Best regards, Michael.