Admin-Ahead Community

Linux => Server Security & Hardening => Topic started by: Jithin on November 29, 2013, 10:03:17 pm

Title: Check accounts with Empty Passwords?
Post by: Jithin on November 29, 2013, 10:03:17 pm
Hi Guys,

It is not a good security practice to keep accounts that are having empty or no password.

So how to find out accounts with no password?

Run the command given below.

awk -F: '($2 == "") {print}' /etc/shadow

That will give you the list and you can either remove the account, block account or can set a strong password.

Thank you for stopping by!