I have a number of external media with VeraCrypt encrypted file containers and I would like the users to mount and use them without giving root privileges to the users.
However at the moment VeraCrypt's always asking for user/admin password apparently sudo-ing mount operation:
How can a user, who's not in the sudoers file mount an .hc file?
Best Answer
Warning: Only use @Pawel Debski solution if agree the following:
So using that solution you might consider to use a special user profile for veracrypt. As a result, sodo is easier to use.
Steps to test the security problem:
The binary will run with root privilege.
Hint: I added this solution as the warning at Pawel Debski is inconspicuously. The risk is much greater than the benefit as long as the system has an internet connection.