[Workaround] Fixed Nautilus Admin not working on Ubuntu 21.04

Would you like to use the GVfs management backend to open the Nautilus File Browser or Gedit text editor with root privileges? It does not work on Ubuntu 21.04.

When you run nautilus admin:// Or gedit admin:// When I open a folder or document as root, it doesn’t work and I get an error.

GDBus.Error: org.freedesktop.PolicyKit1.Error.Failed: Unix process subject has no uid set

This error also occurs when you use the nautilus-admin extension to enable the “Open as Root” context menu.

The cause of this problem is gvfs commit Fixes an issue with network permission requirements for flatpak apps. To get rid of the error (see) bug ), Reverting only that one commit can be a workaround.

Method 1: Install the old GVfs from the Ubuntu 20.10 repository.

You can download and install gvfs.deb package For earlier Ubuntu 20.10. And here are the links for 64-bit systems:







Get the 6 packages, open a terminal (Ctrl + Alt + T) and run the command to install them all.

                      sudo apt install ./Downloads/gvfs*.deb

Method 2: Repack the GVfs to undo the commit.

If you don’t want to downgrade gvfs, rebuild it without committing.To make things easier, I uploaded to This PPA ..

1. From the System App Launcher or press Ctrl + Alt + T on your keyboard to open a terminal. Once open, run the command to add the PPA.

                      sudo add-apt-repository ppa:ubuntuhandbook1/gvfs

2. Next, install the patched version of gvfs with the following command:

                      sudo apt install gvfs=1.47.91-2ubuntu1

3. Finally, use the command to remove the PPA.

                      sudo add-apt-repository --remove ppa:ubuntuhandbook1/gvfs

How to restore GVfs to stock version:

If you change your mind and want to get it back, just run the command in your terminal.

                      sudo apt install gvfs=1.47.91-1ubuntu1

Share this:

  • More

Related Posts