Description of problem: This package not contain default config file /etc/pamusb.conf Version-Release number of selected component (if applicable): pam_usb-0.5.0-2 $ sudo pamusb-conf --add-device sample Please select the device you wish to add. * Using "ADATA USB Flash Drive (00000003AABBFA)" (only option) Which volume would you like to use for storing data ? * Using "/dev/sdg1 (UUID: ECF0-6724)" (only option) Name : sample Vendor : ADATA Model : USB Flash Drive Serial : 00000003AABBFA UUID : ECF0-6724 Save to /etc/pamusb.conf ? [Y/n] y Unable to read /etc/pamusb.conf: [Errno 2] No such file or directory: '/etc/pamusb.conf' Even after touch /etc/pamusb.conf it can't be used: Save to /etc/pamusb.conf ? [Y/n] y Unable to read /etc/pamusb.conf: no element found: line 1, column 0 Adding sample file from git repo solving problem.
The default config file is in /etc/security/pamusb.conf. I moved there because I think is more appropiate to be there with other pam configs.
OK, I did not see it first. But pamusb-conf use /etc/pamusb.conf by default. I am think it need to be cleared (moved back or simlinked) so users did not fall into this situation.
That's right. I'll issue a patch.