Posted by: isaraffee | February 9, 2010

Mounting Thumbdrive in Slackware 12.0 – The Security policy error

Mounting Thumbdrive in Slackware 12.0 – The Security policy error

A security policy in place prevents mounting of volumes.

If you happen to access a CD-ROM device or USB device which results in 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”)

Is essence, you need to add your user to the plugdev and cdrom groups to be able to automount devices.

Before adding:

root@galaxy:/etc/rc.d# id

uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)

root@galaxy:/etc/rc.d# groups

root bin daemon sys adm disk wheel floppy

After adding:

root@galaxy:/var/log# id

uid=0(root) gid=0(root) groups=0(root),19(cdrom),83(plugdev)

root@galaxy:/var/log# groups

root cdrom plugdev

After reboot when I ran the groups command it shows that root belongs to only 3 groups instead of the previous 8 groups. So I added the groups to root:

root@galaxy:/var/log# usermod -G bin,daemon,sys,adm,wheel,floppy,plugdev,cdrom root

root@galaxy:/var/log# groups

root cdrom plugdev

But again do not rely on the groups command output. Reboot your system again.

Do not rely on the output of the groups and id command. After you have added the user to the plugdev and cdrom groups, reboot your system. Restarting the hal daemon would not help.

Note:

Once I added the root to the cdrom and plugdev groups, I can no longer access the Internet. To access the Internet again remove the root from the cdrom and plugdev groups

root@galaxy:/var/log# usermod -G bin,daemon,sys,adm,wheel,floppy root.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: