Skip to content
mhogomchungu edited this page Jul 3, 2017 · 29 revisions

If these commands fail with ERROR: setgroups() failed: Operation not permitted error, then

1. Invoke them using sudo/su/pkexec or,
2. Uninstall the version you have (you probably got it from your distro) and install the version i provide
on the project’s main page. My packages do not have this problem.

1. Commands to unlock a volume.

zuluCrypt-cli -K $UID -o -d /dev/sdc1 -m blabla -e ro -f /home/keyFile
zuluCrypt-cli -K $UID -o -d /dev/sdc1 -m blabla -e ro -p xxx
zuluCrypt-cli -K $UID -o -d /dev/sdc1 -m blabla -e ro -G gpg
zuluCrypt-cli -K $UID -o -d /dev/sdc1 -m blabla -e ro -F keyFile1 -F keyfile2
zuluCrypt-cli -K $UID -o -d /dev/sdc1 -m blabla -e ro -p xxx -t vcrypt
zuluCrypt-cli -K $UID -o -d /dev/sdc1 -m blabla -e ro -p xxx -t vcrypt.PIM_VALUE
zuluCrypt-cli -K $UID -o -d /dev/sdc1 -m blabla -e ro -p xxx -t plain.aes.xts-plain64.256.sha256.0

Explanations for the above options.
-K : this options takes user id of the person who is invoking the command. It is a 
     necessary option if the command is invoked using "sudo", "pkexec" or "su".
-o : required option as a directive to unlock a volume.
-d : required option that points to a  device with an encrypted container.
-m : an optional option used to customize mount point path.
-e : mount options. "ro" means "read only" and "rw" means "read and write".
-f : optional argument that points to a file to be used as a keyfile.
-p : optional argument that takes a passphrase from command line argument.
-F : optional argument that takes multiple keyfiles when unlocking TrueCrypt or 
     VeraCrypt volumes.
-t : -t "vcrypt" is required to unlock a VeraCrypt volume.
-t : -t "vcrypt.PIM_VALUE" is required to unlock a VeraCrypt volume that uses a PIM
      value of "PIM_VALUE"
-t : -t plain.aes.xts-plain64.256.sha256.0 is required to unlock a PLAIN dm-crypt 
     volume with those properties. The last argument is volume offset in sectors.
-G : optional argument that takes a name of a plugin to be used to get a passphrase.

2. Commands to lock a volume.

zuluCrypt-cli -K $UID -q -d /dev/sdc1

3. Commands to print volume properties of an unlocked volume.

zuluCrypt-cli -s -d /dev/sdc1

4. Command to use to get a list of all volumes. “-T” is optional.
zuluCrypt-cli -A -T

5. Command to use to get a list of system volumes. “-T” is optional.
zuluCrypt-cli -S -T

6. Command to use to get a list of non system volumes. “-T” is optional.
zuluCrypt-cli -N -T

7. Command to print a list of unlocked volumes.
zuluCrypt-cli -L

documentations for more options to follow

Clone this wiki locally