How can I ensure only the root user have the right to halt/reboot the system?

Monday, 5 February 2018 - Written by admin

CentOS/RHEL/Fedora

You can disable access to these commands by removing their entries in the /etc/security/console.apps/*:

$ $ ls /etc/security/console.apps/
authconfig gparted poweroff system-config-date system-config-network-cmd zenmap-root
authconfig-gtk halt reboot system-config-keyboard system-config-selinux
authconfig-tui kismet_capture setup system-config-language system-config-users
chkrootkit liveusb-creator system-config-authentication system-config-lvm wifi-radar
config-util lshw-gui system-config-boot system-config-network wireshark

$ rm -f /etc/security/console.apps/reboot

Above was found here: 27.2. Disabling Console Program Access – CentOS Deployment Guide

Source: How can I ensure only the root user have the right to halt/reboot the system?

(Visited 24 times, 1 visits today)