{"id":38553,"date":"2022-04-09T15:07:34","date_gmt":"2022-04-09T15:07:34","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=38553"},"modified":"2022-04-09T15:07:34","modified_gmt":"2022-04-09T15:07:34","slug":"open-as-administrator-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/04\/open-as-administrator-ubuntu-22-04\/","title":{"rendered":"[Quick Tip] Enable &#8216;Open as Administrator&#8217; Option in Ubuntu 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-38554\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Want to open folder or edit file as administrator (aka <i>root<\/i> in Linux)? Here&#8217;s how to do the trick by adding menu option in Ubuntu 22.04 file manager.<\/p>\n<p>The &#8216;Files&#8217; (aka nautilus) has an extension called <code>nautilus-admin<\/code> to do administrative operations. With it, you may right-click on folder and select &#8220;<i>Open as Administrator<\/i>&#8220;, or right-click on file and select &#8220;<i>Edit as Administrator<\/i>&#8220;. <\/p>\n<p>Don&#8217;t like MS Windows, it however does not support running an app as root.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/openasadmin-600x348.webp\" alt=\"\" width=\"600\" height=\"348\" class=\"aligncenter size-large wp-image-38557\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/openasadmin-600x348.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/openasadmin-300x174.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/openasadmin-768x445.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/openasadmin.webp 847w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h4>1. Open Terminal<\/h4>\n<p>Firstly, open terminal either by pressing <b>Ctrl+Alt+T<\/b> key combination on keyboard, or by searching from the &#8216;Activities&#8217; overview screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/terminal-jammy.png\" alt=\"\" width=\"522\" height=\"299\" class=\"aligncenter size-full wp-image-38555\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/terminal-jammy.png 522w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/terminal-jammy-300x172.png 300w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/p>\n<h4>2. Install nautilus-admin<\/h4>\n<p>When the terminal opens, paste the command below into it and hit Enter.<\/p>\n<pre>sudo apt install nautilus-admin<\/pre>\n<p><i>Type user password (no asterisk feedback) for sudo authentication and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-nautilus-admin.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-nautilus-admin-600x263.webp\" alt=\"\" width=\"600\" height=\"263\" class=\"aligncenter size-large wp-image-38556\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-nautilus-admin-600x263.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-nautilus-admin-300x132.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-nautilus-admin.webp 759w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>3. Apply change<\/h4>\n<p>Once installed the extension, you need to restart the file manager to apply change. <\/p>\n<p>Not just close and re-open the file manager window, but you need to run command to quit the background service and let it start again automatically:<\/p>\n<pre>nautilus -q<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-q-600x152.webp\" alt=\"\" width=\"600\" height=\"152\" class=\"aligncenter size-large wp-image-38558\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-q-600x152.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-q-300x76.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-q.webp 759w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>Want to open folder or edit file as administrator (aka root in Linux)? Here&#8217;s how to do the trick by adding menu option in Ubuntu 22.04 file manager. The &#8216;Files&#8217; (aka nautilus) has an extension called nautilus-admin to do administrative operations. With it, you may right-click on folder and select &#8220;Open as Administrator&#8220;, or right-click [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38554,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[670],"class_list":["post-38553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-open-as-administrator"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38553","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=38553"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38553\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38554"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=38553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=38553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=38553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}