LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 01-06-2011, 07:52 AM   #1
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Rep: Reputation: 1
hal problem


i have a little problem with hal.
last night after update i can`t mount cd/dvd and usb as normal user,only as root.

this are my gruops # groups lutherus
disk lp wheel games network video audio optical storage power dbus hal networkmanager users

( this morning i added disk, dbus and hal as sugested on arch forum and nothing).

when i mound usb or cd/dvd as normal user i have this error

not autorized or i got acccec denied
 
Old 01-06-2011, 08:11 AM   #2
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Have you read the HAL page of the Arch Wiki?

Try adding this to /etc/PolicyKit/PolicyKit.conf

Code:
  <match user="$USER">
        <!-- replace with your login or delete the line if you want to allow all users to manipulate devices (keep security issues in mind though) -->
                <match action="org.freedesktop.hal.storage.*">
                        <return result="yes"/>
                </match>
                <match action="hal-storage-mount-fixed-extra-options">
                <!-- for internal devices mounted with extra options like a wished mount point -->
                        <return result="yes" />
                </match>
                <match action="hal-storage-mount-removable-extra-options">
                <!-- for external devices mounted with extra options like a wished mount point -->
                        <return result="yes" />
                </match>
        </match> <!--  do not forget to delete this line if you deleted the first one -->
 
Old 01-06-2011, 08:26 AM   #3
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Original Poster
Rep: Reputation: 1
i have configured hal like it`s in wiki and it was working until the update last night.
ee,i don`t have /etc/PolicyKit/PolicyKit.conf.maybe beacouse i`m using awesome-wm
 
Old 01-06-2011, 08:57 AM   #4
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Actually, it looks like that is out of date. There's been so many changes with policykit and consolekit and hal and the like it's hard to keep track.

You're using awesome, how are you trying to mount drives? Via a file manager? How are you starting awesome? .xinitrc or slim? If so what exec command are you using?
 
Old 01-06-2011, 09:05 AM   #5
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Can you post the exact error you're getting as well.
 
Old 01-06-2011, 09:07 AM   #6
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Original Poster
Rep: Reputation: 1
i have slim but arch wiki says that slim reads .xinitrc.
here is my .xinitrc

Code:
# Play a startup sound, in the background
 ogg123 -q /home/lutherus/Documents/systemsounds/startrek/system-ready.ogg &

exec ck-launch-session awesome
i try mount it with a file manager, with pcmanfm.i tried thunar but it`s same.
but runing file manager as root i can mound cd and usb.
 
Old 01-06-2011, 09:12 AM   #7
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Try adding this to /etc/dbus-1/system.d/hal.conf

Replace $USER with your username

Code:
<policy user="$USER">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>
 
Old 01-06-2011, 09:23 AM   #8
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Original Poster
Rep: Reputation: 1
i aded this to /etc/dbus-1/system.d/hal.conf
and it`s still same.nothing changed.
http://slike.hr/slike-male/3/38pm_b8f52.png
this is a screenshot when mounting disc as user.btw,i noticed that burning cd`s like user works normal.only mounting.
yeah,and now i can`t empty thrash.so i thinking to reinstall arch tomorrow morning
 
Old 01-06-2011, 09:39 AM   #9
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
The screenshot is much to small to read.

Did you restart hal and dbus after the change?
 
Old 01-06-2011, 09:49 AM   #10
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
Next option, try adding this to /etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf

Code:
  <policy group="storage">
    <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
  </policy>
 
Old 01-06-2011, 10:32 AM   #11
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Original Poster
Rep: Reputation: 1
yes i restarted dbus and hal.
stil nothing.maybe is something siting on hal?
 
Old 01-06-2011, 11:08 AM   #12
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Original Poster
Rep: Reputation: 1
i think it is not a hal thing.i uninstalled hal rebooted and stil its the same thing
 
Old 01-06-2011, 11:52 AM   #13
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Original Poster
Rep: Reputation: 1
thx very mouch for your help and sorry for bodering .
will tomorrow do a reinstall and huopfuly then will it work.
only if this will hapend every thims after an biger updatde i don`t see a reason to run arch
 
Old 01-07-2011, 10:16 AM   #14
Latios
Member
 
Registered: Dec 2010
Distribution: Arch
Posts: 115

Rep: Reputation: 21
I have the same problem with 2 new installs from the last days so maybe a reinstall wont fix the problem
 
Old 01-08-2011, 03:42 AM   #15
odinlzs
Member
 
Registered: Nov 2010
Posts: 46

Original Poster
Rep: Reputation: 1
i have reinstalled arch but this time i don`t have hal.i was playing with udev rules and it works mouch better now.
it works.i think it is a bug in a new hal and the arch wiki for hal is a litle of outdated
 
  


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
Hal problem visuh Linux - Newbie 6 11-28-2010 05:15 AM
Dual functionality of power button, HAL vs. KDE? ACPID vs HAL? Cotobear Slackware 6 09-12-2009 07:35 PM
cannot mount internal hard drive: .hal-mtab and .hal-mtab-lock messed up extremewaffles Linux - Newbie 3 07-01-2009 05:15 PM
HAL build problem gandalf3 Linux - Software 0 04-06-2006 10:29 PM
hal problem fibbi Linux - Software 3 01-11-2006 09:19 AM

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

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