LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 04-11-2009, 11:49 AM   #1
vezril
LQ Newbie
 
Registered: Mar 2005
Location: Montreal, Canada
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
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
 
Old 04-11-2009, 04:14 PM   #2
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 155

Rep: Reputation: 22
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
 
Old 04-11-2009, 05:10 PM   #3
vezril
LQ Newbie
 
Registered: Mar 2005
Location: Montreal, Canada
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
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 =/
 
Old 04-13-2009, 12:58 AM   #4
vezril
LQ Newbie
 
Registered: Mar 2005
Location: Montreal, Canada
Distribution: Slackware
Posts: 28

Original Poster
Rep: Reputation: 15
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
 
Old 04-16-2009, 04:20 PM   #5
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 155

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

Sav
 
Old 04-19-2009, 07:05 AM   #6
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware
Posts: 299

Rep: Reputation: 50
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.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied in mount /media/cdrecorder from non-root account... sean04 Linux - Newbie 2 12-10-2007 01:57 PM
SuSe 10.0.0, in user account no auto-mount for USB storage - how to? Thanh-BKK Linux - Newbie 5 12-08-2005 08:09 AM
Unable to mount cd under user account Hotfeet Debian 24 03-29-2005 10:51 AM
Mount SMB Share from user account jeopardyracing Linux - Newbie 3 12-03-2004 06:04 PM
trouble w/user account & ntfs mount Blow Linux - Hardware 11 03-25-2004 03:41 AM


All times are GMT -5. The time now is 08:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration