{"id":971,"date":"2018-10-19T18:56:18","date_gmt":"2018-10-19T18:56:18","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=971"},"modified":"2018-10-23T01:23:27","modified_gmt":"2018-10-23T01:23:27","slug":"how-to-disable-ctrl-alt-delete-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/19\/how-to-disable-ctrl-alt-delete-in-ubuntu\/","title":{"rendered":"How to Disable Ctrl-Alt-Delete in Ubuntu ?"},"content":{"rendered":"<p>Having a physical access to the keyboard can simply use the Ctrl+Alt+Delete key combination to reboot the server without having to logged on, But we can prevent the use of this key combination on a production server for an accidental reboots.<\/p>\n<p>To disable the reboot action taken by pressing the Ctrl+Alt+Delete key combination,<\/p>\n<p>Comment out the following line in the file \/etc\/init\/control-alt-delete.conf<\/p>\n<p>$ sudo vi \/etc\/init\/control-alt-delete.conf<\/p>\n<p>Or<\/p>\n<p>$sudo gedit \/etc\/init\/control-alt-delete.conf<\/p>\n<p>Find line that read as follows:<\/p>\n<p>exec shutdown -r now \u201cControl-Alt-Delete pressed\u201d<\/p>\n<p>delete configuration line or comment out line by prefixing # symbol<\/p>\n<p>#exec shutdown -r now &#8220;Control-Alt-Delete pressed&#8221;<\/p>\n<p>Save and close the file.<\/p>\n<p>But In 16.04<\/p>\n<p>In the systemd world, Ctrl+Alt+Delete is handled by ctrl-alt-del.target<\/p>\n<p>ctrl-alt-del.target systemd starts this target whenever Control+Alt+Del is pressed on the console. Usually, this should be aliased (symlinked) to reboot.target.<\/p>\n<h2>Disable Ctrl+Alt+Delete using following command<\/h2>\n<p>$systemctl mask ctrl-alt-del.target<\/p>\n<p>$systemctl daemon-reload<\/p>\n<p><a href=\"https:\/\/www.linuxforfreshers.com\/2018\/01\/how-to-disable-ctrl-alt-delete-in-ubuntu.html\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having a physical access to the keyboard can simply use the Ctrl+Alt+Delete key combination to reboot the server without having to logged on, But we can prevent the use of this key combination on a production server for an accidental reboots. To disable the reboot action taken by pressing the Ctrl+Alt+Delete key combination, Comment out &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/19\/how-to-disable-ctrl-alt-delete-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Disable Ctrl-Alt-Delete in Ubuntu ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-971","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=971"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"predecessor-version":[{"id":1380,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/971\/revisions\/1380"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}