This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2c1ccdf32e4 [fix](deploy) Fix incorrect user group configuration in
fdb_ctl.sh (#58677)
2c1ccdf32e4 is described below
commit 2c1ccdf32e463b201512a1e0359ef5b9b16eedd3
Author: ke deng <[email protected]>
AuthorDate: Wed Dec 3 23:15:15 2025 +0800
[fix](deploy) Fix incorrect user group configuration in fdb_ctl.sh (#58677)
The previous implementation set `group = ${USER}`, which is incorrect in
environments where the primary group name differs from the user name.
This patch resolves the group dynamically using:
GROUP_NAME="$(id -gn 2>/dev/null || echo "${USER}")"
Impact:
- Correct group assignment in fdb_ctl.sh
- Avoids permission/ownership issues on some systems
- Backward compatible when primary group equals user name
---
tools/fdb/fdb_ctl.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/fdb/fdb_ctl.sh b/tools/fdb/fdb_ctl.sh
index 52da8764e9d..fd6a5d03c0f 100755
--- a/tools/fdb/fdb_ctl.sh
+++ b/tools/fdb/fdb_ctl.sh
@@ -265,10 +265,12 @@ function deploy_fdb() {
${CLUSTER_DESC}:${FDB_CLUSTER_ID}@$(get_coordinators)
EOF
+ GROUP_NAME="$(id -gn 2>/dev/null || echo "${USER}")"
+
cat >"${FDB_HOME}/conf/fdb.conf" <<EOF
[fdbmonitor]
user = ${USER}
-group = ${USER}
+group = ${GROUP_NAME}
[general]
restart-delay = 60
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]