Set expiration date of user




    usermod --expiredate 2020-01-30 your_new_user
    If you don’t want to specify an exact date, but set the user to expire in let’s say 15 days, you could do something like this:
    usermod --expiredate $(date -d "15 days" "+%Y-%m-%d") your_new_user
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.