Unix Technical Forum

Strange error message...

This is a discussion on Strange error message... within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> When I attempt to mount or unmount a USB drive is thwarted with following error message: "Unfortunately, the device ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:32 AM
Red Rocket
 
Posts: n/a
Default Strange error message...

When I attempt to mount or unmount a USB drive is thwarted with following
error message:

"Unfortunately, the device system:/media/sdc1 (/dev/sdc1) named '1.0G
Removable Media' and currently mounted at /mnt/memory could not be
unmounted.
Unmounting failed due to 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 "Unmount" error
name "(unset)" destination "org.freedesktop.Hal")"

I have looked around for a config file but No Joy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:32 AM
MikeinAK
 
Posts: n/a
Default Re: Strange error message...

Red Rocket wrote:

> When I attempt to mount or unmount a USB drive is thwarted with following
> error message:
>
> "Unfortunately, the device system:/media/sdc1 (/dev/sdc1) named '1.0G
> Removable Media' and currently mounted at /mnt/memory could not be
> unmounted.
> Unmounting failed due to 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 "Unmount" error
> name "(unset)" destination "org.freedesktop.Hal")"
>
> I have looked around for a config file but No Joy.


I had something similar to this when I installed my dvd burner as a second
drive. The cd burner would work fine but the dvd was a no-go for launch
until I added it to the fstab.
Might wanna reboot the machine with the stick in it, and run dmsg | less to
see where it is being found and add that line to the fstab.

MikeinAK

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:32 AM
Red Rocket
 
Posts: n/a
Default Re: Strange error message...

MikeinAK wrote:

> Red Rocket wrote:
>> error message:
>> "Unfortunately, the device system:/media/sdc1 (/dev/sdc1) named '1.0G
>> Removable Media' and currently mounted at /mnt/memory could not be
>> unmounted.
>> Unmounting failed due to 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 "Unmount" error
>> name "(unset)" destination "org.freedesktop.Hal")"


>> I have looked around for a config file but No Joy.


> I had something similar to this when I installed my dvd burner as a second
> drive. The cd burner would work fine but the dvd was a no-go for launch
> until I added it to the fstab.
> Might wanna reboot the machine with the stick in it, and run dmsg | less
> to see where it is being found and add that line to the fstab.


Thanks for your reply but that isn't it.

A similar message comes up either when mounting or unmounting USB memory/hds
or cd/dvd discs.

The funny thing is that utility works for users, just not root.

Anybody have any idea about where I can change that behavior?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:32 AM
ljb
 
Posts: n/a
Default Re: Strange error message...

blazar.jet@gmail.com wrote:
> MikeinAK wrote:
>
>> Red Rocket wrote:
>>> error message:
>>> "Unfortunately, the device system:/media/sdc1 (/dev/sdc1) named '1.0G
>>> Removable Media' and currently mounted at /mnt/memory could not be
>>> unmounted.
>>> Unmounting failed due to 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 "Unmount" error
>>> name "(unset)" destination "org.freedesktop.Hal")"

>...
>
> Thanks for your reply but that isn't it.
>
> A similar message comes up either when mounting or unmounting USB memory/hds
> or cd/dvd discs.
>
> The funny thing is that utility works for users, just not root.


I think that message is from HAL and D-Bus, new at Slackware 12.0, if so I
don't think you have been running it for years...

When I got that "security policy prevents ..." message on trying a
removable device, that convinced me to get rid of HAL and D-Bus and go back
to the old way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:32 AM
Red Rocket
 
Posts: n/a
Default Re: Strange error message...

ljb wrote:

> blazar.jet@gmail.com wrote:
>> MikeinAK wrote:
>>
>>> Red Rocket wrote:
>>>> error message:
>>>> "Unfortunately, the device system:/media/sdc1 (/dev/sdc1) named '1.0G
>>>> Removable Media' and currently mounted at /mnt/memory could not be
>>>> unmounted.
>>>> Unmounting failed due to 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
>>>> "Unmount" error name "(unset)" destination "org.freedesktop.Hal")"

>>...
>>
>> Thanks for your reply but that isn't it.
>>
>> A similar message comes up either when mounting or unmounting USB
>> memory/hds or cd/dvd discs.
>>
>> The funny thing is that utility works for users, just not root.


> I think that message is from HAL and D-Bus, new at Slackware 12.0, if so I
> don't think you have been running it for years...


I never said I was.

> When I got that "security policy prevents ..." message on trying a
> removable device, that convinced me to get rid of HAL and D-Bus and go
> back to the old way.


Well, I would rather get it functioning than just ignore it.

So anybody else have any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:32 AM
Robby Workman
 
Posts: n/a
Default Re: Strange error message...

On 2007-08-08, Red Rocket <blazar.jet@gmail.com> wrote:
> When I attempt to mount or unmount a USB drive is thwarted with following
> error message:
>
> "Unfortunately, the device system:/media/sdc1 (/dev/sdc1) named '1.0G
> Removable Media' and currently mounted at /mnt/memory could not be
> unmounted.
> Unmounting failed due to 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 "Unmount" error
> name "(unset)" destination "org.freedesktop.Hal")"
>
> I have looked around for a config file but No Joy.



