Adrian, thanks for your reply and the heads-up on the # character not cancelling the scan of the line. I was probably doing something wrong in the sudoers.d directory and that is why it did not work. At any rate, that line I put in the sudoers file itself is working now and doing what I need so I am not going to investigate further lest I make things worse. Now I find it very convenient to have a launcher which contains the name of the VC container file and of the KeyFile (held in an external USB)...
I think I know where the problem is coming from. At the end of the sudoers file there is a line -#includedir /etc/sudoers.d but because it is #commented out the files in that directory are not scanned and that is why my file in that directory was not having any effect. I think that is the reason. So I uncommented that line but it gave an error so I just commented it out again and included the relevant line user ALL=(ALL) NOPASSWD: /usr/bin/veracrypt in the sudoers file itself and I think that is...
Thanks but I cannot get it to work for me. In /etc/sudoers.d I created a file named with my user name, although I believe the file name makes no difference, and in that file is a single line: [myusername] ALL=(ALL) NOPASSWD: /usr/bin/veracrypt But the OS is still asking for a password. What am I doing wrong? In fact, I had tried this solution first and when I could not get it to work I tried the polkit route but that did not work either.
Thanks but I cannot get it to work for me. In /etc/sudoers.d I created a file named with my user name, although I believe the file name makes no difference, and in that file is a single line: [myusername] ALL=(ALL) NOPASSWD: /usr/bin/veracrypt But the OS is still asking for a password. What am I doing wrong?
I am tying to use Veracrypt with Linux Mint. What I want to do is automate as much as possible the mounting of a volume file. I want to have a file and a password as keys for mounting. The file would be on a removable medium and the password in my head. I do not want to have to type and click a lot every time so I tried to automate the process with a command like: sudo /usr/bin/veracrypt --mount /home/a/veracrypt/verafile.hc --keyfiles=/path/to/keyfile but then it asks me the sudo password to mount...
Got it. Thanks.
Thanks but that kind of defeats what I am trying to do. If I am going to use PGP at all then I don't really need VC because I can just use PGP all the way.
For many years I have used PGP with MS Windows to encrypt text, single files and "containers" (called PGP disk) with symmetrical or with public key encryption.. I am transitioning to Linux Mint 19 & 20 and trying to learn and use Veracrypt with Linux. I believe Veracrypt only does the "container" kind of encryption and does not do single files or plain text. Please confirm. I suppose this is not a huge obstacle because the user can always put the text in a file and the file in a container but it...