Error accessing Home of another user [Oops! Something went wrong. Unhandled error message: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process subject does not have uid set]

Bug #1922548 reported by corrado venturini on 2021-04-05
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PolicyKit
Unknown
Unknown
nautilus (Ubuntu)
Undecided
Unassigned
policykit-1 (Ubuntu)
Undecided
Unassigned

Bug Description

On my PC I have some different users. If from one user I try to access the Home directory of a different user I enter the password and then I have a crash. Seen attached screenshot.
Problem happens with both x11 and Wayland sessions.
More: opening this bug I have the messages:
corrado@corrado-n2-hh-0402:~$ ubuntu-bug -w
ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 227, in _run_hook
    symb['add_info'](report, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 84, in add_info
    apport.hookutils.attach_casper_md5check(report,
  File "/usr/lib/python3/dist-packages/apport/hookutils.py", line 945, in attach_casper_md5check
    with open(location) as json_file:
PermissionError: [Errno 13] Permission denied: '/var/log/installer/casper-md5check.json'
corrado@corrado-n2-hh-0402:~$ [GFX1-]: glxtest: Could not connect to wayland socket

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: nautilus 1:3.38.2-1ubuntu1
ProcVersionSignature: Ubuntu 5.11.0-13.14-generic 5.11.7
Uname: Linux 5.11.0-13-generic x86_64
ApportVersion: 2.20.11-0ubuntu61
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 5 12:05:27 2021
ExecutablePath: /usr/bin/nautilus
GsettingsChanges: b'org.gnome.nautilus.window-state' b'initial-size' b'(1137, 611)'
InstallationDate: Installed on 2021-04-02 (2 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Beta amd64 (20210402)
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)
usr_lib_nautilus:
 evince 3.39.2-1
 file-roller 3.38.0-1
 nautilus-extension-gnome-terminal 3.38.1-1ubuntu1
 nautilus-share 0.7.3-2ubuntu3

summary: - Crash accessing Home of another used
+ Crash accessing Home of another user

Thank you for taking the time to report this bug and helping to make Ubuntu better. It sounds like some part of the system has crashed. To help us find the cause of the crash please follow these steps:

1. Look in /var/crash for crash files and if found run:
    ubuntu-bug YOURFILE.crash
Then tell us the ID of the newly-created bug.

2. If step 1 failed then look at https://errors.ubuntu.com/user/ID where ID is the content of file /var/lib/whoopsie/whoopsie-id on the machine. Do you find any links to recent problems on that page? If so then please send the links to us.

3. If step 2 also failed then apply the workaround from bug 994921, reboot, reproduce the crash, and retry step 1.

Please take care to avoid attaching .crash files to bugs as we are unable to process them as file attachments. It would also be a security risk for yourself.

Changed in nautilus (Ubuntu):
status: New → Incomplete

my /var/crash is empty
https://errors.ubuntu.com/user/39229ebea988d6578bed98d7e18bd96fd9cd523cf89495ed70d4ce4c0f8b7937667368f389be8d8b2588bafc31d1935109305b4abf52dbb724a7cf43c3b425b4

my /etc/apport/crashdb.conf is as follows and I don't see a line like:
line 23 ("'problem_types': ['Bug', 'Package'],") in '/etc/apport/crashdb.conf'.

corrado@corrado-n2-hh-0402:~$ cat /etc/apport/crashdb.conf
# map crash database names to CrashDatabase implementations and URLs

default = 'ubuntu'

def get_oem_project():
    '''Determine OEM project name from Distribution Channel Descriptor

    Return None if it cannot be determined or does not exist.
    '''
    try:
        dcd = open('/var/lib/ubuntu_dist_channel').read()
        if dcd.startswith('canonical-oem-'):
            return dcd.split('-')[2]
    except IOError:
        return None

databases = {
    'ubuntu': {
        'impl': 'launchpad',
        'bug_pattern_url': 'http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml',
        'dupdb_url': 'http://people.canonical.com/~ubuntu-archive/apport-duplicates',
        'distro': 'ubuntu',
        'escalation_tag': 'bugpattern-needed',
        'escalated_tag': 'bugpattern-written',
    },
    'canonical-oem': {
        'impl': 'launchpad',
        'bug_pattern_url': 'http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml',
        'project': get_oem_project(),
    },
    'debug': {
        # for debugging
        'impl': 'memory',
        'bug_pattern_url': '/tmp/bugpatterns.xml',
        'distro': 'debug'
    },
}
corrado@corrado-n2-hh-0402:~$

now I will reboot, reproduce problem and try to find trace of the problem in journal

Daniel van Vugt (vanvugt) wrote :

If it's the same crash your nautilus had on Feb 22 then it would be bug 1627564.

Attached journal with the problem.
problem occurred at line 2726 apr 06 08:32:16
where you see the password request to access the other home

summary: - Crash accessing Home of another user
+ Crash accessing Home of another user [Oops! Something went wrong.
+ Unhandled error message:
+ GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process
+ subject does not have uid set]

I don't know what that is but maybe it should be reported at: https://gitlab.freedesktop.org/groups/polkit/-/issues

summary: - Crash accessing Home of another user [Oops! Something went wrong.
+ Error accessing Home of another user [Oops! Something went wrong.
Unhandled error message:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process
subject does not have uid set]
Changed in nautilus (Ubuntu):
status: Incomplete → New

Problem is described in:
https://gitlab.freedesktop.org/polkit/polkit/-/issues/136
to try:
corrado@corrado-n2-hh-0402:~$ gedit admin:///home

(gedit:12489): GVFS-WARNING **: 17:49:21.210: The peer-to-peer connection failed: Could not connect: Permission denied. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

** (gedit:12489): WARNING **: 17:49:21.219: Hit unhandled case 36 (GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process subject does not have uid set) in parse_error.
corrado@corrado-n2-hh-0402:~$

Could not open the file “admin:///home”.
Unexpected error: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Unix process subject does not have uid set

Sebastien Bacher (seb128) wrote :

Seems it was broken due to the changes in https://gitlab.gnome.org/GNOME/gvfs/-/issues/515

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.