Hi all. We have a linux server with many users. There as never been a passwd expiration policy for this server....until now!
all the users are set to 99999 i have changed. /etc/login.defs to 90 but that only works for new users. How can i make the 90 rule effect all the users with out needing to use
chage -M 90 for every user individually?
Thanks!
**EDIT** Figured it out.
#!/bin/bash cat /etc/passwd | grep "/home" |cut -d: -f1 >list FILE=$1 while read line; do chage -M 90 $line done < list
[link][5 comments]