You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/04/09 05:32:50 UTC
[incubator-linkis] branch dev-1.1.2 updated: add ec/resultSet permission to user not in deployUser group (#1933)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.1.2
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
new 9ffda4d53 add ec/resultSet permission to user not in deployUser group (#1933)
9ffda4d53 is described below
commit 9ffda4d53e612f4ced4d7a50d7905f9987c23a58
Author: legendtkl <ta...@gmail.com>
AuthorDate: Sat Apr 9 13:32:44 2022 +0800
add ec/resultSet permission to user not in deployUser group (#1933)
---
assembly-combined-package/bin/install.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/assembly-combined-package/bin/install.sh b/assembly-combined-package/bin/install.sh
index 802f90d0d..e66d25dca 100644
--- a/assembly-combined-package/bin/install.sh
+++ b/assembly-combined-package/bin/install.sh
@@ -162,6 +162,9 @@ echo "[RESULT_SET_ROOT_PATH] try to create directory"
localRootDir=${RESULT_SET_ROOT_PATH#file://}
echo "[RESULT_SET_ROOT_PATH] try to create local dir,cmd is: mkdir -p $localRootDir/$deployUser"
mkdir -p $localRootDir/$deployUser
+
+ # we should provide the permission to the user (not in deployUser group), otherwise the user can not read/write the result set
+ sudo chmod -R 777 $localRootDir
sudo chmod -R 775 $localRootDir/$deployUser
elif [[ $RESULT_SET_ROOT_PATH == hdfs://* ]];then
localRootDir=${RESULT_SET_ROOT_PATH#hdfs://}
@@ -330,7 +333,7 @@ if [ ! -d $ENGINECONN_ROOT_PATH ] ;then
echo "create dir ENGINECONN_ROOT_PATH: $ENGINECONN_ROOT_PATH"
mkdir -p $ENGINECONN_ROOT_PATH
fi
-sudo chmod -R 771 $ENGINECONN_ROOT_PATH
+sudo chmod -R 777 $ENGINECONN_ROOT_PATH
if [ "$ENGINECONNMANAGER_PORT" != "" ]
then
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org