Add your user account to the plugdev group.
There is a thread on the LinuxQuestions.org Slackware forum
(started by me) that details some other 'gotchas' associated
with it. However, it seems to me that you should start with
the CHANGES_AND_HINTS.TXT file on your Slackware install
media.

To all:
This whole DBUS/HAL thing really isn't black magic, nor is it
being forced on you. First, if you prefer the "old" behavior
of adding devices to /etc/fstab with appropriate uid/gid/users
or whatever options, then by all means, continue - you don't
even have to disable HAL (and you'd already know that if you'd
read CHANGES_AND_HINTS.TXT). Second, be sure to add your user
account to the plugdev group. That means add it to the 'plugdev'
line in /etc/group. Yes, I know that shadow adds console users
to the plugdev group on login, but that's not enough (in fact,
it's completely useless, but that's detailed in the LQ thread
I mentioned earlier). While you're adding your user account to
various groups, go ahead and put it in cdrom and power.
Third, logout and back in, and restart the messagebus service.
Alternatively, it might be simpler to reboot, but that's your
call.

RW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:32 AM
Robby Workman
 
Posts: n/a
Default Re: Strange error message...

On 2007-08-08, Red Rocket <blazar.jet@gmail.com> wrote:
>
> A similar message comes up either when mounting or unmounting USB memory/hds
> or cd/dvd discs.
>
> The funny thing is that utility works for users, just not root.



That's because root is not in the plugdev group.
As far as DBUS is concerned, root is just another user.
If that user isn't in the plugdev group, then permission
is denied.

RW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:32 AM
Red Rocket
 
Posts: n/a
Default Re: Strange error message...

Robby Workman wrote:

> On 2007-08-08, Red Rocket <blazar.jet@gmail.com> wrote:
>>
>> A similar message comes up either when mounting or unmounting USB
>> memory/hds or cd/dvd discs.
>>
>> The funny thing is that utility works for users, just not root.

>
>
> That's because root is not in the plugdev group.
> As far as DBUS is concerned, root is just another user.
> If that user isn't in the plugdev group, then permission
> is denied.


?

Strange.

I will try that.

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:32 AM
Red Rocket
 
Posts: n/a
Default Re: Strange error message...

Robby Workman wrote:

> On 2007-08-08, Red Rocket <blazar.jet@gmail.com> wrote:
>> When I attempt to mount or unmount a USB drive is thwarted with following
>> error message:
>>
>> "Unfortunately, the device system:/media/sdc1 (/dev/sdc1) named '1.0G
>> Removable Media' and currently mounted at /mnt/memory could not be
>> unmounted.
>> Unmounting failed due to 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 "Unmount" error
>> name "(unset)" destination "org.freedesktop.Hal")"
>>
>> I have looked around for a config file but No Joy.

>
>
> Add your user account to the plugdev group.
> There is a thread on the LinuxQuestions.org Slackware forum
> (started by me) that details some other 'gotchas' associated
> with it. However, it seems to me that you should start with
> the CHANGES_AND_HINTS.TXT file on your Slackware install
> media.
>
> To all:
> This whole DBUS/HAL thing really isn't black magic, nor is it
> being forced on you. First, if you prefer the "old" behavior
> of adding devices to /etc/fstab with appropriate uid/gid/users
> or whatever options, then by all means, continue - you don't
> even have to disable HAL (and you'd already know that if you'd
> read CHANGES_AND_HINTS.TXT). Second, be sure to add your user
> account to the plugdev group. That means add it to the 'plugdev'
> line in /etc/group. Yes, I know that shadow adds console users
> to the plugdev group on login, but that's not enough (in fact,
> it's completely useless, but that's detailed in the LQ thread
> I mentioned earlier). While you're adding your user account to
> various groups, go ahead and put it in cdrom and power.
> Third, logout and back in, and restart the messagebus service.
> Alternatively, it might be simpler to reboot, but that's your
> call.
>
> RW


Thanks for the extra explanation.

I did read through Hints and do, sort of, understand what Pat is saying.

I will read it again with your explanation in mind AND I will look for your
thread on the Slackware forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2008, 04:32 AM
Henrik Carlqvist
 
Posts: n/a
Default Re: Strange error message...

Red Rocket <blazar.jet@gmail.com> wrote:
>> That's because root is not in the plugdev group.


> Strange.
>
> I will try that.


Maybe this is now turning into a matter of philosophy, but I would not try
that. If you want to mount things as root I would prefer to do it the old
fashioned way from a command line with something like "mount /dev/sda1
/mnt/whatever".

DBUS and HAL are making life easier for normal users logged in to a
graphical environment. A nice and simple dialog lets a user mount and
umount devices without having to care about things like which device name
a usb stick was given by the system.

However, I see no use or need for this functionality in the root account.
I would not want to start kde or X as root. Kde and X should be started as
a normal user, if that user later needs root priveleges that should be
solved with su or sudo in a terminal window. The root account is far to
powerful for letting it fool around in a "point, click and
oops"-environment like kde.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc1(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:13 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com