[20200323]避免按ctrl+alt+del重新啟動伺服器(centos 7).txt
[20200323]避免按ctrl+alt+del重新啟動伺服器(centos 7).txt
--//想在centos 7關閉按ctrl+alt+del重新啟動伺服器的功能,檢查發現與centos 6不同。
--//連結:http://blog.itpub.net/267265/viewspace-2638238/ => [20190313]避免按ctrl+alt+del重新啟動伺服器.txt
# ls -l /etc/systemd/system/ctrl-alt-del.target
ls: cannot access /etc/systemd/system/ctrl-alt-del.target: No such file or directory
# systemctl mask ctrl-alt-del.target
Created symlink from /etc/systemd/system/ctrl-alt-del.target to /dev/null.
# ls -l /etc/systemd/system/ctrl-alt-del.target
lrwxrwxrwx. 1 root root 9 Mar 23 10:55 /etc/systemd/system/ctrl-alt-del.target -> /dev/null
--//反轉執行systemctl unmask ctrl-alt-del.target,實際上這樣並不阻止按鍵,僅僅導致操作不會重啟伺服器。
--//在GUI下:
# gsettings get org.gnome.settings-daemon.plugins.media-keys logout
'<Control><Alt>Delete'
Disabling for all users
1. Create a file under the directory '/etc/dconf/db/local.d/' with the settings to be applied globally. For example:
# cat /etc/dconf/db/local.d/00-disable-CAD
[org/gnome/settings-daemon/plugins/media-keys]
logout=''
2. Update the dconf settings:
# dconf update
Verify if the 'ctrl-alt-del' key combination is disabled globally.
# gsettings get org.gnome.settings-daemon.plugins.media-keys logout
''
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2682012/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20190313]避免按ctrl+alt+del重新啟動伺服器.txt伺服器
- linux啟動流程 (centos6,centos7)LinuxCentOS
- CentOS7 nginx啟動指令碼CentOSNginx指令碼
- Centos7啟動Nginx報錯。CentOSNginx
- Centos7 啟動 python指令碼CentOSPython指令碼
- centos7伺服器tomcat啟動正常,但是訪問頁面404CentOS伺服器Tomcat
- [20200313]centos 7修改時區.txtCentOS
- centos7 設定tomcat自啟動CentOSTomcat
- CentOS7系統重新命名CentOS
- Hadoop CDH版本安裝和啟動(CentOS7)HadoopCentOS
- 解決vps伺服器(centos7)重啟後寶塔皮膚打不開無法啟動伺服器CentOS
- CentOS7中使用efibootmgr管理UEFI啟動項CentOSboot
- CentOS 7下mysql 8修改datadir之後不能啟動CentOSMySql
- CentOS 7 - 配置服務實現開機自啟動CentOS
- [20211015]centos 7改變runlevels使用systemctl.txtCentOS
- centos7 解除安裝和重新安裝yumCentOS
- centos7重新調整分割槽大小CentOS
- centos7搭建DNS伺服器CentOSDNS伺服器
- Centos7搭建NFS伺服器CentOSNFS伺服器
- centos7網路卡啟動不了的解決辦法CentOS
- centos7製作U盤啟動盤-九五小龐CentOS
- CentOS RHEL 7 Chrony Vs NTP (Differences Between ntpd and chronyd).txtCentOS
- 自建伺服器wifi配置(centos7)伺服器WiFiCentOS
- LAMP-CentOS7搭建Web伺服器LAMPCentOSWeb伺服器
- Centos7下Samba伺服器配置。CentOSSamba伺服器
- 伺服器CentOS 7安裝 MySQL 8.0伺服器CentOSMySql
- Centos 7 搭建postfix郵件伺服器CentOS伺服器
- CentOS 7 搭建 TeamSpeak3 伺服器CentOS伺服器
- Linux下Tomcat重新啟動LinuxTomcat
- CentOS如何啟動PostgreSQLCentOSSQL
- CentOS 7 下Tomcat啟動超慢的原因及解決方案CentOSTomcat
- CentOS7中使用systemctl列出啟動失敗的服務CentOS
- Centos7 資料庫啟動使用者的建立方法CentOS資料庫
- Centos安裝PHP7及配置php-fpm開機啟動CentOSPHP
- Linux(以CentOS 7為例)下安裝、解除安裝、啟動OpenOfficeLinuxCentOS
- DELL伺服器裝centos7系統伺服器CentOS
- centos7 NFS伺服器搭建記錄CentOSNFS伺服器
- CentOS7 配置 LNMP 伺服器環境CentOSLNMP伺服器