Easy and Simple Solution

Thursday, May 27, 2021

Find password expiry date for all users

3 comments

Check all user's password expiry date except system users on Linux based system.
for user in $(cat /etc/passwd |cut -d: -f1); do echo $user; chage -l $user | grep "Password expires"; done | paste -d " "  - - | sed 's/Password expires//g' | grep -v "never"

3 comments :

  1. Hi your posts are really good. also please look into the another blog,

    https://thelinuxfaq.com/

    ReplyDelete
  2. This or that Oracle is the best!!! Don’t know how it got this name in this short period!!! Anyways If you are not able to find your path make your own path. It’s also suitable for your career decision.make a smart move by visiting our website Oracle training in Chennai.Oracle Training in Chennai | Infycle Technologies

    ReplyDelete
  3. Hi your posts are really good. also please look into the another blog,

    https://thelinuxfaq.com/

    ReplyDelete