Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query all usernames and group names #711

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CarstenGrohmann
Copy link
Contributor

@CarstenGrohmann CarstenGrohmann commented Jun 27, 2023

We need some functionality to query all user names as well as all group names. I implemented in two functions:

  • query all (local and remove) users and groups with getent passwd resp. getent group
  • query local users and groups with cat /etc/passwd resp. cat /etc/group

Small tests of all functions are also part of this pull request.

What do you think about such functionality?

@philpep philpep added feature enhancement This issue/PR relates to a feature request. and removed feature labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue/PR relates to a feature request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants