mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 14:58:33 +00:00
11 lines
272 B
Bash
11 lines
272 B
Bash
#!/bin/sh
|
|
|
|
# Unlock password for all non-root users
|
|
awk -F':' '{ if ($3 >= 1000 && $3 < 60000) print $1 }' /etc/passwd | while read user
|
|
do
|
|
echo "$user"
|
|
if [ "$user" != "root" ]; then
|
|
echo "Unlocking password for $user"
|
|
passwd -u $user
|
|
fi
|
|
done
|