Hello,
I encripted one partition of a usb key. When I plug it, it used to ask me about the paraphase, but after I entered one time, the partition is mounted. Then, I can eject the key, and replug it, but it does not ask me anymore the paraphrase, mounting the partition automatically. I would like that it ask me the paraphrase every time that the key in replugged. How can I get this behavior?
Thank.
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France ===========================================================================
On 09/27/2013 02:22 PM, Patrick Dupre issued this missive:
Hello,
I encripted one partition of a usb key. When I plug it, it used to ask me about the paraphase, but after I entered one time, the partition is mounted. Then, I can eject the key, and replug it, but it does not ask me anymore the paraphrase, mounting the partition automatically. I would like that it ask me the paraphrase every time that the key in replugged. How can I get this behavior?
Did you actually eject or dismount the USB device (via the umount or eject commands or desktop options) or did you simply unplug it? If you unmounted or ejected it, I'd imagine you'd be asked for the passphrase the next time you mounted it. If it doesn't ask, then yeah, we have an issue--nothing having to do with that device should be cached.
If all you did was unplug it, then the filesystem was never closed, the system never saw it as unmounted and the current mount is still valid. If that is the case, you're lucky it wasn't corrupted (you must have waited long enough between write operations for changes to be flushed to the device). ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - "Microsoft is a cross between The Borg and the Ferengi. - - Unfortunately they use Borg to do their marketing and Ferengi to - - do their programming." -- Simon Slavin - ----------------------------------------------------------------------
On 09/27/2013 03:44 PM, Rick Stevens wrote:
On 09/27/2013 02:22 PM, Patrick Dupre issued this missive:
Hello,
I encripted one partition of a usb key. When I plug it, it used to ask me about the paraphase, but after I entered one time, the partition is mounted. Then, I can eject the key, and replug it, but it does not ask me anymore the paraphrase, mounting the partition automatically. I would like that it ask me the paraphrase every time that the key in replugged. How can I get this behavior?
Did you actually eject or dismount the USB device (via the umount or eject commands or desktop options) or did you simply unplug it? If you unmounted or ejected it, I'd imagine you'd be asked for the passphrase the next time you mounted it. If it doesn't ask, then yeah, we have an issue--nothing having to do with that device should be cached.
If all you did was unplug it, then the filesystem was never closed, the system never saw it as unmounted and the current mount is still valid. If that is the case, you're lucky it wasn't corrupted (you must have waited long enough between write operations for changes to be flushed to the device).
- Rick Stevens, Systems Engineer, AllDigital ricks@alldigital.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
-"Microsoft is a cross between The Borg and the Ferengi. -- Unfortunately they use Borg to do their marketing and Ferengi to -
do their programming." -- Simon Slavin -
did you check if the gnome key ring program is keeping the password so that it will not prompt you. Generally, when you put the password, there is a check on save the password.
This is my experience encfs
On 28.09.2013, Patrick Dupre wrote:
I would like that it ask me the paraphrase every time that the key in replugged. How can I get this behavior?
You have to check if there's something which caches your passphrase, and in this case you should prevent your passphrase from being cached. If this isn't the case, you can take a look into /dev/mapper and see if your crypto-device is properly unregistered. If it's not, you'll have to do that manually:
cryptsetup close /dev/mapper/your_device
Anyway, you could choose to mount/umount your device manually all the way, to avoid some third partys software to interact. This would solve your problems immediately.