• # chage

    Posté par . En réponse au message Moyen pour bloquer une session utilisateur sur plage horaire. Évalué à 1.

    chage : C'est un truc UNIX standard ; il te reste plus qu'à scripter un peu un truc avec pour être lancé par un cron.

    bash$ man chage
    ...
    ...
     -E, --expiredate EXPIRE_DATE
     Set the date or number of days since January 1, 1970 on which the user's account will no longer be accessible. The date may also be expressed in the format YYYY-MM-DD (or the format more commonly used in your area). A user whose account is locked must contact the system administrator before being able to use the system again.
     Passing the number -1 as the EXPIRE_DATE will remove an account expiration date.
    ...