![]() |
The Pam_usb Project |
1. It doesn't work!
2. I can't get access to my box. Is there a way to get back in ?
3. pam_usb works until I reboot. Why ?
4. Can I continue using my USB pen as a storage device ?
5. mount failed: Invalid argument. What happened ?
6. pam_usb doesn't compile, what can i do ?
7. Can I use a floppy or a cdrom ?
8. Is my USB Storage device supported by pam_usb ?
Q:It doesn't work!
A:Put the debug mode on and come back here with a more specific question.
Edit /etc/pam.d/xxx and add debug=1 after pam_usb.so
Q:I can't get access to my box. Is there a way to get back in ?
A: Under lilo (reboot), type Linux init=/bin/bash. This will
give you a shell to your box, then edit /etc/pam.d/login and replace
pam_usb.so by another PAM module (pam_permit.so, pam_unix.so,
pam_stack.so, etc).
Q:pam_usb works until I reboot. Why ?
A:That's because your system doesn't load every module needed to detect
the USB storage device at boot time.
To fix this problem, you can try to load some modules like usb-storage until
the device "sda" (or sdb, sdc.. etc) is listed in /proc/partitions.
Then add those modules to your auto load module file.
Q:Can I continue using my USB pen as a storage device ?
A:Yes, of course. pam_usb only uses a directory located inside your storage device (named .auth/ by default, but could be configured to use another one).
Q:mount failed: Invalid argument. What happened ?
A:Your key might not be using the default filesystem (ext2).
If, for example, it's using vfat, add fs=vfat just after pam_usb.so
on /etc/pam.d/xxx
Q:pam_usb doesn't compile, what can i do ?
A:If the compilation fails because of openssl or readline, it's because
you're missing one or both of those libraries. If you're running
Gentoo, you can emerge pam_usb which will fetch and compile the
requested dependencies, along with the lastest version of pam_usb. If
you're running Debian, you can fix missing dependencies running this:
apt-get install libssl-dev libreadline4-dev libpam0g-dev (Thanks to Damien
Braillard <damien.b (AT) freesurf (DOT) ch> and to Cristian Mezzetti <cmezzett (AT) students.cs.unibo.it> who reported the Debian issue and a fix for it).
Q:Can I use a floppy or a cdrom ?
A: Since pam_usb-0.2_rc2, yes. See the install notes.
Q:Is my USB Storage device supported by pam_usb?
A: Can you mount it? Fine, it's supported.
Some features like
direct opening without disk caching or serial numbers ACL differs
from device to device, but the basic authentication and hotplugging
works on every device.