This project has moved and is read-only. For the latest updates, please go here.

No wrong password message on command line usage

Topics: Feature Requests, Technical Issues, Users Discussion
Dec 4, 2016 at 2:24 PM
Edited Dec 4, 2016 at 2:59 PM
I use veracrypt in command line(non graphic enviroment), but when i type wrong password , i don't get erorr message.

When I type: veracrypt -t --mount encrypteddocuments -p TruePasswrord123 /media/veracrypt1 - that is OK .
but when I type: veracrypt -t --mount encrypteddocuments -p wrongpassword /media/veracrypt1 - I don't get error message in command line .

Can you help me to solve this?
Dec 5, 2016 at 1:23 PM
Edited Dec 5, 2016 at 1:27 PM
That's indeed strange, here it works fine:
me@debian:~$ sudo veracrypt -t --mount test.hc -p testpass /media/veracrypt1 --non-interactive
me@debian:~$ ls /media
cdrom  cdrom0  veracrypt1
me@debian:~$ sudo veracrypt -d
me@debian:~$ sudo veracrypt -t --mount test.hc -p wrongpass /media/veracrypt1 --non-interactive
Error: Operation failed due to one or more of the following:
 - Incorrect password.
 - Incorrect Volume PIM number.
 - Incorrect PRF (hash).
 - Not a valid volume.
Maybe you have errors redirected to another console? Try append echo $? like:
sudo veracrypt -t --mount test.hc -p wrongpass /media/veracrypt1;echo $?
which returns 0 on success or 1 on bad password. Without non interactive parameter (like you have) it behaves the same, only it asks too many questions...