Run as a dedicated user instead of root
This commit is contained in:
+10
-1
@@ -4,10 +4,19 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=rustdesk
|
||||
Group=rustdesk
|
||||
WorkingDirectory=/var/lib/rustdesk-server
|
||||
ExecStart=/usr/bin/hbbs
|
||||
Restart=always
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
# Security Hardening
|
||||
NoNewPrivileges=yes
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=strict
|
||||
ProtectHome=yes
|
||||
ReadWritePaths=/var/lib/rustdesk-server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user