We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6671b4 commit 56928baCopy full SHA for 56928ba
controls/os_spec.rb
@@ -370,3 +370,19 @@
370
its('users') { should be_empty }
371
end
372
373
+
374
+control 'os-20' do
375
+ impact 1.0
376
+ title 'All users and gids referred in /etc/group and /etc/passwd should exist'
377
+ desc 'Errors in system administration can lead to a case where gids or uids referred to do not exist'
378
379
+ gids = etc_group.gids.map(&:to_s)
380
+ describe passwd do
381
+ its('gids') { should be_in gids }
382
+ end
383
384
+ users = passwd.users
385
+ describe etc_group do
386
+ its('users') { should be_in users }
387
388
+end
0 commit comments