關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • Linux 禁止 [Ctrl]-[Alt]-[Delete] 重新啟動

    Posted on June 17th, 2007 Sam Tang No comments

    要禁止 Linux 按下 [Ctrl]-[Alt]-[Delete] 重新啟動,可以修改 /etc/inittab 設定檔實現。巨體方法如下:

    1. 開啟 /etc/inittab

    2. 找出以下一行:

    ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

    3. 將這一行刪除,或者在這一行最開端加上 # 號。

    4. 儲存檔案後重新啟動系統便會生效,如果不想重新啟動可以執行以下指令:

    # init q


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word