• [^] # Re: Tais toi et donnes moi l'id root

    Posté par . En réponse au journal Tais toi et donnes moi l'id root. Évalué à 2.

    C'est assez bizarre. Il y a un /sbin/shutdown, qui est un exécutable, et un /usr/bin/shutdown, qui est un lien symbolique vers consolehelper. Un man consolehelper dit, entre autres, la chose suivante :

    consolehelper is a tool that makes it easy for console users to run
    system programs, doing authentication via PAM (which can be set up to
    trust all console users or to ask for a password at the system adminis-
    trator's discretion). When possible, the authentication is done graph-
    ically; otherwise, it is done within the text console from which con-
    solehelper was started.

    It is intended to be completely transparent. This means that the user
    will never run the consolehelper program directly. Instead, programs
    like /sbin/shutdown are paired with a link from /usr/bin/shutdown to
    /usr/bin/consolehelper. Then when non-root users (specifically, users
    without /sbin in their path, or /sbin after /usr/bin) call the "shut-
    down" program, consolehelper will be invoked to authenticate the action
    and then invoke /sbin/shutdown. (consolehelper itself has no priv-
    iledges; it calls the userhelper(8) program do the real work.)


    Je ne vois pas l'intérêt de ce bidule.