LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-18-2006, 05:53 AM   #1
lazyboy001
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
USB mount prevented by security policy


I recently changed the login manager (my sistem is a Debian etch 2.6.15-1) from gdm to kdm. I accomplished this by using the Synaptic Package Manager. Along kdm many depending packages were installed. After this installation whenever the system tries to mount a USB device the message "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")" appears. When I try to mount it manually the terminal sais "lazyboy:/media# mount sda1
mount: can't find sda1 in /etc/fstab or /etc/mtab
".


I appreciate any kind of help!! Thanks in advance!

Urs
 
Old 10-18-2006, 07:33 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I had a similar problem recently after a system update. It turned out to be a bug in hal or something. It was fixed the next time I updated my system.

Except that in my case, it didn't interfere with manual mounting.
 
Old 10-18-2006, 10:01 AM   #3
lazyboy001
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Hey David H

I performed an upgrade and the problem remains the same. Thanks for your idea though!!!

Urs
 
Old 10-20-2006, 10:48 AM   #4
oozie
Member
 
Registered: Mar 2006
Location: Dublin / Ireland
Distribution: GENTOO Slackware SUSE Ubuntu NLD FreeBSD
Posts: 31

Rep: Reputation: 15
Hi all!
Quote:
Originally Posted by lazyboy001
When I try to mount it manually the terminal sais lazyboy:/media# mount sda1
mount: can't find sda1 in /etc/fstab or /etc/mtab
".
It's obvious you get a message like that. You cannot just put
"mount sda1" on the console. How should /bin/mount know what file do you mean and where should it be mounted to?
Instad of that, try this out:
Code:
mount /dev/sda1 /mnt
and you should have your usb disk mounted on /mnt
Am I right?

Best Regards,
OOZIE
 
Old 10-20-2006, 12:12 PM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
I think you need to specify the file type with "-t auto" as well. Also, you need to do it as root by default.

A full mount command with some useful options would be something like this:

Code:
mount -t auto -o rw,uid=lazyboy,umask=000,noatime,nodiratime, /dev/sda1 /mnt/usb
You can configure the mount command in the /etc/fstab file to make it easier to use. Then you only need to specify either the device or the mount point. But it doesn't always work correctly when it comes to removable drives due to various factors such as the order devices get plugged in.

Recent Debian systems can use pmount (and pumount) instead of the regular mount command for removable drives. On my system "pmount sda1" mounts my pendrive on /media/sda1. But I think pmount depends on the same hal system as the automounter lazyboy is having trouble with.

As for the update you tried, did you confirm that you installed a new version of hal, or did you just do a system upgrade? You might try downgrading to a older version instead.

Of course, the problem could be somewhere else, but considering that the error message is almost exactly like the one I had before, I'd still say it's the most likely cause.
 
Old 10-24-2006, 06:41 AM   #6
lazyboy001
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Original Poster
Rep: Reputation: 0
thank you for all your suggestions! I did it the hard way and reinstalled the entire OS.

Appreciation!
Urs
 
  


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
Can't mount usb -- security policy? David the H. Linux - General 1 08-16-2006 08:44 PM
security policy iptables Ammad Linux - Security 2 11-14-2005 06:15 AM
mysql entry in catalina.policy when using security option gschrade Linux - Software 5 03-23-2004 11:23 AM
Domain Security Policy talkinggoat Linux - Networking 0 10-10-2003 11:25 AM
designing security policy for organisations sadiboyz Linux - Security 2 09-03-2003 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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