Compare commits

...

4 commits
main ... main

Author SHA1 Message Date
59df4bb2e7 errors corrected 2024-11-05 15:18:27 +01:00
a5e90f40c9 Merge pull request 'Update' (#1) from Disroot/gpg-lacre:main into main
Reviewed-on: EmanuelLoos/gpg-lacre#1
2024-11-05 13:25:09 +01:00
e5e653483f revert ec6c43afcb
revert improved formatting

Just some small Markdown syntax corrections.
2024-11-05 13:23:57 +01:00
ec6c43afcb improved formatting
Just some small Markdown syntax corrections.
2022-10-24 23:59:01 +00:00

View file

@ -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.