How do I disable console programme access in Linux?



  • # /bin/rm -f /etc/security/console.apps/*
    

    Alternatively, you may not want to allow users at the console to run poweroff, halt, and reboot (in cases where Ctrl-Alt-Delete is disabled for example, or the power and reset switches are disabled).

    In this case, run the following:

    # /bin/rm -f /etc/security/console.apps/poweroff
    # /bin/rm -f /etc/security/console.apps/halt
    # /bin/rm -f /etc/security/console.apps/reboot
    

Log in to reply
 

© Lightnetics 2024