From b8696d9e26b297b937c381bc040753b0812a1206 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Thu, 18 Aug 2016 02:32:12 +0300 Subject: [PATCH] Change user/group dash->dashcore --- contrib/init/dashd.conf | 4 ++-- contrib/init/dashd.openrc | 4 ++-- contrib/init/dashd.openrcconf | 4 ++-- contrib/init/dashd.service | 4 ++-- doc/init.md | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/contrib/init/dashd.conf b/contrib/init/dashd.conf index d95f57c3da..fa981b4e9e 100644 --- a/contrib/init/dashd.conf +++ b/contrib/init/dashd.conf @@ -4,8 +4,8 @@ start on runlevel [2345] stop on starting rc RUNLEVEL=[016] env BITCOIND_BIN="/usr/bin/dashd" -env BITCOIND_USER="dash" -env BITCOIND_GROUP="dash" +env BITCOIND_USER="dashcore" +env BITCOIND_GROUP="dashcore" env BITCOIND_PIDDIR="/var/run/dashd" # upstart can't handle variables constructed with other variables env BITCOIND_PIDFILE="/var/run/dashd/dashd.pid" diff --git a/contrib/init/dashd.openrc b/contrib/init/dashd.openrc index f760284417..0c243f56c0 100644 --- a/contrib/init/dashd.openrc +++ b/contrib/init/dashd.openrc @@ -12,8 +12,8 @@ BITCOIND_CONFIGFILE=${BITCOIND_CONFIGFILE:-/etc/dash/dash.conf} BITCOIND_PIDDIR=${BITCOIND_PIDDIR:-/var/run/dashd} BITCOIND_PIDFILE=${BITCOIND_PIDFILE:-${BITCOIND_PIDDIR}/dashd.pid} BITCOIND_DATADIR=${BITCOIND_DATADIR:-${BITCOIND_DEFAULT_DATADIR}} -BITCOIND_USER=${BITCOIND_USER:-${BITCOIN_USER:-dash}} -BITCOIND_GROUP=${BITCOIND_GROUP:-dash} +BITCOIND_USER=${BITCOIND_USER:-${BITCOIN_USER:-dashcore}} +BITCOIND_GROUP=${BITCOIND_GROUP:-dashcore} BITCOIND_BIN=${BITCOIND_BIN:-/usr/bin/dashd} BITCOIND_NICE=${BITCOIND_NICE:-${NICELEVEL:-0}} BITCOIND_OPTS="${BITCOIND_OPTS:-${BITCOIN_OPTS}}" diff --git a/contrib/init/dashd.openrcconf b/contrib/init/dashd.openrcconf index 0b7904dd28..c133b52924 100644 --- a/contrib/init/dashd.openrcconf +++ b/contrib/init/dashd.openrcconf @@ -13,8 +13,8 @@ #BITCOIND_DATADIR="/var/lib/dashd" # User and group to own dashd process -#BITCOIND_USER="dash" -#BITCOIND_GROUP="dash" +#BITCOIND_USER="dashcore" +#BITCOIND_GROUP="dashcore" # Path to dashd executable #BITCOIND_BIN="/usr/bin/dashd" diff --git a/contrib/init/dashd.service b/contrib/init/dashd.service index 732ac647d3..88137116b7 100644 --- a/contrib/init/dashd.service +++ b/contrib/init/dashd.service @@ -3,8 +3,8 @@ Description=Dash's distributed currency daemon After=network.target [Service] -User=dash -Group=dash +User=dashcore +Group=dashcore Type=forking PIDFile=/var/lib/dashd/dashd.pid diff --git a/doc/init.md b/doc/init.md index f31bc311c1..03a8e76f6f 100644 --- a/doc/init.md +++ b/doc/init.md @@ -13,7 +13,7 @@ can be found in the contrib/init folder. 1. Service User --------------------------------- -All three Linux startup configurations assume the existence of a "dash" user +All three Linux startup configurations assume the existence of a "dashcore" user and group. They must be created before attempting to use these scripts. The OS X configuration assumes dashd will be set up for the current user. @@ -60,9 +60,9 @@ PID file: `/var/run/dashd/dashd.pid` (OpenRC and Upstart) or `/var/li Lock file: `/var/lock/subsys/dashd` (CentOS) The configuration file, PID directory (if applicable) and data directory -should all be owned by the dash user and group. It is advised for security +should all be owned by the dashcore user and group. It is advised for security reasons to make the configuration file and data directory only readable by the -dash user and group. Access to dash-cli and other dashd rpc clients +dashcore user and group. Access to dash-cli and other dashd rpc clients can then be controlled by group membership. 3b) Mac OS X @@ -116,7 +116,7 @@ This Launch Agent will cause dashd to start whenever the user logs in. NOTE: This approach is intended for those wanting to run dashd as the current user. You will need to modify org.dash.dashd.plist if you intend to use it as a -Launch Daemon with a dedicated dash user. +Launch Daemon with a dedicated dashcore user. 5. Auto-respawn -----------------------------------