aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-28 17:43:50 +0100
committerMinteck <contact@minteck.org>2022-11-28 17:43:50 +0100
commitd302af8487f74af091a5032118c83c2dac08b275 (patch)
tree022852bf7792ad729e1aacf7a25c6c815a1c9a93 /README.md
downloadtempdisk-d302af8487f74af091a5032118c83c2dac08b275.tar.gz
tempdisk-d302af8487f74af091a5032118c83c2dac08b275.tar.bz2
tempdisk-d302af8487f74af091a5032118c83c2dac08b275.zip
Initial commitHEADmane
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..ce22770
--- /dev/null
+++ b/README.md
@@ -0,0 +1,19 @@
+# TempDisk
+
+## Requirements
+
+### macOS
+
+- Run `sudo visudo` and add this line at the very bottom:
+ - `<username> ALL = (root) NOPASSWD: /usr/sbin/diskutil apfs unlockVolume <disk path> -stdinpassphrase`
+
+### Linux
+
+- `cryptsetup` (`sudo apt install cryptsetup-bin`)
+- `base64`
+- `zenity` (`sudo apt install zenity`)
+- Run `sudo visudo` and add these 4 lines at the very bottom:
+ - `<username> ALL = (root) NOPASSWD: /usr/sbin/cryptsetup luksOpen <disk path> tempdisk`
+ - `<username> ALL = (root) NOPASSWD: /usr/sbin/cryptsetup luckClose /dev/mapper/tempdisk`
+ - `<username> ALL = (root) NOPASSWD: /usr/bin/mount /dev/mapper/tempdisk /home/<username>/.tempdisk`
+ - `<username> ALL = (root) NOPASSWD: /usr/bin/umount /home/<username>/.tempdisk` \ No newline at end of file