{"id":37155,"date":"2022-01-30T16:41:18","date_gmt":"2022-01-30T16:41:18","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=37155"},"modified":"2022-01-30T16:41:18","modified_gmt":"2022-01-30T16:41:18","slug":"disable-printing-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/01\/disable-printing-ubuntu\/","title":{"rendered":"How to Disable Printing of Documents &#038; Files in Ubuntu 20.04 \/22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-34682\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>For security reason, user may disable printing of documents &#038; files in Linux to prevent them from being photocopied and then shared. Here&#8217;s how to do the trick in Ubuntu or other Linux with GNOME desktop.<\/p>\n<p>NOTE: after running steps below ALL applications&#8217; &#8220;Print&#8221; dialog will no longer accessible either via keyboard shortcut or menu button. Though, this <i>ONLY<\/i> affect the current user in system!<\/p>\n<div id=\"attachment_37156\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/print-disabled.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-37156\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/print-disabled-600x400.webp\" alt=\"\" width=\"600\" height=\"400\" class=\"size-large wp-image-37156\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/print-disabled-600x400.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/print-disabled-300x200.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/print-disabled-768x511.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/print-disabled.webp 955w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-37156\" class=\"wp-caption-text\">After this tutorial, &#8216;Print&#8217; dialog no longer available<\/p><\/div>\n<h3>Option 1: Single command to disable printing:<\/h3>\n<p>A single command is always the most efficient way to toggle a hidden option in Linux. <\/p>\n<p>Firstly, press <b>Ctrl+Alt+T<\/b> on keyboard to open a terminal window. When it opens, run command:<\/p>\n<pre>gsettings set org.gnome.desktop.lockdown disable-printing true<\/pre>\n<p>That&#8217;s it. The change takes effect immediately!<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/gsettings-disableprinting.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/gsettings-disableprinting.png\" alt=\"\" width=\"600\" height=\"188\" class=\"aligncenter size-full wp-image-37157\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/gsettings-disableprinting.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/gsettings-disableprinting-300x94.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>At any time, you may <b>re-enable the &#8216;Print&#8217; function<\/b> by running command in terminal:<\/p>\n<pre>gsettings reset org.gnome.desktop.lockdown disable-printing<\/pre>\n<h3>Option 2: Disable printing via Dconf Editor:<\/h3>\n<p>For those hate Linux commands, the advanced &#8216;Dconf Editor&#8217; offers an option to toggle on\/off the feature.<\/p>\n<p>Firstly, search for and install &#8216;<b>Dconf Editor<\/b>&#8216; from Ubuntu Software:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-600x346.jpg\" alt=\"\" width=\"600\" height=\"346\" class=\"aligncenter size-large wp-image-33935\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-600x346.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-300x173.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-768x442.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal.jpg 887w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Next, launch the tool and then navigate to &#8216;<b>org\/gnome\/desktop\/lockdown<\/b>&#8216;. Scroll down and find out the key &#8220;<b>disable-printing<\/b>&#8220;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/dconfeditor-disableprinting.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/dconfeditor-disableprinting-600x408.webp\" alt=\"\" width=\"600\" height=\"408\" class=\"aligncenter size-large wp-image-37160\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/dconfeditor-disableprinting-600x408.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/dconfeditor-disableprinting-300x204.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/dconfeditor-disableprinting-768x522.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/01\/dconfeditor-disableprinting.webp 846w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally TURN ON the slider for this key will disable printing for all apps for this user! As you see, there&#8217;s another key &#8216;<i>disable-print-setup<\/i>&#8216;. With it enabled, print settings is no longer available for this user.<\/p>","protected":false},"excerpt":{"rendered":"<p>For security reason, user may disable printing of documents &#038; files in Linux to prevent them from being photocopied and then shared. Here&#8217;s how to do the trick in Ubuntu or other Linux with GNOME desktop. NOTE: after running steps below ALL applications&#8217; &#8220;Print&#8221; dialog will no longer accessible either via keyboard shortcut or menu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34682,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[265],"class_list":["post-37155","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-printing"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/37155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=37155"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/37155\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34682"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=37155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=37155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=37155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}