Changeset baf47952 for general


Ignore:
Timestamp:
08/09/2006 02:21:54 PM (18 years ago)
Author:
Dan Nichilson <dnicholson@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
a8491e6
Parents:
dc77783f
Message:

Configuration for HAL and gnome-volume-manager without pam_console.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6282 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/sysutils/hal.xml

    rdc77783f rbaf47952  
    4242    features. One example of the functionality provided by
    4343    <application>HAL</application> is when you plug in a USB storage device.
    44     <application>HAL</application> can automatically create an appropriate
    45     entry in the <filename>/etc/fstab</filename> file and create the
    46     corresponding mount point in
    47     <filename class="directory">/media</filename>.</para>
     44    <application>HAL</application> can automatically create a mount point in
     45    <filename class="directory">/media</filename> and mount the device.</para>
    4846
    4947    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    267265    <sect3 id="hal-config">
    268266      <title>Config Files</title>
    269       <para><filename>/etc/dbus-1/system.d/hal.conf</filename> and
     267      <para><filename>/etc/dbus-1/system.d/hal.conf</filename>,
     268      <filename>/etc/dbus-1/system.d/halusers.conf</filename> and
    270269      <filename>/etc/hal/*</filename></para>
    271270
    272271      <indexterm zone="hal hal-config">
    273272        <primary sortas="e-etc-dbus-1-system.d-hal.conf">/etc/dbus-1/system.d/hal.conf</primary>
     273      </indexterm>
     274
     275      <indexterm zone="hal hal-config">
     276        <primary sortas="e-etc-dbus-1-system.d-halusers.conf">/etc/dbus-1/system.d/halusers.conf</primary>
    274277      </indexterm>
    275278
     
    279282    </sect3>
    280283
     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 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 &amp;&amp;
     297cat &gt; /etc/dbus-1/system.d/halusers.conf &lt;&lt; "EOF"
     298<literal>&lt;!DOCTYPE busconfig PUBLIC
     299 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
     300 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"&gt;
     301&lt;busconfig&gt;
     302
     303  &lt;!-- Allow users in the halusers group invoke HAL methods --&gt;
     304  &lt;policy group="halusers"&gt;
     305    &lt;allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/&gt;
     306    &lt;allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/&gt;
     307    &lt;allow send_interface="org.freedesktop.Hal.Device.Volume"/&gt;
     308    &lt;allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/&gt;
     309  &lt;/policy&gt;
     310
     311&lt;/busconfig&gt;</literal>
     312EOF</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.</para>
     319
     320      <para><application>HAL</application> only provides the methods such
     321      as Mount() to act on hardware. In order to take advantage of these,
     322      a <application>HAL</application> event handler such as
     323      <xref linkend="gnome-volume-manager"/> or <ulink
     324      url="http://ivman.sourceforge.net/">Ivman</ulink> should be
     325      installed.</para>
     326
     327      <!-- Following note is only relevant for HAL-0.5.7.x.
     328           Fixed upstream. -->
     329      <note>
     330        <para><application>HAL</application> will ignore any devices listed
     331        in <filename>/etc/fstab</filename> for the purpose of automounting.
     332        You must remove any listings for devices that you would like
     333        automounted such as CD-ROMs or USB keys.</para>
     334      </note>
     335
    281336    <!-- This section commented out for now until it is determined what should
    282337         be placed in this section
    283338
    284     <sect3><title>Configuration Information</title>
     339         FIXME: I think this information is still relevant with the
     340         exception of its interaction with /etc/fstab. Needs investigation.
    285341
    286342      <para>No configuration is necessary for the majority of installations
     
    356412      </note>
    357413
     414    -->
     415
    358416    </sect3>
    359 
    360     -->
    361417
    362418    <sect3  id="hal-init">
Note: See TracChangeset for help on using the changeset viewer.