[Tutor] Getting GID info

Steve Nelson sanelson at gmail.com
Fri Jan 19 15:23:10 CET 2007


On 1/19/07, Steve Nelson <sanelson at gmail.com> wrote:
> Hello all,
>
> I want to produce stats on file ownership.  I am aware that I can use
> stat to obtain a file statistics tuple, and with the pwd method I can
> convert the UID to username.  However, is there a similar method that
> will tell me that GID 1 == "staff"?

Hrm... and an inspired guess.... import grp.... is what I needed.

> S.

S.


More information about the Tutor mailing list