forked from inspec/inspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CHEF-15083: Update groups resource to use
getent
utility to fetch g…
…roups info (inspec#7284) * enhance: update groups resource to use getent utility to fetch groups info Signed-off-by: Sonu Saha <[email protected]> * spec: add mock call for getent Signed-off-by: Sonu Saha <[email protected]> * spec: update mockloader to mock tool exist check for getent Signed-off-by: Sonu Saha <[email protected]> * enhance: some refactoring & implementing fallback using inspec.etc_group.entries Signed-off-by: Sonu Saha <[email protected]> --------- Signed-off-by: Sonu Saha <[email protected]>
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
root:x:0: | ||
www-data:x:33:www-data,root | ||
GroupWithCaps:x:999: | ||
sftpusers:x:1000:sftponly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters