Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 6460  / 2 Years ago, thu, may 12, 2022, 11:45:36

I am trying to code a bash script that will automate the several tasks related to truecrypt.
Tasks are:
Creating a truecrypt volume, mounting it, copying a file in filesystem, modifying the file, unmounting the volume.



I have a question regarding creating the truecrypt volume. mounting and unmounting will not be a problem for me.



The command for creating volume is according to manpages:



> truecrypt -c [volume path]


but after this command trucrypt will prompt user to enter several parameters like volume type, size, encryption, hash, password etc.



How can automate all these so that user doesn't need to enter any value?
Ok I can use following command for this:



truecrypt –size 200M –type normal –encryption AES –hash SHA-512 –filesystem FAT -c myvolume.tc


But now it asks for password. How to automate that?



Thanks


More From » bash

 Answers
0

Use the --password=password flag to pass a random/set password through.



I would also use the --non-interactive flag so nothing interrupts the automation process.



Here is a list of all available commands to use with truecrypt:



http://www.irongeek.com/i.php?page=backtrack-3-man/truecrypt


[#34230] Friday, May 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ippalogu

Total Points: 215
Total Questions: 127
Total Answers: 146

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
ippalogu questions
Tue, Jan 4, 22, 21:49, 2 Years ago
Tue, Sep 21, 21, 09:12, 3 Years ago
Wed, May 19, 21, 02:24, 3 Years ago
Mon, Dec 27, 21, 01:44, 2 Years ago
;