I use this command to mount an encrypted volume:
hdiutil mount ~/Documents/secret.sparsebundle/
On first use I'm prompted for a password. I then close it either by clicking 'eject' in finder or the matching hdiutil unmount
command.
If I try and re-open it using the original command, I'm sometimes granted access without the password challenge. This appears to occur across terminal sessions and (overnight) screen locks.
Is this expected behaviour or a bug? How do I ensure that the passwords are not cached?