LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-17-2008, 05:04 PM   #1
gynophobia
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Rep: Reputation: 0
12.2 Issue with External HDD access


Heya,

I'm a new user to Slackware and just did a fresh installation of 12.2.

I set up a user account and tried to connect my external HDD. But when I try to access it, I get this:
Quote:
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”)
Root can access it alright, but not my user account. This site seemed to be my solution, which was to change the security permissions. However, when I tried to open /etc/dbus-1/system.d/hal.conf, it comes up as a blank document with a blank preview image.

Any idea what's going on? Thanks for any input.
 
Old 12-17-2008, 05:08 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
you need to in your kuser set permissions to use disk and scsi check them and this should help. system kuser edit user check the disk cdrom scsi . if you keep having problems get back and I will tell you how to make it a hard link in fstab file
 
Old 12-17-2008, 06:47 PM   #3
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
Is your user a member of the plugdev group?
If not...
Code:
gpasswd -a username plugdev
 
Old 12-17-2008, 06:55 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
when I tried to open /etc/dbus-1/system.d/hal.conf, it comes up as a blank document with a blank preview image.
The stock Slackware installs a file there. Permissions are 644. You must edit the file as root, but any user should be able to read the file. If you open a blank file then check that a file is actually there. On my box the file size is 2091 bytes.

The file is installed from the l/hal-0.5.11-i486-3 package. The file name is hal.conf.new. Check if you have such a file. As root rename the file hal.conf and restart the hald service script (/etc/rc.d/rc.hald restart).

Quote:
Any idea what's going on? Thanks for any input.
Other than the previous text, maybe. I ran into something similar. The problem turned out to be having root as a member of the smbguest group. When I removed root from that group I no longer encountered error messages. You can read more here:

Error Message Mystery Solved

There is actually two parts to the story. Be sure to read the link in the first paragraph. I don't know whether this story will help. A shot in the dark, as the old saying goes.
 
Old 12-18-2008, 12:24 AM   #5
gynophobia
LQ Newbie
 
Registered: Sep 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Hey. Thanks for the replies guys (especially Woodsman for putting in a good effort. Nice site btw, definitely will be a good source of info for me).
I got it working but it was sort of a weird process.

At first I tried adding my user account to the plugdev, cdrom, and disk groups from Kuser but that didn't work. Then I tried opening up the hal.conf with Quanta Plus, and was finally able to view what was in the file. It gave me This window upon opening, so I went ahead and converted the file to HTML 4.01. This changed the first few lines from:
Quote:
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
to
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
I was then able to access the external HDD from my user account. I didn't think that simple line change in the hal.conf file solved everything so I replaced it with the original again. Everything still works now, as I am still able to access my external. All along, and even now, I was never able to view hal.conf in anything besides Quanta Plus; while in root or my user account.

TL;DR - I got it working. Read above if you want to find out what I did.



The only question I have left is after adding my account to plugdev and such, was a reboot in order to active it? If so, then that was what solved everything. Not this whole "Quanta Plus" process I did above.
 
Old 12-18-2008, 01:05 AM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Oh my!

I see now what you meant in your original post by "blank page." That is, after reading your last post, I opened Konqueror and drilled my way to /etc/dbus-1/system.d. I then noticed that hal.conf was listed as file type HTML Document. I double-clicked and the file opened directly in Konqueror. The page opened all blank, just as you described.

The reason Konqueror showed a blank page is the file is not actually an HTML file. Konqueror was trying to parse HTML code and there is none. Thus the blank page!

My setup has HTML documents defaulting to opening first in Konqueror, then Firefox, then Kate, etc. Your setup likely is similar. That the file opened blank made sense after I opened the document in Kate and saw the file was not truly an HTML file. The file is an XML file. HTML markup is a subset of XML, which is a subset of SGML.

You next opened the file in Quanta Plus. Well, Quanta is fairly slick about recognizing Document Type Definitions, commonly known as DTDs. As this file is a simple XML file and not an HTML file, Quanta is programmed to try to help the user convert the file to a known DTD. The DTD listed in hal.conf is not recognized by Quanta Plus. That does not mean the declaration is incorrect, only that Quanta does not recognize the declaration. As a side note, you could add this DTD to Quanta Plus if you really wanted to, however. Then you no longer would receive the dialog box you showed in your screen grab.

If you want to see a better example of a well-known DTD declaration, open any web page in a text editor and notice the DTD declaration at the beginning of the file.

But modifying the DTD of hal.conf is not what you wanted. Good thing you restored the file from the original.

Okay, things are making sense with respect to your original post. Your "blank page" mystery is solved. I hope I explained this okay.

Quote:
I was then able to access the external HDD from my user account.
This probably was a coincidence and had nothing to do with your changing the document declaration. I'll guess that after you changed the declaration, the hal daemon simply could no longer parse the file as a "DTD D-BUS Bus Configuration" file. The hal daemon probably saw the new "DTD HTML 4.01 Transitional" declaration and then ignored the file contents.

I'm curious to learn whether you can still access the external disk after rebooting or restarting the hal daemon.

Quote:
At first I tried adding my user account to the plugdev, cdrom, and disk groups from Kuser but that didn't work.
If I understand correctly you mean that adding the user accounts to those groups did not resolve your problem of accessing the external hard drive. I don't think you meant that you could not use kuser to add users to groups.

If the latter then you need to run that app as root. When you launch kuser you should be prompted for the root password. Another way to launch the app is pressing Alt-F2 to open the Run box, and then typing kdesu kuser. The command line gurus will tell you to run the adduser or useradd commands, but kuser is a valid tool to do the same thing. I use kuser all the time rather than the command line.

If you meant the former then never mind my kuser explanation!

Regardless, you still want those users added to those groups.

Quote:
The only question I have left is after adding my account to plugdev and such, was a reboot in order to active it?
Seldom do you need to reboot a Linux-based system. Sometimes you need to restart services. In this case, just adding the user to the group was sufficient. You might have had to log out and log in to ensure the new group assignment takes hold, but that is all.
 
  


Reply



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
Mounting/Permissions issue w/ external HDD enclosure (Debian) jef3189 Linux - Hardware 1 09-29-2008 03:41 PM
External HDD, compatibility issue? phantom_cyph Linux - Hardware 2 04-24-2008 08:39 PM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM
usb 2.0 external hdd bad performance - filesystem issue ? rtspitz Linux - Hardware 0 05-10-2005 11:28 AM
Bootable partion on external HDD? 40 gb firelight hdd. Trebile34 Linux - Hardware 1 03-14-2005 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:07 PM.

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