You are not logged in.

#1 2015-08-26 06:35:46

HDArtworks
Member
Registered: 2015-04-20
Posts: 70
Website

Not authorized to perform operation in Thunar and OpenBox

Hi.
Today i try to switch from xfce to openbox...
I install it and boot with openbox.
But in openbox i can't mount my NTFS partitions.
In xfce everything works fine. But in openbox i have problem with mount partitions.
I search in the google and forum.
I fine some topics in forum. And i see their problem was solved.
https://bbs.archlinux.org/viewtopic.php?id=143623

But, after that there is no password prompt with mounting. (That's not good for me!)
Is there any way to fix this error? (With password promt exist!)

Here is my arch version:

Linux archlinux 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64 GNU/Linux

Is more info necessary? Tell me what info you need!
Thanks and sorry for my poor english! neutral

Offline

#2 2015-08-26 08:13:14

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: Not authorized to perform operation in Thunar and OpenBox

Hello,
first tell what you have done already which resulted in the no password prompting.
Are you expecting the root password or the user password when you want to mount the NTFS partition?

Offline

#3 2015-08-26 08:18:48

HDArtworks
Member
Registered: 2015-04-20
Posts: 70
Website

Re: Not authorized to perform operation in Thunar and OpenBox

Hi.
I want type my user password for mount partitions.
Just like before in xfce.
But in openbox when i fix the mount issue according to above link, there is no more password prompt for mount artitions.

EDIT:
I edit this file:
/etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-override.pkla

And add this commands to fix my issue:

[storage group mount override]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes
ResultInactive=yes
ResultActive=yes

But after that thee is no more password prompt for mound my patitoons.

Last edited by HDArtworks (2015-08-26 08:35:06)

Offline

#4 2015-08-26 09:42:30

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Not authorized to perform operation in Thunar and OpenBox

If this is a internal disk, why not just permamount it in fstab?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2015-08-26 11:45:20

HDArtworks
Member
Registered: 2015-04-20
Posts: 70
Website

Re: Not authorized to perform operation in Thunar and OpenBox

I did it buddy.
But i like to mount them after boot and ask for user password.
When i add them to fstab, partitions mount automatically and no need for password.

Actually i like to ask for password. I feel safer!
Is there any way to do that?
Thanks...

Offline

#6 2015-08-26 12:58:10

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: Not authorized to perform operation in Thunar and OpenBox

You may need an Authentication Agent for the password prompt.

Offline

#7 2015-08-26 14:12:26

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: Not authorized to perform operation in Thunar and OpenBox

After installing Arch, Thunar couldn't open other partitions. I am using Openbox. I had /etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-override.pkla edited as in this thread, but still nothing.

Checking in /etc, I found the folder /etc/polkit-1/rules.d didn't have read only permissions for group and others. So, I gave those permissions, and also added the following to file 50-default-rules,

polkit.addRule(function(action, subject) {
               if (action.id.indexOf("org.freedesktop.udisks") == 0) {
                       return polkit.Result.YES;
                   }
           });

I got that advice to add the above from here; http://lgogua.blogspot.com/2014/11/how- … t-not.html?

PS: I had installed polkit and all other apps through pacman, so I don't know how the permissions were not there.

Last edited by chdslv (2015-08-26 14:14:39)

Offline

#8 2015-08-26 14:24:57

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: Not authorized to perform operation in Thunar and OpenBox

HDArtworks wrote:

Hi.
I want type my user password for mount partitions.
...
I edit this file:
/etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-override.pkla

And add this commands to fix my issue:

[storage group mount override]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes
ResultInactive=yes
ResultActive=yes

But after that thee is no more password prompt for mound my patitoons.

To ask for the user password, you need 'auth_self' instead of 'yes' (see man polkit).
And as Tutti said an authentication agent to show the prompt and receive input.

Edit: in fact .pkla files are deprecated; I am surprised that this worked for you!
You should use .rules files written in javascript language instead.

Last edited by berbae (2015-08-27 09:46:39)

Offline

#9 2015-08-26 14:52:24

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: Not authorized to perform operation in Thunar and OpenBox

chdslv wrote:

also added the following to file 50-default-rules,
...
I got that advice to add the above from here; http://lgogua.blogspot.com/2014/11/how- … t-not.html?
...
PS: I had installed polkit and all other apps through pacman, so I don't know how the permissions were not there.

Do you install the gvfs package which is an thunar optional dependency for mounting with udisks2?

The link you mention is dated 2014/11, and concerns obsolete udisks instead of udisks2.

Normally if you use systemd-logind, polkit and udisks2, everything should work out of the box, without any additional files.
So I advice that you remove all the files you created and install the missing packages instead.

There is also the thunar-volman package which you could find useful.

You should have started a new thread for this installation problem with thunar, as this is different from the original issue of this thread.
But I answered you here nonetheless...

Last edited by berbae (2015-08-26 15:06:29)

Offline

#10 2015-08-26 21:19:12

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: Not authorized to perform operation in Thunar and OpenBox

berbae wrote:
chdslv wrote:

also added the following to file 50-default-rules,
...
I got that advice to add the above from here; http://lgogua.blogspot.com/2014/11/how- … t-not.html?
...
PS: I had installed polkit and all other apps through pacman, so I don't know how the permissions were not there.

Do you install the gvfs package which is an thunar optional dependency for mounting with udisks2?

The link you mention is dated 2014/11, and concerns obsolete udisks instead of udisks2.

Normally if you use systemd-logind, polkit and udisks2, everything should work out of the box, without any additional files.
So I advice that you remove all the files you created and install the missing packages instead.

There is also the thunar-volman package which you could find useful.

You should have started a new thread for this installation problem with thunar, as this is different from the original issue of this thread.
But I answered you here nonetheless...

Thank you very much for the reply. I had gvfs and thunar-volman installed, before I tried to open other partitions. I am new to Arch, and to find answers I looked everywhere. I had another problem with network, but somehow I found a roundabout way. Taking your advice, I'll open another thread on that.
On this problem with thunar, this is what I have.

/etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-overide-pkla

[storage group mount override]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes
ResultInactive=yes
ResultActive=yes

And,

/etc/polkit-1/rules.d/50-default.rules

/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

// DO NOT EDIT THIS FILE, it will be overwritten on update
//
// Default rules for polkit
//
// See the polkit(8) man page for more information
// about configuring polkit.

polkit.addAdminRule(function(action, subject) {
    return ["unix-group:wheel"];
});

polkit.addRule(function(action, subject) {
               if (action.id.indexOf("org.freedesktop.udisks") == 0) {
                       return polkit.Result.YES;
                   }
           });

I know, its written not to edit this file, but right now thunar is opening files in other partitions. It would be nice to find an answer to this problem. Thank you again, berbae!

Offline

#11 2015-08-26 21:24:11

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: Not authorized to perform operation in Thunar and OpenBox

berbae wrote:
chdslv wrote:

also added the following to file 50-default-rules,
...
I got that advice to add the above from here; http://lgogua.blogspot.com/2014/11/how- … t-not.html?
...
PS: I had installed polkit and all other apps through pacman, so I don't know how the permissions were not there.

Do you install the gvfs package which is an thunar optional dependency for mounting with udisks2?

The link you mention is dated 2014/11, and concerns obsolete udisks instead of udisks2.

Normally if you use systemd-logind, polkit and udisks2, everything should work out of the box, without any additional files.
So I advice that you remove all the files you created and install the missing packages instead.

There is also the thunar-volman package which you could find useful.

You should have started a new thread for this installation problem with thunar, as this is different from the original issue of this thread.
But I answered you here nonetheless...

Thank you for the reply. I had gvfs and thunar-volman installed, before I tried to open other partitions. I am new to Arch, and to find answers I looked everywhere. I had another problem with network, but somehow I found a roundabout way. Taking your advice, I'll open another thread on that.
On this problem with thunar, this is what I have.

/etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-overide-pkla

[storage group mount override]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes
ResultInactive=yes
ResultActive=yes

And,

/etc/polkit-1/rules.d/50-default.rules

/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

// DO NOT EDIT THIS FILE, it will be overwritten on update
//
// Default rules for polkit
//
// See the polkit(8) man page for more information
// about configuring polkit.

polkit.addAdminRule(function(action, subject) {
    return ["unix-group:wheel"];
});

polkit.addRule(function(action, subject) {
               if (action.id.indexOf("org.freedesktop.udisks") == 0) {
                       return polkit.Result.YES;
                   }
           });

I know, this file would be overwritten on the next upgrade, but for the moment, I can open other partitions. Any help would be highly appreciated.

Offline

Board footer

Powered by FluxBB