Expected behavior
After installing VeraCrypt using the official Debian 12 .deb package, a normal (non-root) user should be able to mount file-based volumes through the GUI, as was possible in previous versions.
Observed behavior
Mounting any file-based volume fails immediately with the following error:
mount: /media/veracrypt8: wrong fs type, bad option, bad superblock on /dev/mapper/veracrypt8, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
The volume does not appear in VeraCrypt's volume list after the failed mount attempt. The decrypted block device (/dev/mapper/veracryptX) is created and immediately removed, giving no opportunity to inspect it.
After changing setuid bit, or executing Veracrypt as root it works alright.
$ ls -la /usr/bin/veracrypt
-rwxr-xr-x 1 root root 5574576 May 30 2025 /usr/bin/veracrypt
Changed to:
-rwsr-xr-x 1 root root 5574576 May 30 2025 /usr/bin/veracrypt
Without the setuid bit, VeraCrypt cannot perform the privileged operations required to create mount points and mount volumes when run as a normal user. Running VeraCrypt as root (sudo veracrypt) works correctly.
Steps to reproduce
- Download veracrypt-1.26.24-Debian-12-amd64.deb from the official VeraCrypt website
- Install via
sudo apt install ./veracrypt-1.26.24-Debian-12-amd64.deb
- Launch VeraCrypt as a normal (non-root) user
- Attempt to mount any file-based volume through the GUI
- Observe the mount error above
- Confirm the missing setuid bit with
ls -la /usr/bin/veracrypt
Workaround: manually restore the setuid bit after installation:
sudo chmod u+s /usr/bin/veracrypt
Screenshots
N/A
Your Environment
VeraCrypt version: 1.26.24
Operating system and version: Debian 12
System type: 64-bit
Expected behavior
After installing VeraCrypt using the official Debian 12 .deb package, a normal (non-root) user should be able to mount file-based volumes through the GUI, as was possible in previous versions.
Observed behavior
Mounting any file-based volume fails immediately with the following error:
mount: /media/veracrypt8: wrong fs type, bad option, bad superblock on /dev/mapper/veracrypt8, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
The volume does not appear in VeraCrypt's volume list after the failed mount attempt. The decrypted block device (/dev/mapper/veracryptX) is created and immediately removed, giving no opportunity to inspect it.
After changing setuid bit, or executing Veracrypt as root it works alright.
$ ls -la /usr/bin/veracrypt
-rwxr-xr-x 1 root root 5574576 May 30 2025 /usr/bin/veracrypt
Changed to:
-rwsr-xr-x 1 root root 5574576 May 30 2025 /usr/bin/veracrypt
Without the setuid bit, VeraCrypt cannot perform the privileged operations required to create mount points and mount volumes when run as a normal user. Running VeraCrypt as root (sudo veracrypt) works correctly.
Steps to reproduce
sudo apt install ./veracrypt-1.26.24-Debian-12-amd64.debls -la /usr/bin/veracryptWorkaround: manually restore the setuid bit after installation:
sudo chmod u+s /usr/bin/veracryptScreenshots
N/A
Your Environment
VeraCrypt version: 1.26.24
Operating system and version: Debian 12
System type: 64-bit