File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 33# Step 1: Login to get the token
44login_response=$( curl -s -X POST http://localhost:8080/login \
55 -H " Content-Type: application/json" \
6- -d ' {"username": "Jessica Pearson", "password": "iamthebest"}' )
6+ -d ' {"username": "Gregory House", "password": "idontlikepeople"}' )
7+
8+ echo " $login_response "
9+
10+ sleep 1
711
812# Step 2: Extract token using jq (requires jq to be installed)
913token=$( echo " $login_response " | jq -r ' .token' )
@@ -24,14 +28,12 @@ while true; do
2428 -H " Content-Type: application/json" \
2529 -d ' {
2630 "operation": "setfacl",
27- "targetPath": "/var/www/html",
28- "entries": [
29- {
31+ "targetPath": "/mnt/beegfs-1/home/maverick/linux-acl-management-aclapi/README.md",
32+ "entries": {
3033 "entityType": "user",
31- "entity": "alice ",
32- "permissions": "rwx ",
33- "action": "add "
34+ "entity": "tommy ",
35+ "permissions": "rw- ",
36+ "action": "modify "
3437 }
35- ]
3638 }'
3739done
You can’t perform that action at this time.
0 commit comments