SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
whenever i insert my pen drive in USB it automatically gets detected.. but then i cant access the contents...
i get the following message...
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")
i intended to modify the file /etc/dbus-1/system.d/hal.conf
but i couldn't understand what should i do...
that file seems greek n latin to me...
the following is the file....
Quote:
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- This configuration file specifies the required security policies
for the HAL to work. -->
<!-- Only root or user haldaemon can own the HAL service -->
<policy user="haldaemon">
<allow own="org.freedesktop.Hal"/>
</policy>
<policy user="root">
<allow own="org.freedesktop.Hal"/>
</policy>
<!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
<policy context="default">
<allow send_interface="org.freedesktop.Hal.Manager"/>
<allow send_interface="org.freedesktop.Hal.Device"/>
<allow receive_interface="org.freedesktop.Hal.Manager"
receive_sender="org.freedesktop.Hal"/>
<allow receive_interface="org.freedesktop.Hal.Device"
receive_sender="org.freedesktop.Hal"/>
<!-- This will not work if pam_console support is not enabled -->
<!-- This build (from SlackBuilds.org) does not include pam_console support -->
<policy at_console="true">
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>
<!-- Allow members of 'power' group to shutdown/restart/suspend/hibernate -->
<policy group="power">
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
</policy>
<!-- Allow members of 'video' group to manipulate video settings -->
<policy group="video">
<allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
</policy>
<!-- Allow members of the 'plugdev' group to mount volumes -->
<policy group="plugdev">
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>
</busconfig>
problem 2)
i cant write into my ntfs partitions(mine is a dual boot with windowsXP)
while booting i see that it is read only file system..
i cannot change the permissions through chmod ...it gives a message read only.... why??
then i go to /etc/fstab
and change the
filesytem(the ntfs partitions) from "ro" to "defaults"
and the numbers 1 0 to 1 1
... then i reboot..
i'm able to change the permissions of the partions(directories) through chmod... even when i right click i get the option of "paste file"..
but if i try to paste
i get "ACCESS denied .. couldn't write to /c/anil.c"
Is the user account that you are trying to access the pen drive
in the groups plugdev and messagebus?
if not run kuser from a root prompt and add your users into that
group.. Hope this helps.
/dev/<enter usb device area> /mnt/memory auto auto,users,rw 0 0
i believe that the code is right. if not please correct me.
The code is correct (except the 'auto' mount option is probably not wanted), but it still won't allow the user to mount the device with HAL/DBUS unless he's in the appropriate groups. That's why he was properly pointed to the sticky thread on HAL - all of the relevant information (including making an fstab line if desired) is in there.
Is the user account that you are trying to access the pen drive
in the groups plugdev and messagebus?
if not run kuser from a root prompt and add your users into that
group.. Hope this helps.
I can't confirm this, but I've seen numerous reports that kuser didn't always "do the right thing" when adding/editing users/groups.
I prefer to do this manually anyway -- vipw(8) and vigr(8) are quite sufficient for my purposes.
Oh, and users should NOT be in the 'messagebus' group - it serves no purpose at all.
/dev/<enter usb device area> /mnt/memory auto auto,users,rw 0 0
i believe that the code is right. if not please correct me.
The code can be right all it wants. This is still the wrong solution to the problem. If the user will read the post referenced in the first response he got then his problem would go away.
Everything that has been said since has been steps in the wrong direction.
I'll save you a lot of time and confusion and make it very plain.
Problem #1:
No need to edit "/etc/dbus-1/system.d/hal.conf" or "/etc/fstab" at all.
Slackware-12.0 will automount your devices if you put your user into the appropriate groups. Edit the file /etc/group as root with whichever editor you're most comfortable using. There is no need to change /etc/fstab -- just add your user to the plugdev group and it will mount automatically. If you don't have a preference, use Konsole and login as root. Then open it with vi by issuing "vigr" (which is the standard method of editing /etc/group). Then press the I key, which means insert. Move your cursor, using the arrow keys, to this line:
Code:
plugdev:x:83:
and type your normal username after that last : (colon). Then to save and exit the file, press the Esc key, then : (colon) and wq (which means write, quit), then Enter. After the vi editor closes and it returns to a prompt, issue "/etc/rc.d/rc.messagebus reload" and it will output "Reloading system message bus configuration..." and return you to a prompt. Then stick your flash device in and KDE (if you're using it) should give you a popup box and allow you to open a window to view it's files.
NB: You should also add yourself to the wheel, audio, video and cdrom groups while you have /etc/group open. They will become important later on.
Problem #2:
Linux cannot reliably write to NTFS file systems. There is a project which some say works okay. I forget it's name. Writing to FAT32 (or before) file systems is reliable, and what you can use with a default Slackware install. If you have some free space on that drive, or space that can be repartitioned, it would be preferable to make a FAT32 partition to share data between the OSes.
Your line in /etc/fstab should look something like this:
Code:
/dev/sda1 /WinXP ntfs ro 1 0
where /dev/sda1 represents your Windows OS, and /WinXP represents the mount point name you gave it when you installed Slackware. You want to leave it ro (read-only) and leave it as 1 0. In a terminal (Konsole) issue and read "/etc/fstab" and "man mount". Every command in a Linux system (properly installed) will have a manual (man) page in the system for it.
I really appreciate your reply.
I know i should do a lot of reading.But then where to start it from?
please help me here.
and the solution You provided didnot work..
i hope u expected me to write this
Quote:
plugdev:x:83:anil:
and then save the /etc/group file....
after that i did run the command "/etc/rc.d/rc.messagebus reload"
I even did get the reply u told , from the shell.
But the same message as i've quoted in my first message appeared!!!
No difference.
also would like to add another query.
i can read and execute the ntfs partitions as root but not otherwise.
how can i make normal users access those files?
should give you read-only access for all users on your system. If you really want to write to it, perhaps you can figure out past there how to make it read/write. Please issue and read "/etc/fstab" and "man mount".
NB: Reading is important. If you write to a NTFS filesystem without proper configuration and support, you may damage the data and the Windows operating system.
I can't confirm this, but I've seen numerous reports that kuser didn't always "do the right thing" when adding/editing users/groups.
I prefer to do this manually anyway -- vipw(8) and vigr(8) are quite sufficient for my purposes.
Oh, and users should NOT be in the 'messagebus' group - it serves no purpose at all.
Thanks for the tip I removed myself from messagebus and everything works fine... I never had a problem with kuser, but I don't do to much group editing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.