From 39fe30df48c36a22b4c0461233ccf6cde421c273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?wxcaf=C3=A9?= Date: Tue, 20 Jun 2017 13:39:20 +0200 Subject: [PATCH] Update Production-guide.md Fixes the problem where the `mastodon` user has /bin/false as a shell and so `sudo -iu` won't do anything --- Running-Mastodon/Production-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Running-Mastodon/Production-guide.md b/Running-Mastodon/Production-guide.md index 6613ac03..125926a3 100644 --- a/Running-Mastodon/Production-guide.md +++ b/Running-Mastodon/Production-guide.md @@ -111,7 +111,7 @@ server { ## Running in production without Docker -It is recommended to create a special user for mastodon on the server (you could call the user `mastodon`), though remember to disable outside login for it. You should only be able to get into that user through `sudo -iu mastodon`. +It is recommended to create a special user for mastodon on the server (you could call the user `mastodon`), though remember to disable outside login for it. You should only be able to get into that user through `sudo -sHu mastodon`. This command will create the user as needed: @@ -225,7 +225,7 @@ rbenv global 2.4.1 You need the `git-core` package installed on your system. If it is so, run the shell from the `mastodon` user: - sudo -iu mastodon + sudo -sHu mastodon And enter the following commands: