Установлено CentOS 6.2 x86-64 После установки пакета pam_usb ( служит для авторизации системы с помощью флешки ) выдает следующее
*[root@localhost ~]# sudo pamusb-conf --add-device my-usb-stic
Please select the device you wish to add.
* Using "Kingston DataTraveler G3 (001CC05FE935BC40992800C1)" (only option)
Which volume would you like to use for storing data ?
* Using "/dev/sdb1 (UUID: B89F-BCA3)" (only option)
Name : my-usb-stic
Vendor : Kingston
Model : DataTraveler G3
Serial : 001CC05FE935BC40992800C1
UUID : B89F-BCA3
Save to /etc/pamusb.conf ?
[Y/n] y
Unable to read /etc/pamusb.conf: not well-formed (invalid token): line 43, column 52
Хотя должен :
$*[root@localhost ~]# sudo pamusb-conf --add-device my-usb-stic
Please select the device you wish to add.
* Using "Kingston DataTraveler G3 (001CC05FE935BC40992800C1)" (only option)
Which volume would you like to use for storing data ?
* Using "/dev/sdb1 (UUID: B89F-BCA3)" (only option)
Name : my-usb-stic
Vendor : Kingston
Model : DataTraveler G3
Serial : 001CC05FE935BC40992800C1
UUID : B89F-BCA3
Save to /etc/pamusb.conf ?
[Y/n] y
done
и затем по идее я должен добавить пользователей но как я понимаю это ошибка в pamusb.conf. программа не может сохранить почему то конфигурацию в этот файл , вроде как понимаю 43 строка , 52 символ . Я так и не понял что именно не так , ниже мой файл конфигурации :
<!--
pamusb.conf: Configuration file for pam_usb.
See http://www.pamusb.org/doc/configuring
-->
<configuration>
<!-- Default options -->
<defaults>
<!-- Example:
<option name="debug">true</option>
-->
</defaults>
<!-- Device settings -->
<devices>
<!-- Example:
Note: You should use pamusb-conf 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>
<!-- Note: Use pamusb-conf to add a user, then you can tweak
manually the configuration here if needed.
-->
<!-- Example:
Authenticate user scox using "MyDevice", and configure pamusb-agent
to automatically start/stop gnome-screensaver on key insertion and
removal:
<user id="scox">
<device>MyDevice</device>
<option name="quiet">true</option>
<agent event="lock">gnome-screensaver-command --lock</agent>
<agent event="unlock">gnome-screensaver-command --deactivate</agent>
</user>
Configure user root to authenticate using MyDevice, but update one
time pads at every login (default is 1 hour):
<user id="root">
<device>MyDevice</device>
<option name="pad_expiration">0</option>
</user>
-->
</users>
<!-- Services settings (e.g. gdm, su, sudo...) -->
<services>
<!-- Example: Speed up hotplugging by disabling one time pads -->
<!--
<service id="pamusb-agent">
<option name="one_time_pad">false</option>
</service>
-->
<!-- Disable output for 'su' (needed for gksu) -->
<!--
<service id="su">
<option name="quiet">true</option>
</service>
-->
</services>
</configuration>
Спасибо заранее.