Ticket #1710: halusers.diff

File halusers.diff, 4.7 KB (added by dnicholson@…, 18 years ago)

Using hal without pam_console

  • general/sysutils/hal.xml

     
    4141    providing a rich and extensible description of device characteristics and
    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>
    5048    <itemizedlist spacing="compact">
     
    266264
    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">
     
    274273      </indexterm>
    275274
    276275      <indexterm zone="hal hal-config">
     276        <primary sortas="e-etc-dbus-1-system.d-halusers.conf">/etc/dbus-1/system.d/halusers.conf</primary>
     277      </indexterm>
     278
     279      <indexterm zone="hal hal-config">
    277280        <primary sortas="e-etc-hal-star">/etc/hal/*</primary>
    278281      </indexterm>
    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 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 &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.
     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
    281334    <!-- This section commented out for now until it is determined what should
    282335         be placed in this section
    283336
    284     <sect3><title>Configuration Information</title>
     337         FIXME: I think this information is still relevant with the
     338         exception of its interaction with /etc/fstab. Needs investigation.
    285339
    286340      <para>No configuration is necessary for the majority of installations
    287341      on systems configured with ISO-8859-1 compatible locales. The defaults
     
    355409
    356410      </note>
    357411
     412    -->
     413
    358414    </sect3>
    359415
    360     -->
    361 
    362416    <sect3  id="hal-init">
    363417      <title>Boot Script</title>
    364418