Browse Source

Update ACL control

Paolo Galli 4 years ago
parent
commit
042d1a4303
1 changed files with 8 additions and 8 deletions
  1. 8 8
      lcmlog-server-utils

+ 8 - 8
lcmlog-server-utils

@@ -175,33 +175,33 @@ method_updateACL()
 		# set 150
 		for uid in $(awk '{print $1}' $DIR/auth/150); do
 			setfacl -m u:$uid:rwx $DIR/data
-			setfacl -m u:$uid:rwx $DIR/data/.data
+			setfacl -m u:$uid:rw $DIR/data/.data
 			setfacl -m u:$uid:rwx $DIR/logs
-			setfacl -m u:$uid:rwx $DIR/logs/logfile
+			setfacl -m u:$uid:rw $DIR/logs/logfile
 		done
 
 		# set admin
 		for uid in $(awk '{print $1}' $DIR/auth/Admin); do
 			setfacl -m u:$uid:rwx $DIR/data
-			setfacl -m u:$uid:rwx $DIR/data/.data
+			setfacl -m u:$uid:rw $DIR/data/.data
 			setfacl -m u:$uid:rwx $DIR/logs
-			setfacl -m u:$uid:rwx $DIR/logs/logfile
+			setfacl -m u:$uid:rw $DIR/logs/logfile
 		done
 		
 		# set ex 150
 		for uid in $(awk '{print $1}' $DIR/auth/Valhalla); do
 			setfacl -m u:$uid:rx $DIR/data
-			setfacl -m u:$uid:rx $DIR/data/.data
+			setfacl -m u:$uid:r $DIR/data/.data
 			setfacl -m u:$uid:rwx $DIR/logs
-			setfacl -m u:$uid:rwx $DIR/logs/logfile
+			setfacl -m u:$uid:rw $DIR/logs/logfile
 		done
 		
 		# set ex admin
 		for uid in $(awk '{print $1}' $DIR/auth/Nirvana); do
 			setfacl -m u:$uid:rwx $DIR/data
-			setfacl -m u:$uid:rwx $DIR/data/.data
+			setfacl -m u:$uid:rw $DIR/data/.data
 			setfacl -m u:$uid:rwx $DIR/logs
-			setfacl -m u:$uid:rwx $DIR/logs/logfile
+			setfacl -m u:$uid:rw $DIR/logs/logfile
 		done
 
 		echo "Done."