From d4848fe485c8a3df9541cd1a6ee47c5f470b315f Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 14 Jul 2019 11:45:35 +0530 Subject: [PATCH] Move walls bot to unprivileged user Just sound security IMO Signed-off-by: Harsh Shandilya --- horbiswalls-bot.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/horbiswalls-bot.service b/horbiswalls-bot.service index bc910b2..2e0c847 100644 --- a/horbiswalls-bot.service +++ b/horbiswalls-bot.service @@ -5,9 +5,9 @@ After=network.target [Service] Restart=on-abort Type=simple -User=msfjarvis -WorkingDirectory=/home/msfjarvis/walls-manager -ExecStart=/home/msfjarvis/walls-manager/venv/bin/python bot.py +User=bot +WorkingDirectory=/home/bot/walls-manager +ExecStart=/home/bot/walls-manager/venv/bin/python bot.py ExecReload=/bin/kill -USR1 $MAINPID ; Use graceful shutdown with a reasonable timeout