mirror of
https://github.com/fleetdm/fleet
synced 2026-05-17 14:08:25 +00:00
12 lines
272 B
Bash
12 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
|