• BSD system allows a user to log in and shut down


    cd  /usr/ports/security/sudo make install clean; visudo jxtm    ALL=(ALL)       NOPASSWD:/sbin/halt -pThis way jxtm can be added before the commandsudoTo executehalt– p, and no password is required. Add the last line to the user‘s. SHRC sudo /sbin/halt -p In this way, the jxtm account is automatically logged inShutdown了