
{"id":33583,"date":"2021-04-14T16:56:07","date_gmt":"2021-04-14T16:56:07","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=33583"},"modified":"2021-10-18T16:29:28","modified_gmt":"2021-10-18T16:29:28","slug":"workaround-nautilus-admin-not-working-ubuntu-21-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/04\/workaround-nautilus-admin-not-working-ubuntu-21-04\/","title":{"rendered":"Fix GVfs Admin &#8220;Unix process subject does not have uid set&#8221; in Ubuntu 21.10, 21.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>Starting in Ubuntu 21.04, when user trying to open file or path via GVfs admin daemon it outputs an error and refuses to work.<\/p>\n<p>This usually happens when you use &#8220;<b>Open as Administrator<\/b>&#8221; or &#8220;<b>Edit as Administrator<\/b>&#8221; to open folder or edit file via root. Or when you trying to access another user folder in system, and even using <code style=\"border:none;\">nautilus admin:\/\/<\/code>, <code>gedit admin:\/\/<\/code>, or other commands in your script or console.<\/p>\n<p>It usually outputs an error look like this:<\/p>\n<blockquote><p><b>GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process subject does not have uid set<\/b><\/p><\/blockquote>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/error-open-other-user.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/error-open-other-user-600x188.png\" alt=\"\" width=\"600\" height=\"188\" class=\"aligncenter size-large wp-image-35076\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/error-open-other-user-600x188.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/error-open-other-user-300x94.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/error-open-other-user.png 635w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The issue is caused by a <a href=\"https:\/\/gitlab.gnome.org\/GNOME\/gvfs\/-\/commit\/29a00938055d3c7c11533bdda3f84ec51d4cbb32\" rel=\"noopener\" target=\"_blank\">gvfs commit<\/a> to fix flatpak app network permission requirement problem. To get rid of the error (see <a href=\"https:\/\/bugs.archlinux.org\/task\/70108\" rel=\"noopener\" target=\"_blank\">bug<\/a>), reverting just that one commit could be a workaround.<\/p>\n<h3>Method 1: Install old GVfs from Ubuntu 20.10 repository:<\/h3>\n<p>You can download &#038; install the <a href=\"https:\/\/launchpad.net\/ubuntu\/+source\/gvfs\">gvfs .deb packages<\/a> for the previous Ubuntu 20.10. And here are the links for 64-bit system:<\/p>\n<p style=\"text-align:center;\"><a href=\"https:\/\/launchpad.net\/ubuntu\/+archive\/primary\/+files\/gvfs_1.46.1-1ubuntu1_amd64.deb\">gvfs_1.46.1-1ubuntu1_amd64.deb<\/a><\/p>\n<p style=\"text-align:center;\"><a href=\"https:\/\/launchpad.net\/ubuntu\/+archive\/primary\/+files\/gvfs-libs_1.46.1-1ubuntu1_amd64.deb\">gvfs-libs_1.46.1-1ubuntu1_amd64.deb<\/a><\/p>\n<p style=\"text-align:center;\"><a href=\"https:\/\/launchpad.net\/ubuntu\/+archive\/primary\/+files\/gvfs-fuse_1.46.1-1ubuntu1_amd64.deb\">gvfs-fuse_1.46.1-1ubuntu1_amd64.deb<\/a><\/p>\n<p style=\"text-align:center;\"><a href=\"https:\/\/launchpad.net\/ubuntu\/+archive\/primary\/+files\/gvfs-daemons_1.46.1-1ubuntu1_amd64.deb\">gvfs-daemons_1.46.1-1ubuntu1_amd64.deb<\/a><\/p>\n<p style=\"text-align:center;\"><a href=\"https:\/\/launchpad.net\/ubuntu\/+archive\/primary\/+files\/gvfs-common_1.46.1-1ubuntu1_all.deb\">gvfs-common_1.46.1-1ubuntu1_all.deb<\/a><\/p>\n<p style=\"text-align:center;\"><a href=\"https:\/\/launchpad.net\/ubuntu\/+archive\/primary\/+files\/gvfs-backends_1.46.1-1ubuntu1_amd64.deb\">gvfs-backends_1.46.1-1ubuntu1_amd64.deb<\/a><\/p>\n<p>Grab the 6 packages, then open terminal (<b>Ctrl+Alt+T<\/b>) and run command to install all of them:<\/p>\n<pre style=\"border:none;\">sudo apt install .\/Downloads\/gvfs*.deb<\/pre>\n<h3>Method 2: upgrade GVfs via PPA (recommend):<\/h3>\n<p>Upstream has fixed the issue by releasing GVfs 1.48.1. Ubuntu somehow stuck at v1.47.91 in Ubuntu 21.10 &#038; 21.04.<\/p>\n<p>Besides building from the source, I&#8217;ve uploaded it into <a href=\"https:\/\/launchpad.net\/~ubuntuhandbook1\/+archive\/ubuntu\/gvfs\" rel=\"noopener\" target=\"_blank\">this PPA<\/a> to make life easier.<\/p>\n<p><b>1.<\/b> Open terminal either by searching from activities overview screen or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the PPA:<\/p>\n<pre style=\"border:none;\">sudo add-apt-repository ppa:ubuntuhandbook1\/gvfs<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/gvfs-ppa-impish.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/gvfs-ppa-impish.png\" alt=\"\" width=\"600\" height=\"236\" class=\"aligncenter size-full wp-image-35077\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/gvfs-ppa-impish.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/gvfs-ppa-impish-300x118.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p><b>2.<\/b> Then either upgrade GVfs via &#8220;Software Updater&#8221; or run the apt command in terminal:<\/p>\n<pre style=\"border:none;\">sudo apt install gvfs<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/apt-gvfs-impish.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/apt-gvfs-impish.png\" alt=\"\" width=\"600\" height=\"292\" class=\"aligncenter size-full wp-image-35078\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/apt-gvfs-impish.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/04\/apt-gvfs-impish-300x146.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>After installing the new packages, <b>Log out and back in<\/b> to apply change.<\/p>\n<h3>How to Restore GVfs to stock version:<\/h3>\n<p>If you change mind, and want to revert it back, simply run command in terminal to purge the PPA which will downgrade the installed packages:<\/p>\n<pre style=\"border:none;\">sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntuhandbook1\/gvfs<\/pre>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>Starting in Ubuntu 21.04, when user trying to open file or path via GVfs admin daemon it outputs an error and refuses to work. This usually happens when you use &#8220;Open as Administrator&#8221; or &#8220;Edit as Administrator&#8221; to open folder or edit file via root. Or when you trying to access another user folder in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-33583","post","type-post","status-publish","format-standard","hentry","category-howtos"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33583","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=33583"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/33583\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=33583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=33583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=33583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}