[OpenAFS] Re: Getting all members of all groups
Andrew Deason
adeason@sinenomine.net
Mon, 13 Feb 2012 18:25:04 -0600
On Sun, 12 Feb 2012 12:23:12 -0500
Jason Edgecombe <jason@rampaginggeek.com> wrote:
> I need a list of the members of all of my groups. I know that "pts
> listentries -groups" gives me the groups and that "pts membership
> --expandgroups" will give me group membership, but I have groups with
> spaces and possibly other shell metacharacters.
>
> Does pts have something like GNU find's "-print0" option to help with
> this. Is there another way that I can get a well-structured list of
> group membership?
Not currently, but you also can't have newlines in user or group names
without hacking the db. Treating \n as a delimeter should actually be
somewhat reliable.
--
Andrew Deason
adeason@sinenomine.net