15 Feb
2018
15 Feb
'18
15:57
On Thu, Feb 15, 2018 at 4:43 PM, Tom Kacvinsky <tom.kacvinsky@suse.com> wrote:
Let me see if I can write simple C program using glibc system functions for iterating over /etc/password and getting primary GID for every user. Should be doable, but it's been a while since I worked with the functions used to iterate and get information from the password struct.
If you really want to implement it, I will recommend you to add new parameter for id(1) or getent(1). It's a bit more complicated than just parses /etc/passwd and /etc/group. As I mentioned before, data can come from LDAP or NIS and id(1) has such requests already. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org