Agnus Dei (jackal) wrote,
Agnus Dei
jackal

Expire all the user accounts on a linux server in 30 days from now

Expire all the user accounts on a linux server in 30 days from now:


$ for i in `awk -F: -v LIMIT=500 '$3 >= LIMIT{print $1}' /etc/passwd`; do chage -E `date -d "30 days" +"%Y-%m-%d"` $i; done

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments