Skip to content

unable to mount file-based volume #1689

@marbenn

Description

@marbenn

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

  1. Download veracrypt-1.26.24-Debian-12-amd64.deb from the official VeraCrypt website
  2. Install via sudo apt install ./veracrypt-1.26.24-Debian-12-amd64.deb
  3. Launch VeraCrypt as a normal (non-root) user
  4. Attempt to mount any file-based volume through the GUI
  5. Observe the mount error above
  6. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions