mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-23 00:07:07 +00:00
Setting the user's home directory to /opt/NzbDrone prevents updating
parent
fa27f18cf8
commit
524749e4c4
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue