LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can't mount external media under a user account (https://www.linuxquestions.org/questions/linux-general-1/cant-mount-external-media-under-a-user-account-718439/)

vezril 04-11-2009 10:49 AM

Can't mount external media under a user account
 
hey all, I have Slackware 12.2 installed and i can only mount my cd/dvd's, USB drives and external HDD when i log in under root. When i try to use any media under a user i get the following error:

A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")

I checked google for an answer to this error and it came up with the following fix: http://www.jefferyfernandez.id.au/20...ng-of-volumes/

but it didn't work. Tried both of the suggestions.

I used to run fxce and mounting was fine. Then switched to KDE 3. So I'm guessing it might have something to do with kde's automounter.

I haven't tried to mount things manually but i do want the automounter to work. But i'll try manually.

Ah also, if i log into root and have the automounter to what it's suppose to do then log back into my user account, i can access the media.

Any ideas/suggestions?

(going to try do an update of kde and see if that doesn't do anything)

Thanks and Cheers!

~V

SavoTU 04-11-2009 03:14 PM

You need to be in the plugdev group add your self then i think i had to reboot as well.

This is where i got the info from originally.

http://wiki.alienbase.nl/doku.php?id=slackware:fixes

vezril 04-11-2009 04:10 PM

Still doesn't work. I'll try resetting my hal.conf to default as i've made some modifications to it.

As an idiot i fogot to make a backup of it =/

vezril 04-12-2009 11:58 PM

Got it working, restored my original hal.conf (actually took the one off my server which runs centOS) added the plugdev policy because it wasn't there. Then with:

groups username plugdev

It works like that.

Cheers

SavoTU 04-16-2009 03:20 PM

No problems i had a few issues with getting it going myself which is why i remembered.

Sav

vonbiber 04-19-2009 06:05 AM

I use slackware 12.2
I did this so that the non-root user can mount
external drives (usb, cdrom)
As root
1. I edit /etc/group
# vi /etc/group

At the end of each of these entries
disk
cdrom
plugdev

I add the user, e.g., disk should now look like this
disk:x:6:root,adm,the_user_name

2. I edit /etc/fstab to add/edit some entries
for the cdrom, the edited line look like this

/dev/cdrom /mnt/cdrom auto users,noauto,exec,ro 00

for the external usb drives

/dev/sdb1 /mnt/sdb1 auto users,noauto,exec,rw 1 1

and so on so forth (/dev/sdb2, /dev/sdc1, ...)

3. I make sure the directories exist

# mkdir -p /mnt/{cdrom,sdb1,sdb2}
etc.

Now as an the ordinary user (that has been entered in /etc/group)
all you have to do, when you insert your cdrom or usb stick
is
mount /mnt/cdrom
or
mount /mnt/sdb1
etc.

and to unmount
umount /mnt/cdrom
etc.


All times are GMT -5. The time now is 08:57 AM.