aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: ce22770d2fa213f08e7b287c60c8121895e73e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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`