You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ca...@apache.org on 2022/03/17 06:29:23 UTC

[dolphinscheduler] branch dev updated: [Bug][Security] Fix dir permission (#8938)

This is an automated email from the ASF dual-hosted git repository.

caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 3955d84  [Bug][Security] Fix dir permission (#8938)
3955d84 is described below

commit 3955d84ce3c1652efec58a91da0e6e447a6882f9
Author: gaojun2048 <ga...@gmail.com>
AuthorDate: Thu Mar 17 14:29:18 2022 +0800

    [Bug][Security] Fix dir permission (#8938)
    
    * only config dir need 700
    
    * delete -R
    
    * all config dir change
    
    * yaml file in config dir change
    
    * config dir permission change
---
 dolphinscheduler-worker/src/main/bin/start.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dolphinscheduler-worker/src/main/bin/start.sh b/dolphinscheduler-worker/src/main/bin/start.sh
index 2507240..1d8b378 100644
--- a/dolphinscheduler-worker/src/main/bin/start.sh
+++ b/dolphinscheduler-worker/src/main/bin/start.sh
@@ -19,7 +19,7 @@
 BIN_DIR=$(dirname $0)
 DOLPHINSCHEDULER_HOME=${DOLPHINSCHEDULER_HOME:-$(cd $BIN_DIR/..; pwd)}
 
-chmod 700 -R ${DOLPHINSCHEDULER_HOME}
+chmod -R 700 ${DOLPHINSCHEDULER_HOME}/config
 export DOLPHINSCHEDULER_WORK_HOME=${DOLPHINSCHEDULER_HOME}
 
 JAVA_OPTS=${JAVA_OPTS:-"-server -Xms4g -Xmx4g -Xmn2g -XX:+PrintGCDetails -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=dump.hprof"}