-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running daemon under nobody user is not recommended (Closes: #970045)
Create a galera user that will run the daemon instead. See: https://github.com/systemd/systemd/blob/v246/NEWS#L106-L113
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o nounset | ||
set -o pipefail | ||
set -o posix | ||
|
||
# creating _galera user, note that the '_' (underscore) before the name of the | ||
# user is a recommendation from | ||
# https://www.debian.org/doc/debian-policy/ch-opersys.html#users-and-groups | ||
getent passwd _galera >/dev/null 2>&1 || | ||
adduser --system --no-create-home --home /nonexistent \ | ||
--disabled-password --disabled-login --allow-bad-names _galera | ||
|
||
#DEBHELPER# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters