Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
plasma: "you are not authorized to mount this device"
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Mon Sep 26, 2016 3:21 pm    Post subject: plasma: "you are not authorized to mount this device&qu Reply with quote

Every time I attach a usb stick or other flash device to my computer, and try to mount it from the device notifier in KDE Plasma 5, I get this notification, "you are not authorized to mount this device".
This is on all three computers I have, 2 running mostly stable and one running unstable. Interestingly enough all three computers worked just fine under KDE4.
Thanks in Advance!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30887
Location: here

PostPosted: Mon Sep 26, 2016 3:46 pm    Post subject: Reply with quote

You need to click on right icon (arrow down with line) for mount device, and the you can click for open in dolphin
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cctsurf
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2006
Posts: 123

PostPosted: Mon Sep 26, 2016 4:27 pm    Post subject: Solved plasma: "you are not authorized to mount this de Reply with quote

THANKS! That did it.
That was simple...but counter-intuitive.
I've been beating my head against the wall on this since plasma came out. I always ended up mounting from the command line.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30887
Location: here

PostPosted: Mon Sep 26, 2016 4:38 pm    Post subject: Re: Solved plasma: "you are not authorized to mount thi Reply with quote

cctsurf wrote:
That was simple...but counter-intuitive.

I feel the same way.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Mon Sep 26, 2016 5:13 pm    Post subject: Reply with quote

Try the following:

Code:
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> The Trick is, go to
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> $ kcmshell5 componentchooser
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> and set temporally another File Manager, and save it
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> then set Dolphin back, and save it
[Donnerstag, 22. September 2016] [22:39:28 CEST] <josef64> after that works fine in Device Notifier :)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30887
Location: here

PostPosted: Mon Sep 26, 2016 5:28 pm    Post subject: Reply with quote

asturm wrote:
Code:
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> The Trick is, go to
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> $ kcmshell5 componentchooser
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> and set temporally another File Manager, and save it
[Donnerstag, 22. September 2016] [22:38:39 CEST] <josef64> then set Dolphin back, and save it
[Donnerstag, 22. September 2016] [22:39:28 CEST] <josef64> after that works fine in Device Notifier :)

Tried but nothing changed, I need to click on icon
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Sat Oct 22, 2016 10:22 am    Post subject: Reply with quote

LOL :lol:
I had the same issue too.
It's actually strange clicking on an eject icon to mount an external USB storage.
And the arrow changes from down to up also! :D
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Oct 22, 2016 10:55 pm    Post subject: Reply with quote

I had to do the following:

1. Create the following file:
/etc/polkit-1/rules.d/10-udisks.rules
Code:
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&
        subject.isInGroup("users")) {
        return "yes";
    }
});

2. Change user permissions to /etc/polkit-1/rules.d/10-udisks.rules
Code:
User: polkitd
Group: root


Now when I insert a usb stick I can select "Open with File Manager" and dolphin opens.

Reference:
https://wiki.gentoo.org/wiki/Polkit
https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2060
Location: San Jose, CA

PostPosted: Tue Dec 13, 2016 4:55 pm    Post subject: Reply with quote

Thanks for this thread. This has been driving me bonkers for a long time.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Thu Mar 02, 2017 4:25 pm    Post subject: Reply with quote

Brilliant davidbrooke,

This solved my problem too.
_________________
/Phil
Back to top
View user's profile Send private message
cameta
Veteran
Veteran


Joined: 04 Aug 2004
Posts: 1320

PostPosted: Tue Mar 07, 2017 12:16 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-1038986-start-0.html
Make this file i
Code:
# /etc/polkit-1/rules.d/10-udisks.rules

polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.filesystem-mount" && subject.isInGroup("plugdev")) {
        return "yes";
    }
});

And add your user to the plugdev group
gpasswd -a user plugdev
_________________
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Tue Mar 07, 2017 1:37 pm    Post subject: Reply with quote

fbcyborg wrote:
LOL :lol:
I had the same issue too.
It's actually strange clicking on an eject icon to mount an external USB storage.
And the arrow changes from down to up also! :D

I don't much care for the new design, but, to be fair, it's not an eject icon. The down-pointing arrow is the media-mount symbol. The upward-pointing arrow is the media-eject symbol. Therefore you click on the down-pointing arrow to mount the external USB device, and you click on the upward-pointing arrow to unmount the external USB device.

