mount/unmount as user with Thunar

Forum Forums General Software mount/unmount as user with Thunar

  • This topic has 9 replies, 4 voices, and was last updated Mar 6-4:51 am by Xaver.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #7138
    Member
    Xaver

      antiX sid net-install in virtualbox with siduction repos, openbox and thunar.
      Everything is running fine except thunar:
      Mount/unmount media as normal user does not work. Thunar root does not show any devices at all.
      gvfs, udisks2, udevil, pmount, lxpolkit and thunar-volman are installed.
      If I run lxpolkit, an error message pops up:
      ‘GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files’
      I cannot find a solution. What have I missed?

      #7140
      Member
      sleekmason
        Helpful
        Up
        0
        ::

        This may, or may not help with your problem, but I’ve tried this and it works brilliantly:

        xfce-thunar-missing-file-menu-options

        Also, just installing thunar-volman isn’t quite enough, I also had to adjust it in the preferences.

        • This reply was modified 5 years, 2 months ago by sleekmason.
        #7143
        Forum Admin
        dolphin_oracle
          Helpful
          Up
          0
          ::

          you mean removable media? Or internal drives/partitions?

          #7147
          Member
          Xaver
            Helpful
            Up
            0
            ::

            @ dolphin_oracle
            There are problems with both types, if I boot the system from DVD – no access to the partitions of my PC nor to USB-sticks.
            In my Virtualbox (without guest-additions) I cannot test usb-sticks, but I can mount a 2nd virtual HD.
            It is strange. In Thunar the HD is shown only in a user window, not in the root window. In SpaceFM it is vice versa.
            I can mount the HD with root-spacefm. Since I have changed the mount point in ‘/etc/udevil/udevil.conf’ from ‘media/root/’ to ‘/media/’ I now have access in thunar as normal user. To unmount the HD I have to be root again.
            The error message is: ‘Not authorized to perform operation’
            So there must be something wrong with the authentification agent.

            #7160
            Member
            Xaver
              Helpful
              Up
              0
              ::

              @ dolphin_oracle
              In MX-Linux thunar behaves much more gentle. If I click on the 2nd HD in the device section, it only asks for the root password to be mounted and then it is fully accessible. No complains like ‘Not authorized to perform operation’ from the system. I can even mount and unmount it as normal user then.
              How have you accomplished that?

              #7164
              Forum Admin
              dolphin_oracle
                Helpful
                Up
                0
                ::

                @ dolphin_oracle
                In MX-Linux thunar behaves much more gentle. If I click on the 2nd HD in the device section, it only asks for the root password to be mounted and then it is fully accessible. No complains like ‘Not authorized to perform operation’ from the system. I can even mount and unmount it as normal user then.
                How have you accomplished that?

                first thing is that thunar in MX is debian stable/mx and married to xfce, and all the things that that entails.

                sid…is sid. siduction helps with that but sid is still sid.

                in virtualbox you need the extension pack installed to use usb 2.0 drives (may all usb, I forget).

                if you want to use spacefm to mount internal devices, you could also change udevil to mount internal devices the same way it mounts external. you do that in the “allowed devices” area of the /etc/udevil.conf

                if devices don’t show up on the side, make sure under the “Show” menu that internal devices are set to be visible.

                so there are a lot of potential pitfalls in your setup, and so difficult to judge what the issue is, even if its even one issue.

                if I had to look at a potential culprit, I would look to additional gvfs requirements, and potentially dbus problems.

                #7180
                Member
                Xaver
                  Helpful
                  Up
                  0
                  ::

                  @ dolphin_oracle
                  Yes, it definetely is a dbus problem: ‘GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files’
                  Unfortunately dbus and gvfs are related to systemd. In Archbang/Artix they use systemd-dummies to fix it. I do not understand yet, how antiX handles this problem.

                  Now I have checked, which files are used in mx-17-64bit to get thunar work properly. Well, you have chosen the easy way. MX-17 uses systemd !!!
                  XFCE and Thunar should work without systemd. On my 17 years old Dell Latitude C610 I have installed Salix 14.2.1 (slackware based). It is free from systemd and uses XFCE 4.12, Thunar 1.6.10 and Thunar-Volman 0.8.1
                  So it must be possible to solve the issue, but how? Maybe I should just patiently wait for the next Devuan version and check their solution.

                  • This reply was modified 5 years, 2 months ago by Xaver.
                  #7183
                  Forum Admin
                  anticapitalista
                    Helpful
                    Up
                    0
                    ::

                    Try installing elogind and maybe its pam version

                    Philosophers have interpreted the world in many ways; the point is to change it.

                    antiX with runit - leaner and meaner.

                    #7201
                    Member
                    Xaver
                      Helpful
                      Up
                      0
                      ::

                      @ anticapitalista
                      Your presumption was right. I had missed elogind. Your 2nd guess is right too. If you install elogind, you have to install libpam-elogind too. Otherwise the system moans about unfullfilled dependencies. Unfortunately elogind did not solve my problem. I still get ‘‘Not authorized to perform operation’, if I try to mount the 2nd HD in thunar as user and there is no access to the HD in root-thunar.
                      If I try to start lxpolkit via terminal, I still get ‘GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files’. Could lxpolkit be the wrong choice?

                      At least there is some improvement. Now I can mount the 2nd HD via root-spacefm and then I have access as normal user in SpaceFM, Rox-Filer and Thunar as well.
                      So the system is usable untill the real solution will appear.

                      #7369
                      Member
                      Xaver
                        Helpful
                        Up
                        0
                        ::

                        Last weekend I did some research on Thunar, PCManFM and SpaceFM.
                        Now the issue is solved for me: I skip Thunar.
                        I had chosen Thunar, because it is part of MX Linux. So it should work without systemd and be well supported.
                        Unfortunately systemd sneaked in at MX – certainly not on purpose and maybe caused by dependencies of Thunar.

                        So far I have ignored SpaceFM, because out of the box it does not look as clear and pretty as Thunar and SpaceFM.
                        But it takes only a few minutes to give SpaceFM an appealing and functional appearance.
                        Custom actions of Thunar are really conveniant. Now I have discovered, that SpaceFM has this function too. All the commands for Thunar custom actions can be used in SpaceFM as well.
                        I have not found any hash- and media-tags-plugins for SpaceFM. That is no problem, because you can open GtkHash or EasyTAG with a right-click from SpaceFM.
                        SpaceFM has more functions than Thunar and PCManFM. It is much lower on dependencies. So the chances are much lower too, that a sid-upgrade might brake it.

                        It was good, that I had these problems with Thunar. It made me realize, that choosing SpaceFM has been a very wise decision of the antiX team.

                        • This reply was modified 5 years, 2 months ago by Xaver.
                        • This reply was modified 5 years, 2 months ago by Xaver.
                      Viewing 10 posts - 1 through 10 (of 10 total)
                      • You must be logged in to reply to this topic.