forked from Disroot/gpg-lacre
errors corrected
This commit is contained in:
parent
a5e90f40c9
commit
59df4bb2e7
1 changed files with 9 additions and 4 deletions
13
INSTALL.md
13
INSTALL.md
|
@ -35,22 +35,27 @@ python -m pip install -r requirements.txt
|
|||
2. Set the home directory for the user `nobody` (sadly this workaround is needed as there is no better solution at this point). If you get an error that the user is currently used by a process, you might need to kill the process manually.
|
||||
|
||||
```
|
||||
usermod -d /var/gpgmailgate nobody
|
||||
usermod -d /var/lacre nobody
|
||||
```
|
||||
|
||||
3. Create dedicated directories for storing PGP keys and S/MIME certificates and make the user `nobody` owner of these:
|
||||
|
||||
```
|
||||
install -u nobody -g nobody -d /var/gpgmailgate/ /var/gpgmailgate/.gnupg /var/gpgmailgate/smime
|
||||
install --owner=nobody --group=nogroup -d /var/lacre/ /var/lacre/.gnupg /var/lacre/smime
|
||||
```
|
||||
|
||||
4. Place the `lacre.py` in `/usr/local/bin/`, make the user `nobody` owner of the file and make it executable:
|
||||
|
||||
```
|
||||
install -u nobody -g nobody -mode u=rx lacre.py /usr/local/bin/
|
||||
install --owner=nobody --group=nogroup --mode=u=rx lacre.py /usr/local/bin/
|
||||
```
|
||||
|
||||
5. Place `GnuPG` and `lacre` directories in `/usr/local/lib/python3.x/dist-packages` (replace 3.x with your Python version). Make sure they're available for Python `import`s by executing `python -m lacre.admin -h` command.
|
||||
5. Place `GnuPG` and `lacre` directories in `/usr/local/lib/python3.x/` (replace 3.x with your Python version). Make sure they're available for Python `import`s by executing `python -m lacre.admin -h` command.
|
||||
|
||||
```
|
||||
cp -r lacre /usr/local/lib/python3.9/
|
||||
cp -r GnuPG/ /usr/local/lib/python3.9/
|
||||
```
|
||||
|
||||
6. Configure `/etc/lacre.conf` based on the provided `lacre.conf.sample`. Change the settings according to your configuration. If you follow this guide and have a standard configuration for postfix, you don't need to change much.
|
||||
|
||||
|
|
Loading…
Reference in a new issue