Browse Source

pusb.conf-example -> pusb.conf-dist

Andrea Luzzardi 18 years ago
parent
commit
af92cd44e5
3 changed files with 52 additions and 147 deletions
  1. +1
    -1
      Makefile
  2. +51
    -0
      doc/pusb.conf-dist
  3. +0
    -146
      doc/pusb.conf-example

+ 1
- 1
Makefile View File

@ -65,7 +65,7 @@ install : all
$(INSTALL) -m755 $(PUSB_CHECK) $(TOOLS_DEST)
$(INSTALL) -m755 $(PUSB_ADM) $(TOOLS_DEST)
$(INSTALL) -m755 $(PUSB_HOTPLUG) $(TOOLS_DEST)
$(INSTALL) -m644 doc/pusb.conf-example /etc/pusb
$(INSTALL) -m644 doc/pusb.conf-dist /etc/pusb
deinstall :
$(RM) -f $(PAM_USB_DEST)/$(PAM_USB)


+ 51
- 0
doc/pusb.conf-dist View File

@ -0,0 +1,51 @@
<!--
pusb.conf-dist: Default configuration file for pamusb.
Copy this file to /etc/pusb/pusb.conf if you don't already have one.
See http://www.pamusb.org/doc/config
-->
<configuration>
<!-- Default options -->
<defaults>
<!-- Example:
<option name="debug">true</option>
-->
</defaults>
<!-- Device settings -->
<devices>
<!-- Example:
Note: You should use pusb_adm to add devices automatically.
<device id="MyDevice">
<vendor>SanDisk Corp.</vendor>
<model>Cruzer Titanium</model>
<serial>SNDKXXXXXXXXXXXXXXXX</serial>
<volume_uuid>6F6B-42FC</volume_uuid>
<option name="probe_timeout">10</option>
</device>
-->
</devices>
<!-- User settings -->
<users>
<!-- Example:
<user id="root">
<device>MyDevice</device>
<option name="quiet">true</option>
<hotplug event="lock">gnome-screensaver-command -lock</hotplug>
<hotplug event="unlock">gnome-screensaver-command -unlock</hotplug>
</user>
-->
</users>
<!-- Services settings (e.g. gdm, su, sudo...) -->
<services>
<!-- Example:
<service id="pusb_hotplug">
<option name="one_time_pad">false</option>
</service>
-->
</services>
</configuration>

+ 0
- 146
doc/pusb.conf-example View File

@ -1,146 +0,0 @@
<!--
pusb.conf-example
Sample configuration file for pam_usb.
Use pusb_check to test your settings.
Example: pusb_check -d -u root -s gdm
-->
<configuration>
<!-- Default options -->
<defaults>
<!-- Enable pam_usb -->
<!-- <option name="enable">true</option> -->
<!-- Enable debug output -->
<!-- <option name="debug">false</option> -->
<!-- Quiet mode (no verbose output) -->
<!-- <option name="quiet">false</option> -->
<!-- Whether or not enable colored logging -->
<!-- <option name="color_log">true</option> -->
<!-- Enable one time pad -->
<!-- <option name="one_time_pad">true</option> -->
<!-- Time (in seconds) to wait for the volume to be detected -->
<!-- <option name="probe_timeout">10</option> -->
<!-- Computer name, defaults to the hostname -->
<!-- <option name="hostname">hostname</option> -->
<!-- Relative path to the user's home used to store one time pads -->
<!-- <option name="system_pad_directory">.pusb</option> -->
<!-- Relative path to the device used to store one time pads -->
<!-- <option name="device_pad_directory">.pusb</option> -->
</defaults>
<!-- Device settings -->
<devices>
<!-- Syntax:
<device id="arbitrary device name">
<vendor>device's vendor</vendor>
<model>device's model</model>
<serial>device's serial number</serial>
<volume_uuid>UUID of the volume used for one time pads</volume_uuid>
<option name="option name">value</option>
<option name="another option">another value</option>
</device>
-->
<!-- You can use the pusb_adm tool which will
automatically detect your device properties (vendor, model,
serial, uuid) and write a configuration block in this file.
See pusb_adm -h for more informations.
-->
<!-- Example: -->
<!--
<device id="foo">
<vendor>Generated by pusb_adm</vendor>
<model>Generated by pusb_adm</model>
<serial>Generated by pusb_adm</serial>
<volume_uuid>Generated by pusb_adm</volume_uuid>
<option name="probe_timeout">15</option>
</device>
-->
</devices>
<!-- User settings -->
<users>
<!-- Syntax:
<user id="login name">
<device>device name</device>
<hotplug event="lock">lock command</hotplug>
<hotplug event="unlock">unlock command</hotplug>
<option name="option name">value</option>
<option name="another option">another value</option>
</user>
-->
<!-- Examples: -->
<!-- Authenticate user "foo" with device "dev" -->
<!--
<user id="foo">
<device>dev</device>
</user>
-->
<!-- Authenticate user "bar" with device "dev2", without using
one time pads.
-->
<!--
<user id="bar">
<device>dev2</device>
<option name="one_time_pad">false</option>
</user>
-->
<!-- If you're using pusb_hotplug, you can setup commands
to be executed to lock or unlock the system as soon
as the device is inserted (and authenticated) or removed.
-->
<!--
<user id="user name">
<device>dev2</device>
<hotplug event="lock">gnome-screensaver-command -lock</hotplug>
<hotplug event="unlock">gnome-screensaver-command -deactivate</hotplug>
</user>
-->
</users>
<!-- Services settings (e.g. gdm, su, sudo...) -->
<services>
<!-- Syntax is:
<service id="service name">
<option name="option name">value</option>
<option name="another option">another value</option>
</service>
-->
<!-- Examples: -->
<!-- Disable pam_usb for su -->
<!--
<service id="su">
<option name="enable">false</option>
</service>
-->
<!-- Speed up hotplug events by disabling one time pads
for pusb_hotplug.
-->
<!--
<service id="pusb_hotplug">
<option name="one_time_pad">false</option>
</service>
-->
</services>
</configuration>

Loading…
Cancel
Save