• [^] # Re: Chez moi ça marche

    Posté par . En réponse au message la commande motd n'existe pas ?. Évalué à 4.

    chez moi aussi ca marche :

    grep -i motd /etc/pam.d/*
    /etc/pam.d/login:# Prints the motd upon succesful login
    /etc/pam.d/login:# (Replaces the `MOTD_FILE' option in login.defs)
    /etc/pam.d/login:session optional pam_motd.so
    /etc/pam.d/sshd:# This includes a dynamically generated part from /run/motd.dynamic
    /etc/pam.d/sshd:# and a static (admin-editable) part from /etc/motd.
    /etc/pam.d/sshd:session optional pam_motd.so motd=/run/motd.dynamic noupdate
    /etc/pam.d/sshd:session optional pam_motd.so # [1]
    
    

    conclusion, c'est le service PAM qui prend en charge ce service au moins sur les distribution modernes et récentes (l'un et l'autre n'est pas nécessairement lié, si ?).

    voir : http://administratosphere.wordpress.com/2011/11/23/using-the-message-of-the-day-motd-in-ubuntu-linux/