From 524749e4c455bda822930d90ba980ae8057a6aa1 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 22 Mar 2017 16:11:14 -0700 Subject: [PATCH] Setting the user's home directory to /opt/NzbDrone prevents updating --- Autostart-on-Debian.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Autostart-on-Debian.md b/Autostart-on-Debian.md index dd342fa..e72a41a 100644 --- a/Autostart-on-Debian.md +++ b/Autostart-on-Debian.md @@ -102,7 +102,7 @@ exit 0 For security purposes, you can prevent this account from being logged into by editing the '/etc/passwd' entry for user nzbdrone and changing it to '/bin/false' or /usr/sbin/nologin'. I've also removed the password from '/etc/shadow'. From researching, these both appear to be the manual ways to perform the '--disable-login' and '--disable-password' while creating a new user. Alternatively, you can accomplish this same task by creating a user with the '--system' option. - /etc/passwd 'nzbdrone:x:1001:1001:NzbDrone Sonarr Media:/opt/NzbDrone:/bin/false' + /etc/passwd 'nzbdrone:x:1001:1001:NzbDrone Sonarr Media:/home/nzbdrone:/bin/false' /etc/shadow 'nzbdrone:*:17124:0:99999:7:::' Utilizing the '/usr/sbin/nologin' option will output what's seen below, when attempting to change to that user from root.