From 59df4bb2e72cd60ad0a2af9336ae18a72b5035de Mon Sep 17 00:00:00 2001 From: EmanuelLoos Date: Tue, 5 Nov 2024 15:18:27 +0100 Subject: [PATCH] errors corrected --- INSTALL.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index a4c1227..d003794 100644 --- a/INSTALL.md +++ b/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.