Revert "systemd: drop _ prefix from username"
Prefixing all system and group names with the underscore is
recommended by the systemd developers.
This reverts commit d6d2a4f996
.
This commit is contained in:
parent
b3ec3f4d0b
commit
91bd96b319
5 changed files with 8 additions and 5 deletions
|
@ -1,2 +1,2 @@
|
|||
### Security Fixes
|
||||
* Run wesnothd server as `wesnoth:wesnoth` instead of `nobody:users`, improving safety and fixing a warning message in systemd 246+
|
||||
* Run wesnothd server as `_wesnoth:_wesnoth` instead of `nobody:users`, improving safety and fixing a warning message in systemd 246+
|
||||
|
|
|
@ -23,7 +23,8 @@ ExecStopPost=/bin/rm -f @FIFO_DIR@/socket
|
|||
|
||||
SyslogIdentifier=Wesnothd@BINARY_SUFFIX@
|
||||
WorkingDirectory=@FIFO_DIR@
|
||||
User=wesnoth
|
||||
User=_wesnoth
|
||||
Group=_wesnoth
|
||||
|
||||
# Additional security-related features
|
||||
# (when using the -c option, do not use ProtectHome)
|
||||
|
|
|
@ -4,7 +4,8 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
ExecStart=%bindir/wesnothd
|
||||
User=wesnoth
|
||||
User=_wesnoth
|
||||
Group=_wesnoth
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
u wesnoth - "Wesnoth multiplayer server"
|
||||
u _wesnoth -
|
||||
g _wesnoth -
|
||||
|
|
|
@ -1 +1 @@
|
|||
d @FIFO_DIR@ 0700 wesnoth wesnoth -
|
||||
d @FIFO_DIR@ 0700 _wesnoth _wesnoth -
|
||||
|
|
Loading…
Add table
Reference in a new issue