All Apps and Add-ons

etc/shadow Logs

julian0125
Explorer

Hello Splunkers!

I have a question, i really need to monitor etc/shadow file and be able to read the information about password´s users. i have the follow script that i loaded in splunk but it does not showing the information i think that root password needed to be indexed, is there a way to read this file in splunk without root password?

script: "account in $(cut -f1 -d: /etc/passwd); do echo "ACCOUNT: $account , EXPIRES: chage -l $account | grep 'Account expires' | awk '{print $4, $5, $6}', CHANGED: chage -l $account | grep 'Last password change' | awk '{print $5, $6, $7}'"; done"

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...