mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
remove awk on lastb
This commit is contained in:
parent
e48f672968
commit
c08db992a9
1 changed files with 1 additions and 1 deletions
|
@ -466,7 +466,7 @@ module Inspec::Resources
|
|||
cmd = inspec.command("echo $((($(date +%s) - $(date -d '#{params["Last password change"]}' '+%s'))/86400))")
|
||||
dayslastset = convert_to_i(cmd.stdout.chomp) if cmd.exit_status == 0
|
||||
|
||||
cmd = inspec.command("lastb -w -a | awk '{print $1}' | grep #{username} | wc -l")
|
||||
cmd = inspec.command("lastb -w -a | grep #{username} | wc -l")
|
||||
badpasswordattempts = convert_to_i(cmd.stdout.chomp) if cmd.exit_status == 0
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue