Xfce Thunar - Failed mount disks - Not Authorized

Hi.
Can someone help me?
xfce thunar does not mount disks, screenshot explain problem
Code:
# sudo pkg info polkit
polkit-125_1
Name           : polkit
Version        : 125_1
Installed on   : Thu Sep  4 22:40:52 2025 EEST
Origin         : sysutils/polkit
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : gnome sysutils
Licenses       : LGPL20+
Maintainer     : desktop@FreeBSD.org
WWW            : https://github.com/polkit-org/polkit
Comment        : Framework for controlling access to system-wide components
Options        :
    DUKTAPE        : on
    MANPAGES       : off
    SPIDERMONKEY   : off
Shared Libs required:
    libc.so.7
    libduktape.so.207
    libexpat.so.1
    libgio-2.0.so.0
    libglib-2.0.so.0
    libgobject-2.0.so.0
    libintl.so.8
    libpam.so.6
    libthr.so.3
Shared Libs provided:
    libpolkit-agent-1.so.0
    libpolkit-gobject-1.so.0
Annotations    :
    FreeBSD_version: 1402000
    build_timestamp: 2025-08-09T01:33:51+0000
    built_by       : poudriere-git-3.4.3
    cpe            : cpe:2.3:a:polkit_project:polkit:125:::::freebsd14:x64:1
    port_checkout_unclean: no
    port_git_hash  : d7951ee86
    ports_top_checkout_unclean: no
    ports_top_git_hash: ae4b9c5a1
    repo_type      : binary
    repository     : FreeBSD
Flat size      : 939KiB
Description    :
Polkit is a toolkit for defining and handling authorizations. It is used
for allowing unprivileged processes to speak to privileged processes.
#
 

Attachments

  • Screenshot_2025-09-05_02-27-06.png
    Screenshot_2025-09-05_02-27-06.png
    189.4 KB · Views: 53
Last edited by a moderator:
Maybe this will help? Add to
/etc/rc.conf
Bash:
autofs_enable="YES"
I refused automatic mounting on XFCE4 - I also had similar errors. I mount everything manually. It's more reliable and simpler.
And
/boot/loader.conf
Bash:
fusefs_load="YES"
fuse_load="YES"
 
Maybe this will help? Add to
/etc/rc.conf
Bash:
autofs_enable="YES"
I refused automatic mounting on XFCE4 - I also had similar errors. I mount everything manually. It's more reliable and simpler.
And
/boot/loader.conf
Bash:
fusefs_load="YES"
fuse_load="YES"
Im not sure but maybe you can use
sysutils/bsdisks with thunar.
I'm using filesystems/automount to mount non-default media, so not sure it works or not, but does here help?
Thanks, tied all suggestions, but did not help, still "not authorized"
May be its all i did install freebsd from
FreeBSD-14.3-RELEASE-amd64-disc1.iso
but not
FreeBSD-14.3-RELEASE-amd64-dvd1.iso
?
 
# pkg install fusefs-exfat fusefs-ext2 fusefs-ntfs exfat-utils
# cat /etc/auto_master
Code:
/media          -media          -nosuid
# cat /etc/devd.conf
Code:
notify 100 {
    match "system" "GEOM";
    match "subsystem"    "DEV";
    action "/usr/sbin/automount -c";
};
# cat /etc/sysctl.conf
Code:
vfs.usermount=1
sysrc devfs_system_ruleset="localrules"
sysrc kld_list+="fusefs"

# cat /etc/devfs.conf
Code:
[localrules=5]
add path "da[1-3]p*" mode 0660 group operator
service automount restart
service automountd restart
service autounmountd restart
service devd restart
 
# sudo pkg info polkit
Why are you using sudo(8) when you are already root?

Remove polkit_enable from rc.conf, it has no use. Polkit/polkitd got integrated with DBus a long time ago, it's not a 'separate' daemon any more.

snd_hda_load can be removed too, any *_load (to load kernel modules) should go in loader.conf. But there's no need to explicitly load snd_hda(4), it's already included with the GENERIC kernel.

As for your other issues, login as a 'normal' user, not root. Then in a terminal enter ck-list-sessions and post the output. And the output from id.
 
Thanks, tied all suggestions, but did not help, still "not authorized"
May be its all i did install freebsd from
FreeBSD-14.3-RELEASE-amd64-disc1.iso
but not
FreeBSD-14.3-RELEASE-amd64-dvd1.iso
?
Are you 100% sure that you saved polkit.addRule(function(action, subject) { line through }); line in The rule section of the linked page as
/usr/local/etc/polkit-1/rules.d/10-udisks2.rules
and restarted your computer?

The contents of the rule file in the page seems OK, but FreeBSD doesn't have /etc/polkit-1 directory (of course, including its subdirectories) and if you've installed sysutils/polkit directly or as a dependency of something, you should have /usr/local/etc/polkit-1/rules.d directory. So need re-reading Linuxism to BSDism.
 
SirDice
USerID
Thanks. But better i will try reinstall os from full
FreeBSD-14.3-RELEASE-amd64-dvd1.iso
in my previous case i use
FreeBSD-14.3-RELEASE-amd64-disc1.iso
and i am fight with installation full xfce de, because after installation from ...disc1.iso i had naked tty only, maybe its my mistake.
 
Are you 100% sure that you saved polkit.addRule(function(action, subject) { line through }); line in The rule section of the linked page as
/usr/local/etc/polkit-1/rules.d/10-udisks2.rules
and restarted your computer?

The contents of the rule file in the page seems OK, but FreeBSD doesn't have /etc/polkit-1 directory (of course, including its subdirectories) and if you've installed sysutils/polkit directly or as a dependency of something, you should have /usr/local/etc/polkit-1/rules.d directory. So need re-reading Linuxism to BSDism.
i have emty folder
/usr/local/etc/polkit-1/rules.d/
and according instruction add rule file 10-udisks2.rules into
/usr/local/etc/polkit-1/rules.d/
 
Well, it's your time of course. But it's an exercise in futility. It's the exact same version of FreeBSD and the packages on the DVD are now almost three months old and outdated. The installer won't magically configure XFCE for you and you end up at exactly the same point you are now.
 
Back
Top