https://github.com/KDE/breeze-icons/blob/master/icons/actions/24/media-mount.svg

https://github.com/KDE/breeze-icons/blob/master/icons/actions/24/media-eject.svg

One advantage of the Plasma 5 Device Notifier design over the old KDE 4 design -- at least how it was in my KDE 4 installation -- is that you can mount, unmount and mount again the USB device without having to unplug it. In my old KDE 4 installation, once I had clicked in Device Notifier to unmount a USB device, I had to unplug it and plug it in again in order for KDE 4 to be able to re-mount it.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Sharp_Rulez
n00b
n00b


Joined: 17 Sep 2006
Posts: 43

PostPosted: Fri Mar 17, 2017 11:35 pm    Post subject: Reply with quote

Guys,

I really dont see the arrow that you are all talking about.

See my screenshot, so please help me because apparently i'm blind ;P

I'm trying the polkit change to see if it solves my issue, kinda annoying to go in shell as root to manually mount a usb stick!
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Tue Mar 21, 2017 11:42 am    Post subject: Reply with quote

Me too.
If you move the pointer to the right of the bar a button appears.
Try this and tell me.
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Tue Mar 21, 2017 12:02 pm    Post subject: Reply with quote

What themes do you use?
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Tue Mar 21, 2017 12:12 pm    Post subject: Reply with quote

Code:
eix oxygen -I
[I] kde-frameworks/oxygen-icons
     Available versions: 
     (4)    4.14.3(4/4.14)
     (5)    5.29.0(5/5.29) (~)5.32.0(5/5.32)
       {aqua sources test}
     Installed versions:  5.32.0(5)(09:51:42 12/03/2017)(-test)
     Homepage:            https://www.kde.org/
     Description:         Oxygen SVG icon theme

_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Tue Mar 21, 2017 12:33 pm    Post subject: Reply with quote

Well, that does not *really* answer my question, I have them also installed but what matters is your selection in systemsettings. If I take it as your answer though, that would point to a missing icon in the alternative oxygen icon set.
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Tue Mar 21, 2017 1:02 pm    Post subject: Reply with quote

I set Oxygen as Icon theme of course.

I don't care so much about that particular icon.
Maybe Sharp_Rulez does.
_________________
Il numero di post non fa di me un esperto! Anzi!
Back to top
View user's profile Send private message
Sharp_Rulez
n00b
n00b


Joined: 17 Sep 2006
Posts: 43

PostPosted: Sat Mar 25, 2017 8:24 pm    Post subject: Reply with quote

bandreabis wrote:
Me too.
If you move the pointer to the right of the bar a button appears.
Try this and tell me.


Right, found it!! Thanks, and yes it does mount it! Although there is no icons to "mount", the eject is showing up for the umount.

Thanks also for hinting about the icon package, but unfortunately it was installed

Calculating dependencies... done!
[ebuild R ] kde-frameworks/oxygen-icons-5.29.0:5/5.29::gentoo USE="{-test}" 0 KiB

I'll eix-sync and reinstall the package just in case!
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Sat Mar 25, 2017 8:37 pm    Post subject: Reply with quote

Rebuilding it was not asked for, if you read carefully.
Back to top
View user's profile Send private message
Sharp_Rulez
n00b
n00b


Joined: 17 Sep 2006
Posts: 43

PostPosted: Sun Apr 02, 2017 1:12 pm    Post subject: Reply with quote

oups right. Therefore I guess there is nothing I can do about the missing icon; unless perhaps opening a bug.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Tue Jan 23, 2018 5:46 pm    Post subject: Reply with quote

The simple fix to rules listed above worked perfectly.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Tue Jan 23, 2018 6:17 pm    Post subject: Reply with quote

The real fix here rather than working around consolekit's quirks will be switching to elogind, which will happen asap.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Jan 23, 2018 10:48 pm    Post subject: Reply with quote

asturm wrote:
The real fix here rather than working around consolekit's quirks will be switching to elogind, which will happen asap.

Which will then automount the usb key, but have a bug when user remove the key?
Which will then get the answer: the real fix will be switching to elogind-2 :)
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Tue Jan 23, 2018 10:50 pm    Post subject: Reply with quote

I'm not aware of such a bug with elogind, no.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum