LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 01-27-2015, 02:05 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
root password needed for USB mount using Device Notifier


I've recently installed Gentoo, and am having a *very* annoying problem. Until I updated yesterday, all attemts to use the Device Notifier have failed without explanation. Now I get a window requesting the root password. It appears that polkit-1 is involved.

I can mount a USB device as a normal user from the command line without a password, but the gui requires the root password. Not only that, but I have to enter it again to unmount the device.

I have "remember" selected, but to no effect.

How do I tell the system to allow me, as a normal user, to use the gui to mount USB storage, without a password?

Thanks
Jim
 
Old 01-30-2015, 02:49 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,779

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Maybe the following wiki page will be of help:

http://wiki.gentoo.org/wiki/Polkit#Rules

This might do it for any user and who is a member of the 'storage' group (eg /etc/polkit-1/rules.d/10-udisks2.rules
Code:
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&  subject.isInGroup("storage")) {
        return polkit.Result.YES;
    }
});

Last edited by ferrari; 01-30-2015 at 02:57 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount options for KDE device notifier lpwevers Linux - Desktop 2 02-07-2013 04:29 PM
Bootable USB Thumb Drive fails with "ERROR: Failed to mount real root device" bsquared Linux - General 7 08-08-2011 11:16 AM
[SOLVED] Device Notifier not listing 2nd external usb drive geb Slackware 8 08-22-2010 02:17 PM
device notifier does not mount encrypted drives jiml8 Mandriva 1 08-22-2010 11:50 AM
root password needed for shutdown msound SUSE / openSUSE 6 06-19-2005 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration