我已经尝试过官方手册了在红帽 https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Desktop_Deployment_Guide/ch-ddg-lockdown.html并尝试使用gconf-editor and gconftool-2 to set /apps/panel/global/disable_log_out and
/apps/panel/global/disable_lock_screen。没有运气。
在较新的 Linux 发行版上,例如运行 GNOME 3.x 的 Red Hat 和 CentOS 7,您需要通过gsettings效用而不是gconftool-2。默认情况下,系统被视为空闲前的时间为 5 分钟。将该值设置为 0 将禁用此功能。
gsettings set org.gnome.desktop.session idle-delay 0