LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-25-2007, 03:55 AM   #1
a1ora0
LQ Newbie
 
Registered: Aug 2007
Location: Mysore(KAR), INDIA
Distribution: SLACKWARE12
Posts: 25

Rep: Reputation: 15
accesing pen drive contents..


hi..
I'm using slack 12...
I've 2 problems...

1)

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"/>

<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"/>
<allow receive_interface="org.freedesktop.Hal.Device.SystemPowerManagement"
receive_sender="org.freedesktop.Hal"/>
<allow receive_interface="org.freedesktop.Hal.Device.LaptopPanel"
receive_sender="org.freedesktop.Hal"/>
<allow receive_interface="org.freedesktop.Hal.Device.Volume"
receive_sender="org.freedesktop.Hal"/>
<allow receive_interface="org.freedesktop.Hal.Device.Volume.Crypto"
receive_sender="org.freedesktop.Hal"/>
</policy>

<!-- Default policy for the exported interfaces -->
<policy context="default">
<deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<deny send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
<deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
<deny send_interface="org.freedesktop.Hal.Device.Volume"/>
<deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>

<!-- 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"
 
Old 10-25-2007, 04:28 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Please read:
http://www.linuxquestions.org/questi...d-this-566862/
 
Old 10-25-2007, 08:50 PM   #3
jestdog
LQ Newbie
 
Registered: Oct 2007
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Can't Access Pen Drive

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.
 
Old 10-25-2007, 10:28 PM   #4
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
easiest way is to add this line to your FSTAB:
Code:
/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.
 
Old 10-25-2007, 10:49 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by C-Sniper View Post
easiest way is to add this line to your FSTAB:
Code:
/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.
 
Old 10-25-2007, 10:51 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by jestdog View Post
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.

Last edited by rworkman; 10-25-2007 at 10:54 PM.
 
Old 10-26-2007, 01:38 AM   #7
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by C-Sniper View Post
easiest way is to add this line to your FSTAB:
Code:
/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.
 
Old 10-26-2007, 03:26 AM   #8
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
a1ora0,

Welcome to LQ!

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.
 
Old 10-27-2007, 12:50 PM   #9
a1ora0
LQ Newbie
 
Registered: Aug 2007
Location: Mysore(KAR), INDIA
Distribution: SLACKWARE12
Posts: 25

Original Poster
Rep: Reputation: 15
Bruce Hill,

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?

Last edited by a1ora0; 10-27-2007 at 01:04 PM.
 
Old 10-27-2007, 02:49 PM   #10
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Don't put the : after your user name.

For the NTFS partition:
Code:
/dev/hda1        /XP              ntfs        users,umask=1000,ro,auto  1   0
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.
 
Old 10-28-2007, 01:39 AM   #11
jestdog
LQ Newbie
 
Registered: Oct 2007
Distribution: Slackware
Posts: 9

Rep: Reputation: 0
Hal Automounter

Quote:
Originally Posted by rworkman View Post
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.
 
  


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
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 03:36 PM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 01:28 PM
pen drive sandeepeecs Linux - Hardware 1 08-19-2006 04:06 PM
Bought a hard drive on ebay and the contents of the drive are all ZZZZZZZZZZZZZZZZZZ abefroman General 4 08-13-2005 04:03 PM
EZ-Drive Hard Drive -- Cannot Read Contents redhatman Linux - Newbie 3 09-02-2004 06:37 PM

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

All times are GMT -5. The time now is 02:48 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