| 284 | <sect3><title>Configuration Information</title> |
| 285 | |
| 286 | <para>The default setup for <application>HAL</application> is to allow |
| 287 | only certain users to invoke methods such as Mount. These users are |
| 288 | the <systemitem class="username">root</systemitem> user and the user |
| 289 | determined to be at the active console using <ulink |
| 290 | url="&blfs-wiki;/linux-pam">pam_console</ulink>. If you are not set |
| 291 | up to use <xref linkend="linux-pam"/> and <ulink |
| 292 | url="&blfs-wiki;/linux-pam">pam_console</ulink>, create a group that |
| 293 | is allowed to invoke <application>HAL</application> methods with the |
| 294 | following commands:</para> |
| 295 | |
| 296 | <screen role="root"><userinput>groupadd -g 61 halusers && |
| 297 | cat > /etc/dbus-1/system.d/halusers.conf << "EOF" |
| 298 | <literal><!DOCTYPE busconfig PUBLIC |
| 299 | "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" |
| 300 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> |
| 301 | <busconfig> |
| 302 | |
| 303 | <!-- Allow users in the halusers group invoke HAL methods --> |
| 304 | <policy group="halusers"> |
| 305 | <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/> |
| 306 | <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/> |
| 307 | <allow send_interface="org.freedesktop.Hal.Device.Volume"/> |
| 308 | <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/> |
| 309 | </policy> |
| 310 | |
| 311 | </busconfig></literal> |
| 312 | EOF</userinput></screen> |
| 313 | |
| 314 | <para>Now add the users you would like to the <systemitem |
| 315 | class="groupname">halusers</systemitem> group to use |
| 316 | <application>HAL</application>. Note that these users still need |
| 317 | to have appropriate permissions to access the devices that |
| 318 | <application>HAL</application> will invoke its methods on. |
| 319 | Only the methods such as Mount are provided here. In order to take |
| 320 | advantage of these, a <application>HAL</application> event handler |
| 321 | such as <xref linkend="gnome-volume-manager"/> or <ulink |
| 322 | url="http://ivman.sourceforge.net/">Ivman</ulink> should be |
| 323 | installed.</para> |
| 324 | |
| 325 | <!-- Following note is only relevant for HAL-0.5.7. |
| 326 | Fixed upstream. --> |
| 327 | <note> |
| 328 | <para><application>HAL</application> will ignore any devices listed |
| 329 | in <filename>/etc/fstab</filename> for the purpose of automounting. |
| 330 | You must remove any listings for devices that you would like |
| 331 | automounted such as CD-ROMs or USB keys.</para> |
| 332 | </note> |
| 333 | |