Skip to content

Commit

Permalink
fix vid auth in eos ci
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Sep 3, 2024
1 parent 96c0a2b commit 96a64f1
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/docker/eos-storage/scripts/eos-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,21 @@ for letter in {a..z}; do
eos mkdir -p "/eos/user/$letter"
done

# create cbox sudoer user
adduser cbox -u 58679 -g 0 -m -s /bin/sh
eos vid set membership 0 +sudo
eos vid set membership 99 +sudo
eos vid set map -tident "*@storage-home" vuid:0 vgid:0
eos vid set map -tident "*@storage-users" vuid:0 vgid:0
eos vid set map -tident "*@storage-local-1" vuid:0 vgid:0
eos vid set map -tident "*@storage-local-2" vuid:0 vgid:0
eos vid set membership cbox +sudo

eos vid set map -tident "*@storage-home" vuid:58679 vgid:0
eos vid set map -tident "*@storage-users" vuid:58679 vgid:0
eos vid set map -tident "*@storage-local-1" vuid:58679 vgid:0
eos vid set map -tident "*@storage-local-2" vuid:58679 vgid:0
eos vid set map -tident "*@docker-storage-home-1.docker_default" vuid:58679 vgid:0

eos vid set map -tident "unix@storage-home" vuid:58679 vgid:0
eos vid set map -tident "unix@storage-users" vuid:58679 vgid:0
eos vid set map -tident "unix@storage-local-1" vuid:58679 vgid:0
eos vid set map -tident "unix@storage-local-2" vuid:58679 vgid:0
eos vid set map -tident "[email protected]_default" vuid:58679 vgid:0

tail -f /dev/null

0 comments on commit 96a64f1

Please sign in to comment.