Hardware authentication for Linux using ordinary USB Flash Drives.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
3.7 KiB

  1. <!--
  2. pusb.conf-example
  3. Sample configuration file for pam_usb.
  4. Use pusb_check to test your settings.
  5. Example: pusb_check -d -u root -s gdm
  6. -->
  7. <configuration>
  8. <!-- Default options -->
  9. <defaults>
  10. <!-- Enable pam_usb -->
  11. <!-- <option name="enable">true</option> -->
  12. <!-- Enable debug output -->
  13. <!-- <option name="debug">false</option> -->
  14. <!-- Quiet mode (no verbose output) -->
  15. <!-- <option name="quiet">false</option> -->
  16. <!-- Whether or not enable colored logging -->
  17. <!-- <option name="color_log">true</option> -->
  18. <!-- Enable one time pad -->
  19. <!-- <option name="one_time_pad">true</option> -->
  20. <!-- Time (in seconds) to wait for the volume to be detected -->
  21. <!-- <option name="probe_timeout">10</option> -->
  22. <!-- Computer name, defaults to the hostname -->
  23. <!-- <option name="hostname">hostname</option> -->
  24. <!-- Relative path to the user's home used to store one time pads -->
  25. <!-- <option name="system_pad_directory">.pusb</option> -->
  26. <!-- Relative path to the device used to store one time pads -->
  27. <!-- <option name="device_pad_directory">.pusb</option> -->
  28. </defaults>
  29. <!-- Device settings -->
  30. <devices>
  31. <!-- Syntax:
  32. <device id="arbitrary device name">
  33. <vendor>device's vendor</vendor>
  34. <model>device's model</model>
  35. <serial>device's serial number</serial>
  36. <volume_uuid>UUID of the volume used for one time pads</volume_uuid>
  37. <option name="option name">value</option>
  38. <option name="another option">another value</option>
  39. </device>
  40. -->
  41. <!-- You can use the pusb_adm tool which will
  42. automatically detect your device properties (vendor, model,
  43. serial, uuid) and write a configuration block in this file.
  44. See pusb_adm -h for more informations.
  45. -->
  46. <!-- Example: -->
  47. <!--
  48. <device id="foo">
  49. <vendor>Generated by pusb_adm</vendor>
  50. <model>Generated by pusb_adm</model>
  51. <serial>Generated by pusb_adm</serial>
  52. <volume_uuid>Generated by pusb_adm</volume_uuid>
  53. <option name="probe_timeout">15</option>
  54. </device>
  55. -->
  56. </devices>
  57. <!-- User settings -->
  58. <users>
  59. <!-- Syntax:
  60. <user id="login name">
  61. <device>device name</device>
  62. <hotplug event="lock">lock command</hotplug>
  63. <hotplug event="unlock">unlock command</hotplug>
  64. <option name="option name">value</option>
  65. <option name="another option">another value</option>
  66. </user>
  67. -->
  68. <!-- Examples: -->
  69. <!-- Authenticate user "foo" with device "dev" -->
  70. <!--
  71. <user id="foo">
  72. <device>dev</device>
  73. </user>
  74. -->
  75. <!-- Authenticate user "bar" with device "dev2", without using
  76. one time pads.
  77. -->
  78. <!--
  79. <user id="bar">
  80. <device>dev2</device>
  81. <option name="one_time_pad">false</option>
  82. </user>
  83. -->
  84. <!-- If you're using pusb_hotplug, you can setup commands
  85. to be executed to lock or unlock the system as soon
  86. as the device is inserted (and authenticated) or removed.
  87. -->
  88. <!--
  89. <user id="user name">
  90. <device>dev2</device>
  91. <hotplug event="lock">gnome-screensaver-command -lock</hotplug>
  92. <hotplug event="unlock">gnome-screensaver-command -deactivate</hotplug>
  93. </user>
  94. -->
  95. </users>
  96. <!-- Services settings (e.g. gdm, su, sudo...) -->
  97. <services>
  98. <!-- Syntax is:
  99. <service id="service name">
  100. <option name="option name">value</option>
  101. <option name="another option">another value</option>
  102. </service>
  103. -->
  104. <!-- Examples: -->
  105. <!-- Disable pam_usb for su -->
  106. <!--
  107. <service id="su">
  108. <option name="enable">false</option>
  109. </service>
  110. -->
  111. <!-- Speed up hotplug events by disabling one time pads
  112. for pusb_hotplug.
  113. -->
  114. <!--
  115. <service id="pusb_hotplug">
  116. <option name="one_time_pad">false</option>
  117. </service>
  118. -->
  119. </services>
  120. </configuration>