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 06-26-2015, 06:10 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
root password needed to unmount removable device


Since I updated last week I've had an odd problem.

I can mount removable devices with device-notifier (since adding a polkit rule), but when I try to unmount I get a pop-up requiring the root password.

The odd bit is that even though polkit displays the message the umount is successful.

Code:
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&  subject.isInGroup("storage")) {
        return polkit.Result.YES;
    }
});
 
Old 07-03-2015, 10:57 PM   #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
For udisks2 mounting, you should probably be unmounting with udisksctl. For example
Code:
dean@linux-bbgi:~> udisksctl unmount -b /dev/sdb1
Unmounted /dev/sdb1.
 
  


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
[SOLVED] root password needed for USB mount using Device Notifier CollieJim Gentoo 1 01-30-2015 02:49 AM
root user password needed jineshh Linux - Newbie 13 04-12-2006 02:54 PM
root password needed for shutdown msound SUSE / openSUSE 6 06-19-2005 10:25 PM
Removable disk will not unmount czechknight93 Linux - Hardware 6 04-09-2004 01:54 PM
Somebody changed my root password. Help needed Heartz Linux - Newbie 1 04-13-2002 04:44 PM

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

All times are GMT -5. The time now is 11:10 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